Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ assert constant_number() == 2
# alternative implementations still act like themselves
assert unused_alternative_constant_number() == 3

# TODO: mash in measure + benchmark + equality tests from examples
See `examples/test_measure.py`, `examples/test_equivalence.py`, and `examples/test_benchmark.py` for measure, equivalence, and benchmark pytest patterns (the benchmark example uses the `pytest-benchmark` fixture).
```

The library tries to avoid unpleasant surprises that may come from import orders or maintenance issues:
Expand Down
2 changes: 1 addition & 1 deletion examples/test_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ def alternative_implementation1():

@reference_implementation.pytest_parametrize(only_default=False)
def test_f(benchmark, implementation):
"""Compare the output of the reference (with caching) and each alternative implementation."""
"""Benchmark all implementations using the pytest-benchmark `benchmark` fixture."""
assert benchmark(implementation) == 1
Loading