Skip to content

movermeyer/pytest-bench

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pytest-bench

PyPi Version PyPi Downloads

Benchmark utility that plugs into pytest.

Installation

  1. pytest-bench can be installed using pip or easy_install.

    pip install pytest-bench

Usage

from pytest import mark
import operator

@mark.bench('operator.eq')
def test_eq():
    assert operator.eq(1, 1)

Now when py.test --bench is run it will benchmark the execution of the operator.eq method.

License

Unless otherwise noted, all files contained within this project are liensed under the MIT opensource license. See the included file LICENSE or visit opensource.org for more information.

About

A benchmark utility for pytest.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%