Skip to content

Commit 367fca6

Browse files
authored
test_benchmark.py: Remove unused args_processor param. NFC (#26291)
1 parent 8551146 commit 367fca6

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

test/test_benchmark.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -436,15 +436,12 @@ def hardcode_arguments(self, code):
436436
def do_benchmark(self, name, src, expected_output='FAIL', args=None,
437437
emcc_args=None, native_args=None, shared_args=None,
438438
force_c=False, reps=TEST_REPS, native_exec=None,
439-
output_parser=None, args_processor=None, lib_builder=None,
439+
output_parser=None, lib_builder=None,
440440
skip_benchmarkers=None):
441441
if not benchmarkers:
442442
raise Exception('error, no benchmarkers')
443443

444444
args = args or [DEFAULT_ARG]
445-
if args_processor:
446-
args = args_processor(args)
447-
448445
dirname = self.get_dir()
449446
filename = os.path.join(dirname, name + '.c' + ('' if force_c else 'pp'))
450447
src = self.hardcode_arguments(src)
@@ -977,7 +974,7 @@ def output_parser(output):
977974
return float(re.search(r'Total elapsed: ([\d\.]+)', output).group(1))
978975
self.do_benchmark('matrix_multiply', read_file(test_file('matrix_multiply.cpp')), 'Total elapsed:', output_parser=output_parser, shared_args=['-I' + test_file('benchmark')])
979976

980-
def lua(self, benchmark, expected, output_parser=None, args_processor=None):
977+
def lua(self, benchmark, expected, output_parser=None):
981978
self.cflags.remove('-Werror')
982979
shutil.copyfile(test_file(f'third_party/lua/{benchmark}.lua'), benchmark + '.lua')
983980

@@ -995,7 +992,7 @@ def lib_builder(name, native, env_init):
995992
force_c=True, args=[benchmark + '.lua', DEFAULT_ARG],
996993
emcc_args=['--embed-file', benchmark + '.lua', '-sFORCE_FILESYSTEM', '-sMINIMAL_RUNTIME=0'], # not minimal because of files
997994
lib_builder=lib_builder, native_exec=os.path.join('building', 'third_party', 'lua_native', 'src', 'lua'),
998-
output_parser=output_parser, args_processor=args_processor)
995+
output_parser=output_parser)
999996

1000997
def test_zzz_lua_scimark(self):
1001998
def output_parser(output):

0 commit comments

Comments
 (0)