Benchmark multiple python functions using f- and t-tests
Compare multiple Python functions and statistically compare their speeds
scipy
is incompatible with PyPy
)virtualenv
. Then run the following:python main.py
deactivate
```
Suppose you have a specific kind of dataset and you want to compare the efficiency of various sorting algorithms. You want to know whether binary trees are better worse than hashtables. You want to compare which implementation of code is faster, or maybe what runs faster on Python. If you have that kind of need then this repo is for you.
As an example, functions.py contains various implementations of insertion sort algorithm. For most part, they are the same but each of them contains a crucial difference which marks the thing that we want to compare.
compare()
in main.py
. runner.bash
), change the second range of runner.bash
, from 0
to the total number of tests that you’re running.Damodar Dahal
The MIT License.