Archive for December, 2005

Google Map Pedometer

Wednesday, December 14th, 2005

This Google Map Pedometer thing is pretty damn cool. I mapped out the 17k route I ran tonight. Now I can put aside my deep suspicion of the distances reported by my own pedometer :-)

If only the satellite imagery for Dublin was a bit better …

Benchmarking Login Time Improvements

Sunday, December 11th, 2005

I finally got around to committing some changes to GConf which Lorenzo Colitti’s analysis of GNOME startup time showed would make a considerable improvement to login time. More details here.

The most frustrating part of this is just how difficult it is to get decent, reproducible figures of login time to show the improvements.

I first tried using bootchart to reproduce the results as Lorenzo had done. I hacked up a script to run gdm on a test machine, automatically login as a test user and get a bootchart of the time between gdm starting and the panel finishing loading the applets. I did a number of runs for each of my test cases – unmodified GConf, unmerged tree; unmodified GConf, merged tree; patched GConf, merged tree.

Unmodified Merged Tree Merged Tree, Split Translations

You can see improvements, just as Lorenzo predicted, but annoyingly each run of bootchart varied wildly from others, so you can’t really be sure exactly what difference you’ve made.

Next, I tried a much more low-tech approach. I wrote a script to record a timestamp in a text file in /tmp and ran that script from xinitrc and from the panel (once it had finished loading applets). By making the script reboot once it had recorded the second timestamp, and configuring GDM to login automatically, I could walk away from the machine and let it record a bunch of timings rather than sit there and watch it reboot.

Disappointingly, these results varied quite a bit too. But, by discarding obvious anomalies (note my ignorance of statistical methods) and taking an average, I got:

  • Unmodified GConf – 14.382s
  • Unmodified GConf; merged tree – 13.978s
  • Patched GConf; merged tree – 11.086s

That shows a ~20% improvement in login time, which is certainly promising.