LINUX.ORG.RU

История изменений

Исправление greenman, (текущая версия) :

$ time python2 tpol.py
gmpy

real	0m39.706s
user	0m39.557s
sys	0m0.060s
python2-gmpy2-2.0.5-1-i686
python2-mpmath-0.19-1-any   
$ lscpu 
Architecture:          i686
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                2
On-line CPU(s) list:   0,1
Thread(s) per core:    1
Core(s) per socket:    2
Socket(s):             1
Vendor ID:             AuthenticAMD
CPU family:            15
Model:                 43
Model name:            AMD Athlon(tm)64 X2 Dual Core Processor  4200+
Stepping:              1
CPU MHz:               1000.000
CPU max MHz:           2200,0000
CPU min MHz:           1000,0000
BogoMIPS:              2009.78
L1d cache:             64K
L1i cache:             64K
L2 cache:              512K

С питоном 3

$ time python tpol3.py
gmpy

real	0m48.031s
user	0m46.457s
sys	0m0.293s

Во второй половине дня могу прогнать на i3/x86_64

Исходная версия greenman, :

$ time python2 tpol.py
gmpy

real	0m39.706s
user	0m39.557s
sys	0m0.060s
python2-gmpy2-2.0.5-1-i686
python2-mpmath-0.19-1-any   
$ lscpu 
Architecture:          i686
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                2
On-line CPU(s) list:   0,1
Thread(s) per core:    1
Core(s) per socket:    2
Socket(s):             1
Vendor ID:             AuthenticAMD
CPU family:            15
Model:                 43
Model name:            AMD Athlon(tm)64 X2 Dual Core Processor  4200+
Stepping:              1
CPU MHz:               1000.000
CPU max MHz:           2200,0000
CPU min MHz:           1000,0000
BogoMIPS:              2009.78
L1d cache:             64K
L1i cache:             64K
L2 cache:              512K