mirror of
https://github.com/google/benchmark.git
synced 2024-12-27 13:00:36 +08:00
Deduplicate test function name in python bindings example (#1189)
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:
parent
1799e1b9ec
commit
d6778aebbe
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user