K.S. Bhaskar on 3 Sep 2009 06:58:41 -0700 |
Sometimes, the best way to see how many teeth a horse has is to count them. Below is an experiment from my laptop - 64-bit Ubuntu 9.04 on jfs (the only file system I trust for my personal use). Watch out for line wraps. Regards -- Bhaskar -------------------------------------------------------------- $ rm -rf tmp ; mkdir tmp ; time for (( i=1 ; i<10 ; i++ )) do mkdir tmp/$i ; done ; ls -l tmp | wc real 0m0.054s user 0m0.012s sys 0m0.024s 10 74 431 $ rm -rf tmp ; mkdir tmp ; time for (( i=1 ; i<100 ; i++ )) do mkdir tmp/$i ; done ; ls -l tmp | wc real 0m0.583s user 0m0.212s sys 0m0.312s 100 794 4751 $ rm -rf tmp ; mkdir tmp ; time for (( i=1 ; i<1000 ; i++ )) do mkdir tmp/$i ; done ; ls -l tmp | wc real 0m5.330s user 0m1.900s sys 0m2.476s 1000 7994 48851 $ rm -rf tmp ; mkdir tmp ; time for (( i=1 ; i<10000 ; i++ )) do mkdir tmp/$i ; done ; ls -l tmp | wc real 0m40.138s user 0m13.309s sys 0m19.301s 10000 79994 498851 $ rm -rf tmp ; mkdir tmp ; time for (( i=1 ; i<100000 ; i++ )) do mkdir tmp/$i ; done ; ls -l tmp | wc real 9m4.495s user 3m15.796s sys 4m30.721s 100000 799994 5088851 $ -------------------------------------------------------------- ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|