Skip to content

Commit adbebd4

Browse files
committed
Compile tinygo benches with -opt=2 -gc=leaking
There's still a large divide with the rust regex bench but this brings things a bit closer from 32x slower to 19x slower in a quick benchmark.
1 parent 1360e72 commit adbebd4

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

benchmarks/tinygo/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ for dir in */; do
2424
cd "$dir"
2525

2626
# Build with TinyGo
27-
"$TINYGO" build -o "$OUTPUT_DIR/tinygo-$benchmark.wasm" -target=wasi .
27+
"$TINYGO" build -o "$OUTPUT_DIR/tinygo-$benchmark.wasm" -target=wasi -opt=2 -gc=leaking .
2828

2929
cd "$SCRIPT_DIR"
3030

benchmarks/tinygo/tinygo-json.wasm

346 KB
Binary file not shown.
292 KB
Binary file not shown.

0 commit comments

Comments
 (0)