Skip to content

Commit 7c0d919

Browse files
committed
Rely on pytest-perf 0.16 for nanosecond precision in performance tests.
Closes #539
1 parent 3f4855b commit 7c0d919

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

‎exercises.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,4 @@ def normalize_perf():
5151
# python/cpython#143658
5252
import importlib_metadata # end warmup
5353

54-
# operation completes in < 1ms, so repeat it to get visibility
55-
# https://github.com/jaraco/pytest-perf/issues/12
56-
for _ in range(1000):
57-
importlib_metadata.Prepared.normalize('sample')
54+
importlib_metadata.Prepared.normalize('sample')

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ test = [
3838
# local
3939
"packaging",
4040
"pyfakefs",
41-
"pytest-perf >= 0.9.2",
41+
"pytest-perf >= 0.16",
4242
]
4343

4444
doc = [

0 commit comments

Comments
 (0)