Richard Jones' Log: Shiny new hardware, obpystone

Wed, 23 Feb 2005

The old (at least 5 years old dual P3 860MHz):

$ python
Python 1.5.2 ...
$ python /usr/local/lib/python2.3/test/pystone.py
Pystone(1.1) time for 50000 passes = 5.16
This machine benchmarks at 9689.92 pystones/second

*cough*

$ /usr/local/bin/python -V 
Python 2.3.4
$ /usr/local/bin/python /usr/local/lib/python2.3/test/pystone.py
Pystone(1.1) time for 50000 passes = 3.87
This machine benchmarks at 12919.9 pystones/second

The new (both machines have dual Opterons at 1.8GHz):

ellis:~$ python -V
Python 2.3.5
ellis:~$ python /usr/lib/python2.3/test/pystone.py
Pystone(1.1) time for 50000 passes = 1.17
This machine benchmarks at 42735 pystones/second
gaiman:~$ python -V
Python 2.3.5
gaiman:~$ python /usr/lib/python2.3/test/pystone.py
Pystone(1.1) time for 50000 passes = 1.16
This machine benchmarks at 43103.4 pystones/second

Oh, and:

gaiman:~$ python -c 'import sys;print sys.maxint' 
9223372036854775807

Cooool.... :)

Updated to correct speed of new CPUs

Comment by David MacKinnon on Wed, 23 Feb 2005

They're actually 1.8Ghz Opterons :) (Or close enough...)

processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 5
model name : AMD Opteron(tm) Processor 244
stepping : 10
cpu MHz : 1792.997
cache size : 1024 KB
physical id : 255
siblings : 1
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 pni syscall nx mmxext lm 3dnowext 3dnowbogomips : 3522.56
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp

Comment by Richard on Wed, 23 Feb 2005

For the record, my home machine (Athlon XP 2800+, 2GHz) gets about 42k as well.

Comment by Chris Withers on Wed, 23 Feb 2005

E:\>c:\python23\Lib\test\pystone.py
Pystone(1.1) time for 50000 passes = 6.67537
This machine benchmarks at 7490.22 pystones/second

*schniff* :'(

Comment by Factory on Wed, 23 Feb 2005

C:\Python23\Lib\test>python -V
Python 2.3

C:\Python23\Lib\test>python pystone.py
Pystone(1.1) time for 50000 passes = 1.26348
This machine benchmarks at 39573.4 pystones/second

On a athlon 2600+. You'd prolly get a decent speedup if the program was multithreaded.