Message83795
My numbers:
# No patch
$ ./python /home/haypo/pidigits-2.py 3000
Python 3.1a1+ (py3k:70466, Mar 18 2009, 23:56:06)
[GCC 4.3.2]
CPU: 64 bits, little endian
PyLong: base=2^30, sizeof(digit)=32 bits
(...)
Best Time; 2300.2 ms
# With faster_integer_division.patch
(...)
Best Time; 1138.1 ms
Ok, it's two times faster on 64 bits CPU!!!
Other notes about pidigits:
- missing header (no author name, no description)
- pidigit should also write the number of digits in its output to
avoid mistakes in comparaisons |
|
Date |
User |
Action |
Args |
2009-03-18 23:27:22 | vstinner | set | recipients:
+ vstinner, mark.dickinson, pitrou |
2009-03-18 23:27:22 | vstinner | set | messageid: <1237418842.4.0.379665741187.issue5512@psf.upfronthosting.co.za> |
2009-03-18 23:27:21 | vstinner | link | issue5512 messages |
2009-03-18 23:27:20 | vstinner | create | |
|