Skip to content

Commit 06c58d4

Browse files
authored
Update benchmark script for wasm-by-default (#6552)
1 parent c3a9886 commit 06c58d4

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

tests/test_benchmark.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,10 @@ def run(self, args):
183183

184184
def get_output_files(self):
185185
ret = [self.filename]
186-
if 'WASM=1' in self.extra_args:
187-
ret.append(self.filename[:-3] + '.wasm')
188-
else:
186+
if 'WASM=0' in self.extra_args:
189187
ret.append(self.filename + '.mem')
188+
else:
189+
ret.append(self.filename[:-3] + '.wasm')
190190
return ret
191191

192192
CHEERP_BIN = '/opt/cheerp/bin/'
@@ -334,18 +334,17 @@ def handle_static_lib(self, f):
334334
]
335335
if SPIDERMONKEY_ENGINE and Building.which(SPIDERMONKEY_ENGINE[0]):
336336
benchmarkers += [
337-
EmscriptenBenchmarker('sm-asmjs', SPIDERMONKEY_ENGINE, ['-s', 'PRECISE_F32=2']),
338-
#EmscriptenBenchmarker('sm-simd', SPIDERMONKEY_ENGINE, ['-s', 'SIMD=1']),
339-
EmscriptenBenchmarker('sm-asm2wasm', SPIDERMONKEY_ENGINE + ['--no-wasm-baseline'], ['-s', 'WASM=1']),
340-
EmscriptenBenchmarker('sm-asm2wasm-lto', SPIDERMONKEY_ENGINE + ['--no-wasm-baseline'], ['-s', 'WASM=1', '--llvm-lto', '1']),
341-
#EmscriptenBenchmarker('sm-wasmbackend', SPIDERMONKEY_ENGINE + ['--no-wasm-baseline'], ['-s', 'WASM=1'], env={
337+
EmscriptenBenchmarker('sm-asmjs', SPIDERMONKEY_ENGINE, ['-s', 'PRECISE_F32=2', '-s', 'WASM=0']),
338+
EmscriptenBenchmarker('sm-asm2wasm', SPIDERMONKEY_ENGINE + ['--no-wasm-baseline'], []),
339+
#EmscriptenBenchmarker('sm-asm2wasm-lto', SPIDERMONKEY_ENGINE + ['--no-wasm-baseline'], ['--llvm-lto', '1']),
340+
#EmscriptenBenchmarker('sm-wasmbackend', SPIDERMONKEY_ENGINE + ['--no-wasm-baseline'], [env={
342341
# 'LLVM': '/home/alon/Dev/llvm/build/bin',
343342
# 'EMCC_WASM_BACKEND': '1',
344343
#}),
345344
]
346345
if V8_ENGINE and Building.which(V8_ENGINE[0]):
347346
benchmarkers += [
348-
EmscriptenBenchmarker('v8-wasm', V8_ENGINE, ['-s', 'WASM=1']),
347+
EmscriptenBenchmarker('v8-wasm', V8_ENGINE),
349348
]
350349
if os.path.exists(CHEERP_BIN):
351350
benchmarkers += [

0 commit comments

Comments
 (0)