Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

minibench

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minibench

A really simple benchmark tool

  • 0.1.2
  • PyPI
  • Socket score

Maintainers
1

========= 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 <http://minibench.readthedocs.org/en/0.1.2/>_

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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc