@@ -71,7 +71,7 @@ class Runner:
71
71
72
72
# Default parameters are chosen to have approximatively a run of 0.5 second
73
73
# and so a total duration of 5 seconds by default
74
- def __init__ (self , values = None , warmups = None , processes = None ,
74
+ def __init__ (self , values = None , processes = None ,
75
75
loops = 0 , min_time = 0.1 , metadata = None ,
76
76
show_name = True ,
77
77
program_args = None , add_cmdline_args = None ,
@@ -485,7 +485,7 @@ def bench_time_func(self, name, time_func, *args, **kwargs):
485
485
if self .args .profile :
486
486
profiler , time_func = profiling_wrapper (time_func )
487
487
488
- def task_func (task , loops ):
488
+ def task_func (_ , loops ):
489
489
return time_func (loops , * args )
490
490
491
491
task = WorkerProcessTask (self , name , task_func , metadata )
@@ -514,7 +514,7 @@ def bench_func(self, name, func, *args, **kwargs):
514
514
if self .args .profile :
515
515
profiler , func = profiling_wrapper (func )
516
516
517
- def task_func (task , loops ):
517
+ def task_func (_ , loops ):
518
518
# use fast local variables
519
519
local_timer = time .perf_counter
520
520
local_func = func
@@ -557,7 +557,7 @@ def bench_async_func(self, name, func, *args, **kwargs):
557
557
if self .args .profile :
558
558
profiler , func = profiling_wrapper (func )
559
559
560
- def task_func (task , loops ):
560
+ def task_func (_ , loops ):
561
561
if loops != 1 :
562
562
async def main ():
563
563
# use fast local variables
0 commit comments