Skip to content

Commit 12231ce

Browse files
committed
benchmark/ffmpeg.sh
* print versions * remove an iwasm option for fast-jit as it seems no longer necessary
1 parent 2701458 commit 12231ce

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

benchmark/ffmpeg.sh

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ set -e
77

88
run()
99
{
10-
echo "===== $@"
10+
echo "===== $1"
11+
shift 1
12+
echo "----- $@"
1113
OUTPUT=$(mktemp)
1214
./test/run-ffmpeg.sh /usr/bin/time -l "$@" > ${OUTPUT} 2>&1
1315
grep -E "(real.*user.*sys|instructions retired|peak memory footprint|maximum resident set size)" ${OUTPUT}
@@ -19,16 +21,16 @@ run()
1921
# which use malloc+read to load wasm binaries.
2022

2123
TOYWASM=${TOYWASM:-toywasm}
22-
run ${TOYWASM} --wasi --wasi-dir .video --
23-
# run ${TOYWASM} --wasi --wasi-dir .video --disable-jump-table --disable-localtype-cellidx --disable-resulttype-cellidx --
24+
run "toywasm" ${TOYWASM} --wasi --wasi-dir .video --
25+
# run "toywasm" ${TOYWASM} --wasi --wasi-dir .video --disable-jump-table --disable-localtype-cellidx --disable-resulttype-cellidx --
2426

25-
run wasm3 --dir .video --
27+
run "$(wasm3 --version|head -1)" wasm3 --dir .video --
2628

27-
run iwasm.fast --dir=.video
28-
run iwasm.classic --dir=.video
29+
run "$(iwasm.fast --version) (fast interpreter)" iwasm.fast --dir=.video
30+
run "$(iwasm.classic --version) (classic interpreter)" iwasm.classic --dir=.video
2931
# Note: i needed to tweak these size options manually to run
3032
# this particular wasm binary
31-
run iwasm.fast-jit --dir=.video --jit-codecache-size=100000000 --stack-size=100000
33+
run "$(iwasm.fast-jit --version) (fast jit)" iwasm.fast-jit --dir=.video --jit-codecache-size=100000000
3234

33-
run wasmer run --dir .video --
34-
run wasmtime run --dir .video --
35+
run "$(wasmer --version)" wasmer run --dir .video --
36+
run "$(wasmtime --version)" wasmtime run --dir .video --

0 commit comments

Comments
 (0)