| 1 | ________________________________________________________________________
|
|---|
| 2 |
|
|---|
| 3 | PYBENCH - A Python Benchmark Suite
|
|---|
| 4 | ________________________________________________________________________
|
|---|
| 5 |
|
|---|
| 6 | Extendable suite of of low-level benchmarks for measuring
|
|---|
| 7 | the performance of the Python implementation
|
|---|
| 8 | (interpreter, compiler or VM).
|
|---|
| 9 |
|
|---|
| 10 | pybench is a collection of tests that provides a standardized way to
|
|---|
| 11 | measure the performance of Python implementations. It takes a very
|
|---|
| 12 | close look at different aspects of Python programs and let's you
|
|---|
| 13 | decide which factors are more important to you than others, rather
|
|---|
| 14 | than wrapping everything up in one number, like the other performance
|
|---|
| 15 | tests do (e.g. pystone which is included in the Python Standard
|
|---|
| 16 | Library).
|
|---|
| 17 |
|
|---|
| 18 | pybench has been used in the past by several Python developers to
|
|---|
| 19 | track down performance bottlenecks or to demonstrate the impact of
|
|---|
| 20 | optimizations and new features in Python.
|
|---|
| 21 |
|
|---|
| 22 | The command line interface for pybench is the file pybench.py. Run
|
|---|
| 23 | this script with option '--help' to get a listing of the possible
|
|---|
| 24 | options. Without options, pybench will simply execute the benchmark
|
|---|
| 25 | and then print out a report to stdout.
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 | Micro-Manual
|
|---|
| 29 | ------------
|
|---|
| 30 |
|
|---|
| 31 | Run 'pybench.py -h' to see the help screen. Run 'pybench.py' to run
|
|---|
| 32 | the benchmark suite using default settings and 'pybench.py -f <file>'
|
|---|
| 33 | to have it store the results in a file too.
|
|---|
| 34 |
|
|---|
| 35 | It is usually a good idea to run pybench.py multiple times to see
|
|---|
| 36 | whether the environment, timers and benchmark run-times are suitable
|
|---|
| 37 | for doing benchmark tests.
|
|---|
| 38 |
|
|---|
| 39 | You can use the comparison feature of pybench.py ('pybench.py -c
|
|---|
| 40 | <file>') to check how well the system behaves in comparison to a
|
|---|
|
|---|