[Python-Dev] Optimize Python long integers (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Tue Nov 11 14:35:08 CET 2008
- Previous message: [Python-Dev] Optimize Python long integers
- Next message: [Python-Dev] Optimize Python long integers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Victor Stinner <victor.stinner haypocalc.com> writes:
I tried to do benchmark on all these patches using pystone or pybench, but the results are inaccurate. Pystone results change with +/- 20% with the same code on different runs. I tried more loops (pystone 250000), but it doesn't change anything. Pybench is better it is also inaccurate to benchmark operations on integers. That's I started to write a basic benchmark tool to compare the different patches: see file benchint.py of the issue #4294.
If you want to benchmark arithmetic on large integers, you may try out the pidigits test from the Computer Language Shootout : http://shootout.alioth.debian.org/u64/benchmark.php?test=pidigits&lang=python&id=1
cheers
Antoine.
- Previous message: [Python-Dev] Optimize Python long integers
- Next message: [Python-Dev] Optimize Python long integers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]