-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tim Peters wrote: Vewy strange -- it looks as though OS-level caching matters here:
$ python Python 2.4.1 (#2, Mar 30 2005, 21:51:10) [GCC 3.3.5 (Debian 1:3.3.5-8ubuntu2)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> $ python test_lookup.py lookup1 0.91 lookup2 0.45 lookup3 0.4 $ python test_lookup.py lookup1 0.67 lookup2 0.48 lookup3 0.41 $ python test_lookup.py lookup1 0.57 lookup2 0.55 lookup3 0.5 $ python test_lookup.py lookup1 0.45 lookup2 0.44 lookup3 0.4 $ python test_lookup.py lookup1 0.45 lookup2 0.44 lookup3 0.41 $ python test_lookup.py lookup1 0.45 lookup2 0.45 lookup3 0.4 \$ python test_lookup.py lookup1 0.45 lookup2 0.44 lookup3 0.41 $ ~/projects/Zope-CVS/bin/python Python 2.3.5 (#1, Apr 11 2005, 13:18:06) [GCC 3.3.5 (Debian 1:3.3.5-8ubuntu2)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> $ ~/projects/Zope-CVS/bin/python test_lookup.py lookup1 1.24 lookup2 0.59 lookup3 0.48 $ ~/projects/Zope-CVS/bin/python test_lookup.py lookup1 0.49 lookup2 0.51 lookup3 0.48 $ ~/projects/Zope-CVS/bin/python test_lookup.py lookup1 0.49 lookup2 0.52 lookup3 0.47 $ ~/projects/Zope-CVS/bin/python test_lookup.py lookup1 0.5 lookup2 0.51 lookup3 0.47 $ ~/projects/Zope-CVS/bin/python test_lookup.py lookup1 0.5 lookup2 0.51 lookup3 0.47 $ ~/projects/Zope-CVS/bin/python test_lookup.py lookup1 0.49 lookup2 0.51 lookup3 0.47 But then again, the same is true for pystones: $ python ~/projects/Zope-CVS/lib/python2.3/test/pystone.py Pystone(1.1) time for 50000 passes = 1.39 This machine benchmarks at 35971.2 pystones/second $ python ~/projects/Zope-CVS/lib/python2.3/test/pystone.py Pystone(1.1) time for 50000 passes = 1.15 This machine benchmarks at 43478.3 pystones/second $ python ~/projects/Zope-CVS/lib/python2.3/test/pystone.py Pystone(1.1) time for 50000 passes = 0.96 This machine benchmarks at 52083.3 pystones/second $ python ~/projects/Zope-CVS/lib/python2.3/test/pystone.py Pystone(1.1) time for 50000 passes = 0.98 This machine benchmarks at 51020.4 pystones/second $ python ~/projects/Zope-CVS/lib/python2.3/test/pystone.py Pystone(1.1) time for 50000 passes = 0.96 This machine benchmarks at 52083.3 pystones/second $ python ~/projects/Zope-CVS/lib/python2.3/test/pystone.py Pystone(1.1) time for 50000 passes = 0.96 This machine benchmarks at 52083.3 pystones/second Tres. - -- =================================================================== Tres Seaver [EMAIL PROTECTED] Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCl3Jg+gerLs4ltQ4RAvMfAKC5JP/FOXvDPDCf25CqzisDd/2OZwCfdgNV yj0HH8oY37wc3urgKLZE21k= =Y7gD -----END PGP SIGNATURE----- _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )