From 55bb5af253226861695fe57e570d8c6162c9aa10 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 d261a12b..5abcbad1 100755 --- a/test/default/wasi-test-wrapper.sh +++ b/test/default/wasi-test-wrapper.sh @@ -43,7 +43,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" &&