Benchmark utility that plugs into pytest.
Project description
# pytest-bench
> Benchmark utility that plugs into pytest.
## Installation
1. **pytest-bench** can be installed using `pip` or `easy_install`.
```sh
pip install pytest-bench
```
## Usage
```python
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.
[opensource.org]: http://opensource.org/licenses/MIT
> Benchmark utility that plugs into pytest.
## Installation
1. **pytest-bench** can be installed using `pip` or `easy_install`.
```sh
pip install pytest-bench
```
## Usage
```python
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.
[opensource.org]: http://opensource.org/licenses/MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytest-bench-0.1.0.tar.gz
(4.0 kB
view details)
File details
Details for the file pytest-bench-0.1.0.tar.gz
.
File metadata
- Download URL: pytest-bench-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ed8e9a2a2cfd634d7b5cb9c298c0d2d8120342cbe99a66d22c0cd60c830eed2 |
|
MD5 | a2d0fb7fb2e74ddefe1a9f44777b9933 |
|
BLAKE2b-256 | 81d88d614c42db71502b97c6d38ddea32aca6c26585a15cb6b28925b9995576b |