Skip to content

Instantly share code, notes, and snippets.

@syrusakbary
Created December 10, 2020 21:18
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save syrusakbary/6c28698193fe2efb2294d95fd084f667 to your computer and use it in GitHub Desktop.
Save syrusakbary/6c28698193fe2efb2294d95fd084f667 to your computer and use it in GitHub Desktop.
Wasmer Compilation Benchmark - 0.x vs 1.0
curl https://registry-cdn.wapm.io/contents/_/clang/0.1.0/clang.wasm -O clang.wasm
# Install Wasmer 0.17.1
curl https://get.wasmer.io -sSfL | WASMER_DIR=`pwd`/wasmer-0.17.1/ sh -s 0.17.1
# Install Wasmer 1.0
curl https://get.wasmer.io -sSfL | WASMER_DIR=`pwd`/wasmer-1.0/ sh
# Timings for Wasmer 0.17.1
time ./wasmer-0.17.1/bin/wasmer --disable-cache --backend=singlepass clang.wasm -- -V
time ./wasmer-0.17.1/bin/wasmer --disable-cache --backend=cranelift clang.wasm -- -V
time ./wasmer-0.17.1/bin/wasmer --disable-cache --backend=llvm clang.wasm -- -V
# Timings for Wasmer 1.0
time ./wasmer-1.0/bin/wasmer --disable-cache --singlepass clang.wasm -- -V
time ./wasmer-1.0/bin/wasmer --disable-cache --cranelift clang.wasm -- -V
time ./wasmer-1.0/bin/wasmer --disable-cache --llvm clang.wasm -- -V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment