A really simple benchmark tool
MiniBench provides a simple framework for benchmarking following the unittest module pattern.
minibench requires Python 2.7+.
You can install minibench with pip:
$ pip install minibench
or with easy_install:
$ easy_install minibench
Write your benchmarks as you would write you unittests. Just create a .bench.py file.
# fake.bench.py from minibench import Benchmark class FakeBenchmark(Benchmark): '''Fake benchmark''' def bench_fake(self): '''Run my bench''' # Do something
Then run it with the bench command
$ bench >>> Fake benchmark (x5) Run my bench ......................................... ✔ (0.1234s)
The documentation is hosted on Read the Docs
- Improve diff from reference and added -u/--unit option
- Properly handle precision and added -p/--precision option
- Fix Python 3 Wheel packaging
- Initial release
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size minibench-0.1.2.tar.gz (14.3 kB)||File type Source||Python version None||Upload date||Hashes View hashes|