Skip to content

Commit 2d594c8

Browse files
committed
Don't unroll the loops
1 parent 07dbf0a commit 2d594c8

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

pyperformance/data-files/benchmarks/bm_ctypes/run_benchmark.py

+2-17
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,6 @@ def benchmark(loops):
7474
void_foo_int_int_int_int(1, 2, 3, 4)
7575
void_foo_constchar(b"bytes")
7676

77-
void_foo_void()
78-
int_foo_int(1)
79-
void_foo_int(1)
80-
void_foo_int_int(1, 2)
81-
void_foo_int_int_int(1, 2, 3)
82-
void_foo_int_int_int_int(1, 2, 3, 4)
83-
void_foo_constchar(b"bytes")
84-
85-
void_foo_void()
86-
int_foo_int(1)
87-
void_foo_int(1)
88-
void_foo_int_int(1, 2)
89-
void_foo_int_int_int(1, 2, 3)
90-
void_foo_int_int_int_int(1, 2, 3, 4)
91-
9277
return pyperf.perf_counter() - t0
9378

9479

@@ -105,6 +90,6 @@ def add_cmdline_args(cmd, args):
10590
options = runner.parse_args()
10691

10792
if options.argtypes:
108-
runner.bench_time_func("ctypes_argtypes", benchmark_argtypes, inner_loops=3)
93+
runner.bench_time_func("ctypes_argtypes", benchmark_argtypes)
10994
else:
110-
runner.bench_time_func("ctypes", benchmark, inner_loops=3)
95+
runner.bench_time_func("ctypes", benchmark)

0 commit comments

Comments
 (0)