This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author stutzbach
Recipients collinwinter, eric.smith, pitrou, rhettinger, stutzbach, tim.peters
Date 2010-09-22.17:14:30
SpamBayes Score 2.5281834e-09
Marked as misclassified No
Message-id <1285175673.25.0.400686320818.issue9915@psf.upfronthosting.co.za>
In-reply-to
Content
Attached is my script for running a more comprehensive battery of speed tests.  The script itself requires Python 2.6 with argparse installed or Python 2.7 (which includes argparse).

For obvious reasons, please make sure that your unpatched and patched versions of python are otherwise identical (same source, same compiler, same configure and compiler settings, etc.).

The script will create subdirectories to store data, so please run it in the speed_test directory.

Example usage:

otto:~/speed_test$ ./speed_test.py ../py3k-unpatched/ ../py3k-patched/ 'sort random'


otto:~/speed_test$ ./speed_test.py --help
usage: speed_test.py [-h] [--minn MINN] [--maxn MAXN]
                     [-r, --repetitions REPETITIONS] [--graphs]
                     control experiment [tests [tests ...]]

Compare the speed of two list implementations

positional arguments:
  control               control/python
  experiment            experiment/python
  tests                 Names of tests to conduct

optional arguments:
  -h, --help            show this help message and exit
  --minn MINN           Minimum list size
  --maxn MAXN           Maximum list size
  -r, --repetitions REPETITIONS
                        Repetitions; how many times to repeat each experiment
  --graphs              Generate performance graphs as a function of n;
                        requires gnuplot

Available experiments:
sort random tuples
sort random key
sort reversed
sort random objects
sort sorted
sort sorted key
sort random
sort sorted objects
sort reversed key
History
Date User Action Args
2010-09-22 17:14:33stutzbachsetrecipients: + stutzbach, tim.peters, collinwinter, rhettinger, pitrou, eric.smith
2010-09-22 17:14:33stutzbachsetmessageid: <1285175673.25.0.400686320818.issue9915@psf.upfronthosting.co.za>
2010-09-22 17:14:31stutzbachlinkissue9915 messages
2010-09-22 17:14:30stutzbachcreate