-
Notifications
You must be signed in to change notification settings - Fork 1
Home
neizod edited this page Oct 22, 2012
·
4 revisions
Welcome to the mathapi wiki!
Test on Intel Core i3-2330M (2.20GHz) with 4GB DDR3 RAM under Linux 3.2.
Python version: 2.7.3, 3.2.3, PyPy 1.9.0 with GCC 4.6.3.
Time measuring using Linux's time
command.
Task | Python 2 | Python 3 | PyPy |
---|---|---|---|
loop through primes under 10**7 | 0m3.682s | 0m3.454s | 0m0.828s |
loop through primes under 10**8 | - | - | 0m6.193s |
prime test for numbers in range 10**10 + {1..10**5} | 0m12.104s | 0m12.323s | 0m0.477s |
prime test for numbers in range 10**10 + {1..10**6} | - | - | 0m4.005s |
factorized numbers under 10**5 | 0m2.649s | 0m2.894s | 0m0.406s |
factorized numbers under 10**6 | - | - | 0m3.182s |