This commit is contained in:
ydshieh 2024-03-15 18:26:19 +01:00
parent 01f89c9256
commit bb5da0421d
1 changed files with 1 additions and 0 deletions

View File

@ -102,6 +102,7 @@ class BenchMark:
class SpeedBenchMark(BenchMark):
"""A simple class used to benchmark the running time of a callable."""
def _measure(self, func, number=3, repeat=1):
self._buffer["measure_kwargs"]["number"] = number
self._buffer["measure_kwargs"]["repeat"] = repeat