On 8/23/2011 6:38 PM, Victor Stinner wrote: > Le mardi 23 août 2011 00:14:40, Antoine Pitrou a écrit : >> - You could try to run stringbench, which can be found at >> http://svn.python.org/projects/sandbox/trunk/stringbench (*) >> and there's iobench (the text mode benchmarks) in the Tools/iobench >> directory. > > Some raw numbers. > > stringbench: > "147.07 203.07 72.4 TOTAL" for the PEP 393 > "146.81 140.39 104.6 TOTAL" for default > => PEP is 45% slower
I ran the same benchmark and couldn't make a distinction in performance between them: pep-393.txt 182.17 175.47 103.8 TOTAL cpython.txt 183.26 177.97 103.0 TOTAL pep-393-wide-unicode.txt 181.61 198.69 91.4 TOTAL cpython-wide-unicode.txt 181.27 195.58 92.7 TOTAL I ran it a couple times and have seen either default or pep-393 being up to +/- 10 sec slower on the unicode tests. The results of the 8-bit string tests seem to have less variance on my test machine. > run test_unicode 50 times: > 0m19.487s for PEP > 0m17.187s for default > => PEP is 13% slower $ time ./python -m test `python -c 'print "test_unicode " * 50'` pep-393-wide-unicode.txt real 0m33.409s cpython-wide-unicode.txt real 0m33.489s Nothing in it for me.. except your system is obviously faster, in general. -- Scott Dial sc...@scottdial.com _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com