1
0
mirror of https://github.com/google/benchmark.git synced 2025-04-29 14:30:37 +08:00

Deduplicate test function name in python bindings example ()

This appears to be the source of unclean termination of the test on some
versions of python related to object dereferencing.
This commit is contained in:
Mircea Trofin 2021-06-28 02:28:04 -07:00 committed by GitHub
parent 1799e1b9ec
commit d6778aebbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,7 @@ def with_options(state):
@benchmark.register(name="sum_million_microseconds")
@benchmark.option.unit(benchmark.kMicrosecond)
def with_options(state):
def with_options2(state):
while state:
sum(range(1_000_000))