Python 2.1 slower than 2.0

A.M. Kuchling akuchlin at mems-exchange.org
Sat Jan 27 13:58:30 EST 2001


On Sat, 27 Jan 2001 18:28:02 +0100, 
	Andreas Jung <andreas at andreas-jung.com> wrote:
>Is there a reason why 2.1 runs significantly slower ?
>Both Python versions were compiled with -g -O2 only.

[CC'ing to python-dev]  Confirmed:

[amk at mira Python-2.0]$ ./python Lib/test/pystone.py
Pystone(1.1) time for 10000 passes = 3.14
This machine benchmarks at 3184.71 pystones/second
[amk at mira Python-2.0]$ python2.1 Lib/test/pystone.py
Pystone(1.1) time for 10000 passes = 3.81
This machine benchmarks at 2624.67 pystones/second

The ceval.c changes seem a likely candidate to have caused this.
Anyone want to run Marc-Andre's microbenchmarks and see how the
numbers have changed?

--amk





More information about the Python-list mailing list