Re: [dwm] dmenu-input

From: Antoni Grzymala <antoni_AT_chopin.edu.pl>
Date: Thu, 5 Oct 2006 13:41:44 +0200

Tako rzecze Rob Manea (w liƛcie z 2006-10-05, 13:25):

> $ time (IFS=:; for dir in $PATH; do for file in "$dir"/*; do [ -x
> "$file" ] && echo ${file##*/} 1 > /dev/null; done; done)
> 0,35s user 0,16s system 98% cpu 0,518 total
>
> $ time dmenu-input 1 > /dev/null
> 0,02s user 0,02s system 96% cpu 0,046 total
>
> On a 1.3GHz PIII Mobile with XFS and a slooooow HDD...
>
> Bye, Rob

Did you restart your system in between the tests (to clean up the
cache)? Also, I think I had a much faster oneliner than arg's...

Will have a look if I can dig it up...

$ time find /opt/texlive/2005/bin/i386-linux /home/antoni/bin /sbin
/usr/sbin /usr/local/bi n /usr/bin /bin /opt/bin
/usr/i686-pc-linux-gnu/gcc-bin/4.1.1 /opt/ati/bin /usr/kde/3.5/bin
/usr/qt/3/bin /usr/games/bin /opt/vmware/server/bin -maxdepth 1 -type f
 | sort | uniq 1>/dev/null

real 0m0.052s
user 0m0.040s
sys 0m0.012s

$ time ./bin/dmenu-input | sort | uniq 1>/dev/null

real 0m0.036s
user 0m0.024s
sys 0m0.016s

Not much difference I'd say (with the directory listings cached). Still
dmenu-input is nice in the way that it makes config.h simpler.

[a]

-- 
. Antoni Grzymala - antoni (at) chopin.edu.pl -------------------.
| OpenPGP KeyID EB315583 available now from a keyserver near you |
| Fingerprint A819 6D2E D5EB D9E0 D2D9  7AF6 2FAF 4A11 EB31 5583 |
`----------------------------------------------------------------'
Received on Thu Oct 05 2006 - 13:41:57 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:31:50 UTC