Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A really simple benchmark tool

Project Description

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

Quick start

Write your benchmarks as you would write you unittests. Just create a file.

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


0.1.2 (2015-11-21)

  • Improve diff from reference and added -u/--unit option
  • Properly handle precision and added -p/--precision option


  • Fix Python 3 Wheel packaging


  • Initial release

Release History

This version
History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(14.3 kB) Copy SHA256 Hash SHA256
Source None Nov 21, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting