From 3d807d920500c64ff9d324fab0a039d10683a6a3 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 24 Feb 2021 21:38:53 +0100 Subject: [PATCH] wasm bench: make lucet performance significantly better By default, lucetc generates code with explicit bound checking, even though the runtime has guard pages. Elision only happens with --reserved-size=4GiB --- test/default/wasi-test-wrapper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/default/wasi-test-wrapper.sh b/test/default/wasi-test-wrapper.sh index c454fe02..3fb80d56 100755 --- a/test/default/wasi-test-wrapper.sh +++ b/test/default/wasi-test-wrapper.sh @@ -51,7 +51,7 @@ if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "lucet" ]; then if command -v lucetc-wasi >/dev/null && command -v lucet-wasi >/dev/null; then lucetc-wasi \ --target-cpu native \ - --reserved-size "${MAX_MEMORY_TESTS}" \ + --reserved-size "4GiB" \ --opt-level speed \ "$1" -o "${1}.so" && lucet-wasi --dir=.:. --max-heap-size "${MAX_MEMORY_TESTS}" "${1}.so" &&