Skip to content

Commit a356e68

Browse files
committed
Change python script to include eos-vm in benchmarks
1 parent 64c078f commit a356e68

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

wasm-engines/docker/wasm-engines-bench.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ FROM ewasm/wavm:1 AS wavm
99
FROM ewasm/fizzy:1 AS fizzy
1010
FROM ewasm/asmble:1 AS asmble
1111
FROM ewasm/wasmi:1 AS wasmi
12-
FROM eos-bench AS eos
12+
FROM ewasm/eos-bench:1 AS eos
1313

1414
FROM ewasm/llvm-10:1
1515

@@ -47,7 +47,7 @@ COPY --from=wamr /wasm-micro-runtime/product-mini/platforms/linux/build_interp/i
4747
COPY --from=wamr /wasm-micro-runtime/wamr-compiler/build/wamrc /engines/wamr/wamrc
4848
COPY --from=asmble /asmble/ /engines/asmble/
4949
COPY --from=wagon /wagon/cmd/wasm-run/wasm-run /engines/wagon/wasm-run
50-
COPY --from=eos /eos-vm/build/tools/bench-interp /eos-vm/build/tools/bench-interp
50+
COPY --from=eos /eos-vm/build/tools/bench-interp /engines/eos-vm/build/tools/bench-interp
5151

5252
RUN mkdir /benchmark_results_data
5353

wasm-engines/fluence_bencher/WasmVMBencher.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ def run_engine(self, vm, cmd):
156156
result_record = self.do_fizzy_test(cmd)
157157
elif vm == "ssvm":
158158
result_record = self.do_ssvm_test(cmd)
159+
elif vm == "eos-vm":
160+
result_record = self.do_eos_test(cmd)
159161
else:
160162
result_record = self.doElapsedTest(cmd)
161163

@@ -469,6 +471,18 @@ def do_ssvm_test(self, vm_cmd):
469471
'exec_regex' : "Total execution time: ([\w\.]+)"
470472
}
471473
return self.doCompilerTest(vm_cmd, time_parse_info)
474+
def do_eos_test(self, vm_cmd):
475+
"""
476+
Startup 188835
477+
Execution 689115
478+
"""
479+
time_parse_info = {
480+
'compile_line_num': 0,
481+
'exec_line_num': 1,
482+
'compile_regex' : "Startup ([\w\.]+)",
483+
'exec_regex' : "Execution ([\w\.]+)"
484+
}
485+
return self.doCompilerTest(vm_cmd, time_parse_info)
472486

473487
def doElapsedTest(self, vm_cmd):
474488
"""Launches provided shell command string via subprocess.Popen and measure its execution time.

wasm-engines/fluence_bencher/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"wasm3" : VMDescriptor("/engines/wasm3/wasm3", "--func {function_name} {wasm_file_path}"),
4949
"fizzy" : VMDescriptor("/engines/fizzy/fizzy.sh", "{function_name} {wasm_file_path}"),
5050
"ssvm" : VMDescriptor("/engines/ssvm/ssvm", "{wasm_file_path} {function_name}"),
51-
51+
"eos-vm" : VMDescriptor("/engines/eos-vm/build/tools/bench-interp", "{wasm_file_path}"),
5252
# "wasmer" : VMDescriptor("/engines/wasmer/target/release/wasmer", "run {wasm_file_path}", True),
5353
# we have binaryen, but calling wasm-shell -e main is not working
5454
}

0 commit comments

Comments
 (0)