Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
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.

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
Release History

Release History

This version
History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
minibench-0.1.2.tar.gz (14.3 kB) Copy SHA256 Checksum SHA256 Source Nov 21, 2015

Supported By

WebFaction WebFaction Technical Writing 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 Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting