A really simple benchmark tool
Project description
MiniBench provides a simple framework for benchmarking following the unittest module pattern.
Compatibility
minibench requires Python 2.7+.
Installation
You can install minibench with pip:
$ pip install minibench
or with easy_install:
$ easy_install minibench
Quick start
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)
Documentation
The documentation is hosted on Read the Docs
Changelog
0.1.0
Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
minibench-0.1.0.tar.gz
(13.8 kB
view hashes)
Built Distribution
Close
Hashes for minibench-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ceae8ef1dc71c2d509b505c94678e7f241b409bdb189b0f8e622dce2f2591d04 |
|
MD5 | fa9c3a7ef1431da38535c3d5259d66fe |
|
BLAKE2b-256 | dee21ede4882ed20cacf28a13116de3afb5484397beed377262ec5c743d9b595 |