Author pitrou
Recipients christian.heimes, gregory.p.smith, haypo, mark.dickinson, pitrou
Date 2008-12-14.00:28:50
SpamBayes Score 0.00127391
Marked as misclassified No
Message-id <1229214531.67.0.83294942127.issue4258@psf.upfronthosting.co.za>
In-reply-to
Content
Just tested the patch, here are some benchmarks:

./python -m timeit -s "a=100000000;b=777777" "a//b"
 -> 2.6: 0.253 usec per loop
 -> 3.1: 0.61 usec per loop
 -> 3.1 + patch: 0.331 usec per loop

./python -m timeit -s "a=100000000;b=777777" "a*b"
 -> 2.6: 0.431 usec per loop
 -> 3.1: 0.302 usec per loop
 -> 3.1 + patch: 0.225 usec per loop

./python -m timeit -s "a=100000000;b=777777" "a+b"
 -> 2.6: 0.173 usec per loop
 -> 3.1: 0.229 usec per loop
 -> 3.1 + patch: 0.217 usec per loop

But it seems there are some outliers:

./python -m timeit -s "a=100000000**5+1;b=777777**3" "a//b"
 -> 2.6: 1.13 usec per loop
 -> 3.1: 1.12 usec per loop
 -> 3.1 + patch: 1.2 usec per loop
History
Date User Action Args
2008-12-14 00:28:52pitrousetrecipients: + pitrou, gregory.p.smith, mark.dickinson, haypo, christian.heimes
2008-12-14 00:28:51pitrousetmessageid: <1229214531.67.0.83294942127.issue4258@psf.upfronthosting.co.za>
2008-12-14 00:28:50pitroulinkissue4258 messages
2008-12-14 00:28:50pitroucreate