We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b25af9 commit 7ae70c6Copy full SHA for 7ae70c6
pyperformance/data-files/benchmarks/bm_ctypes/run_benchmark.py
@@ -60,10 +60,12 @@ def benchmark(loops):
60
void_foo_int_int_int_int = ext.void_foo_int_int_int_int
61
void_foo_constchar = ext.void_foo_constchar
62
63
+ range_it = range(loops)
64
+
65
# Test calling the functions using the implied arguments mechanism
66
t0 = pyperf.perf_counter()
67
- for i in range(loops):
68
+ for _ in range_it:
69
void_foo_void()
70
int_foo_int(1)
71
void_foo_int(1)
0 commit comments