MiniBench
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.2 (2015-11-21)
Improve diff from reference and added -u/--unit option
Properly handle precision and added -p/--precision option
0.1.1
Fix Python 3 Wheel packaging
0.1.0
Initial release
Metadata
Release files for minibench 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| minibench-0.1.2.tar.gz | 14.3 kB | Without provenance | Details for minibench-0.1.2.tar.gz |
Release files / minibench-0.1.2.tar.gz
| Download URL | minibench-0.1.2.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bce82ab4c3d491a7e14b3ba8df4d32206a8f15d478760d371a59fc7a58a33a76
|
|
BLAKE2b-256 checksum How to use checksums |
508a5fa7df50ba18e589b4380d7d8122c3378b2d8f5972240bfc6e8ac61eaeb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for minibench 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.