Skip to content

Commit

Permalink
test: refactor Quantitiy init bench
Browse files Browse the repository at this point in the history
  • Loading branch information
unexcellent committed Dec 11, 2024
1 parent 2c38b8c commit 7326377
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions benchmarking/bench_quantity.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@
from quantio import Time


def init_only_base_unit():
Time(seconds=1, milliseconds=1)


def bench_init(benchmark):
benchmark.pedantic(init_only_base_unit, iterations=100, rounds=100)
f = lambda: Time(seconds=1, milliseconds=1)
benchmark.pedantic(f, iterations=100, rounds=100)


if __name__ == "__main__":
Expand Down

0 comments on commit 7326377

Please sign in to comment.