Skip to content
A collection of scientific kernels using the numpy module for benchmarking purpose
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Numpy Benchmarks

A collection of scientific kernels that use the numpy package, for benchmarking purpose.

Each kernel holds a #setup: ... code ... and a #run: ... code ... comment line to be passed to the timeit module for easy benchmarking, as automated by the script. To run a specific set of benchmarks on a specific set of compilers, use the ad hoc arguments , as in:

python -t python -t pythran benchmarks/ benchmarks/

A small utility, provided with the benchmark, fmt-bench can be used to pretty-print the result in various format (see fmt-bench --help:

python | ./fmt-bench


$ python -t python benchmarks/ harris Python 5431 5454 14

What does it mean? The code from benchmarks/ was run through timeit using the #setup and #run code. It outputs (in that order and in nanoseconds):

  1. the best execution time among all runs;
  2. the average execution time of the runs;
  3. the standard deviation of the runs.
You can’t perform that action at this time.