@@ -370,20 +370,18 @@ def run_benchmarking_tests(
370370 "to account for Maven startup overhead"
371371 )
372372
373- kwargs = {
374- "test_paths" : test_paths ,
375- "test_env" : test_env ,
376- "cwd" : cwd ,
377- "timeout" : effective_timeout ,
378- "project_root" : js_project_root ,
379- "min_loops" : min_outer_loops ,
380- "max_loops" : max_outer_loops ,
381- "target_duration_seconds" : target_runtime_seconds ,
382- }
383- # Pass inner_iterations if specified (for Java/JavaScript)
384- if inner_iterations is not None :
385- kwargs ["inner_iterations" ] = inner_iterations
386- return language_support .run_benchmarking_tests (** kwargs )
373+ inner_iterations_kwargs = {"inner_iterations" : inner_iterations } if inner_iterations is not None else {}
374+ return language_support .run_benchmarking_tests (
375+ test_paths = test_paths ,
376+ test_env = test_env ,
377+ cwd = cwd ,
378+ timeout = effective_timeout ,
379+ project_root = js_project_root ,
380+ min_loops = min_outer_loops ,
381+ max_loops = max_outer_loops ,
382+ target_duration_seconds = target_runtime_seconds ,
383+ ** inner_iterations_kwargs ,
384+ )
387385 if is_python (): # pytest runs both pytest and unittest tests
388386 pytest_cmd_list = (
389387 shlex .split (f"{ SAFE_SYS_EXECUTABLE } -m pytest" , posix = IS_POSIX )
0 commit comments