Stream: git-wasmtime

Topic: wasmtime / issue #15192 Performance regression in 67d70b4...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 22:07):

ba-are-we-fast-yet[bot] opened issue #15192:

are-we-fast-yet found 1 regression and 1 speedup in virtual cycles (callgrind) between Wasmtime 67d70b4e192e and c2851ff669c5.

A change counts when a Mann-Whitney U test finds it significant at the 0.01 level and it clears its phase's minimum relative change:

phase geomean individual
compilation 0.3% 1%
instantiation 2.5% 20%
execution 0.5% 2%

Regressions (1)

benchmark phase Δ virtual cycles virtual cycles noise Δ instructions retired instructions retired noise
cm-online-stats/cm-online-stats.wasm execution +12.41% (+12.40% to +12.42%) 0.015% -> 0.008% +12.43% 0.003% -> 0.001%

Speedups (1)

benchmark phase Δ virtual cycles virtual cycles noise Δ instructions retired instructions retired noise
tinygo/tinygo-regex.wasm execution -2.72% (-2.75% to -2.72%) 0.003% -> 0.029% -0.00% 0.001% -> 0.005%

A positive delta is a slowdown, a negative delta is a speedup.

instructions retired counts work done rather than how well it was predicted. A regression whose instructions didn't move is often Valgrind's branch predictors aliasing on a code layout change; see docs/regressions.md.

Each noise column is how far that event's own counts spread.

<details>
<summary>Other callgrind counters that changed for these benchmarks</summary>

benchmark phase counter Δ noise
cm-online-stats/cm-online-stats.wasm execution ll-dcache-read-misses -39.39% (-54.55% to -36.36%) 36.364% -> 10.000%
cm-online-stats/cm-online-stats.wasm execution l1-dcache-read-misses -23.32% (-33.33% to -4.15%) 30.316% -> 23.562%
cm-online-stats/cm-online-stats.wasm execution ll-icache-misses -16.34% (-24.50% to -14.40%) 11.634% -> 3.636%
cm-online-stats/cm-online-stats.wasm execution data-writes +17.28% (+17.28% to +17.28%) 0.002% -> 0.001%
cm-online-stats/cm-online-stats.wasm execution indirect-branch-misses -14.22% (-27.34% to -5.83%) 22.831% -> 10.526%
cm-online-stats/cm-online-stats.wasm execution instructions-retired +12.43% (+12.43% to +12.43%) 0.003% -> 0.001%
cm-online-stats/cm-online-stats.wasm execution conditional-branches +9.09% (+9.08% to +9.09%) 0.005% -> 0.002%
cm-online-stats/cm-online-stats.wasm execution data-reads +6.30% (+6.30% to +6.30%) 0.002% -> 0.000%

</details>

Commits

https://github.com/bytecodealliance/wasmtime/compare/67d70b4e192e88faa597008560811dc7e2b1414b...c2851ff669c588563f2362dfd5d5be7518028132

Reproduce locally

On x86-64 Linux with Valgrind installed:

git clone https://github.com/bytecodealliance/sightglass
cd sightglass
git checkout 2d453335318d05cf42b6f3263aa68f0021985f10
rustc engines/wasmtime/build.rs -o build-engine
mkdir old new
REVISION=67d70b4e192e88faa597008560811dc7e2b1414b ./build-engine old
REVISION=c2851ff669c588563f2362dfd5d5be7518028132 ./build-engine new
cargo run --release -- benchmark --measure callgrind \
  --engine old/libengine.so --engine new/libengine.so \
  --engine-flags-common="-Cparallel-compilation=n --target x86_64-unknown-linux-gnu -Ccranelift-has-sse3 -Ccranelift-has-ssse3 -Ccranelift-has-sse41 -Ccranelift-has-sse42 -Ccranelift-has-popcnt -Ccranelift-has-avx -Ccranelift-has-avx2 -Ccranelift-has-fma -Ccranelift-has-bmi1 -Ccranelift-has-bmi2 -Ccranelift-has-lzcnt -Ccranelift-has-cmpxchg16b" \
  -- benchmarks/cm-online-stats/cm-online-stats.wasm

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 22:07):

ba-are-we-fast-yet[bot] added the performance label to Issue #15192.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 22:07):

ba-are-we-fast-yet[bot] added the awfy label to Issue #15192.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2026 at 18:29):

fitzgen commented on issue #15192:

This regression will be fixed Very Soon by inlining borrow transfers to their owners into CLIF in adapter functions, which this commit that introduced the regression was in service of. I'll leave this open until that actually lands though.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2026 at 18:29):

fitzgen assigned fitzgen to issue #15192.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 10 2026 at 00:00):

fitzgen closed issue #15192:

are-we-fast-yet found 1 regression and 1 speedup in virtual cycles (callgrind) between Wasmtime 67d70b4e192e and c2851ff669c5.

A change counts when a Mann-Whitney U test finds it significant at the 0.01 level and it clears its phase's minimum relative change:

phase geomean individual
compilation 0.3% 1%
instantiation 2.5% 20%
execution 0.5% 2%

Regressions (1)

benchmark phase Δ virtual cycles virtual cycles noise Δ instructions retired instructions retired noise
cm-online-stats/cm-online-stats.wasm execution +12.41% (+12.40% to +12.42%) 0.015% -> 0.008% +12.43% 0.003% -> 0.001%

Speedups (1)

benchmark phase Δ virtual cycles virtual cycles noise Δ instructions retired instructions retired noise
tinygo/tinygo-regex.wasm execution -2.72% (-2.75% to -2.72%) 0.003% -> 0.029% -0.00% 0.001% -> 0.005%

A positive delta is a slowdown, a negative delta is a speedup.

instructions retired counts work done rather than how well it was predicted. A regression whose instructions didn't move is often Valgrind's branch predictors aliasing on a code layout change; see docs/regressions.md.

Each noise column is how far that event's own counts spread.

<details>
<summary>Other callgrind counters that changed for these benchmarks</summary>

benchmark phase counter Δ noise
cm-online-stats/cm-online-stats.wasm execution ll-dcache-read-misses -39.39% (-54.55% to -36.36%) 36.364% -> 10.000%
cm-online-stats/cm-online-stats.wasm execution l1-dcache-read-misses -23.32% (-33.33% to -4.15%) 30.316% -> 23.562%
cm-online-stats/cm-online-stats.wasm execution ll-icache-misses -16.34% (-24.50% to -14.40%) 11.634% -> 3.636%
cm-online-stats/cm-online-stats.wasm execution data-writes +17.28% (+17.28% to +17.28%) 0.002% -> 0.001%
cm-online-stats/cm-online-stats.wasm execution indirect-branch-misses -14.22% (-27.34% to -5.83%) 22.831% -> 10.526%
cm-online-stats/cm-online-stats.wasm execution instructions-retired +12.43% (+12.43% to +12.43%) 0.003% -> 0.001%
cm-online-stats/cm-online-stats.wasm execution conditional-branches +9.09% (+9.08% to +9.09%) 0.005% -> 0.002%
cm-online-stats/cm-online-stats.wasm execution data-reads +6.30% (+6.30% to +6.30%) 0.002% -> 0.000%

</details>

Commits

https://github.com/bytecodealliance/wasmtime/compare/67d70b4e192e88faa597008560811dc7e2b1414b...c2851ff669c588563f2362dfd5d5be7518028132

Reproduce locally

On x86-64 Linux with Valgrind installed:

git clone https://github.com/bytecodealliance/sightglass
cd sightglass
git checkout 2d453335318d05cf42b6f3263aa68f0021985f10
rustc engines/wasmtime/build.rs -o build-engine
mkdir old new
REVISION=67d70b4e192e88faa597008560811dc7e2b1414b ./build-engine old
REVISION=c2851ff669c588563f2362dfd5d5be7518028132 ./build-engine new
cargo run --release -- benchmark --measure callgrind \
  --engine old/libengine.so --engine new/libengine.so \
  --engine-flags-common="-Cparallel-compilation=n --target x86_64-unknown-linux-gnu -Ccranelift-has-sse3 -Ccranelift-has-ssse3 -Ccranelift-has-sse41 -Ccranelift-has-sse42 -Ccranelift-has-popcnt -Ccranelift-has-avx -Ccranelift-has-avx2 -Ccranelift-has-fma -Ccranelift-has-bmi1 -Ccranelift-has-bmi2 -Ccranelift-has-lzcnt -Ccranelift-has-cmpxchg16b" \
  -- benchmarks/cm-online-stats/cm-online-stats.wasm

Last updated: Nov 19 2026 at 20:05 UTC