[cu2qu.benchmark] Remove unused parameter
This commit is contained in:
parent
2a54dc5742
commit
ff5d758b27
@ -23,9 +23,7 @@ def setup_curves_to_quadratic():
|
|||||||
return ([generate_curve() for curve in range(num_curves)], [MAX_ERR] * num_curves)
|
return ([generate_curve() for curve in range(num_curves)], [MAX_ERR] * num_curves)
|
||||||
|
|
||||||
|
|
||||||
def run_benchmark(
|
def run_benchmark(module, function, setup_suffix="", repeat=5, number=1000):
|
||||||
benchmark_module, module, function, setup_suffix="", repeat=5, number=1000
|
|
||||||
):
|
|
||||||
setup_func = "setup_" + function
|
setup_func = "setup_" + function
|
||||||
if setup_suffix:
|
if setup_suffix:
|
||||||
print("%s with %s:" % (function, setup_suffix), end="")
|
print("%s with %s:" % (function, setup_suffix), end="")
|
||||||
@ -48,8 +46,8 @@ def run_benchmark(
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""Benchmark the cu2qu algorithm performance."""
|
"""Benchmark the cu2qu algorithm performance."""
|
||||||
run_benchmark("cu2qu.benchmark", "cu2qu", "curve_to_quadratic")
|
run_benchmark("cu2qu", "curve_to_quadratic")
|
||||||
run_benchmark("cu2qu.benchmark", "cu2qu", "curves_to_quadratic")
|
run_benchmark("cu2qu", "curves_to_quadratic")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user