-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example should have performance numbers and comparisons #163
Comments
Make sure to check with the Benchmarking for StarlingMonkey in general is tracking in bytecodealliance/StarlingMonkey#102. |
Out of curiosity, I tried running a similar script with # becnh.sh
for x in $(seq 1 1000)
do
./target/release/wasmtime-test > /dev/null
done # on examples/hello-world/host
# enableAOT: true
$ /usr/bin/time ./bench.sh
818.09 real 760.74 user 43.66 sys
# enableAOT: false
$ /usr/bin/time ./bench.sh
315.31 real 293.17 user 27.95 sys |
It depends on the exact workload whether the AOT flag improves performance or not. It's also worth testing on precompiled binaries since AOT sources are larger so will have a longer compile time in Wasmtime. |
That makes sense, hello world app would be too small to benefit from weval 👍 |
I'm doing some benchmarking, and while this might be apples to oranges,
--eval console.log('hello world')
1000 times takes approx 7-8sUsing
https://gitlab.com/api/v4/projects/47807501/packages/generic/js_interpreters/0.0.1/cweb_quickcheck.wasm
for the example.It would be good to understand better what performance we can expect and how to benchmark against other options.
The text was updated successfully, but these errors were encountered: