Stream: git-wasmtime

Topic: wasmtime / issue #15212 Performance regression in 0eb6d77...


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

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

are-we-fast-yet found 1 regression and 2 speedups in virtual cycles (callgrind) between Wasmtime 0eb6d77091c9 and 3e0ee3fbfdd8.

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 compilation +5.02% (+4.89% to +5.10%) 0.083% -> 0.167% +6.58% 0.104% -> 0.116%

Speedups (2)

benchmark phase Δ virtual cycles virtual cycles noise Δ instructions retired instructions retired noise
Geomean execution -1.82% (-1.88% to -1.77%) n/a n/a n/a
cm-online-stats/cm-online-stats.wasm execution -41.43% (-41.44% to -41.42%) 0.013% -> 0.016% -41.45% 0.003% -> 0.002%

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 compilation data-reads +6.63% (+6.56% to +6.71%) 0.085% -> 0.100%
cm-online-stats/cm-online-stats.wasm compilation instructions-retired +6.59% (+6.49% to +6.69%) 0.104% -> 0.116%
cm-online-stats/cm-online-stats.wasm compilation indirect-branches +6.57% (+6.57% to +6.58%) 0.004% -> 0.009%
cm-online-stats/cm-online-stats.wasm compilation conditional-branches +6.18% (+6.02% to +6.34%) 0.169% -> 0.163%
cm-online-stats/cm-online-stats.wasm compilation indirect-branch-misses +5.89% (+5.88% to +5.90%) 0.016% -> 0.009%
cm-online-stats/cm-online-stats.wasm compilation data-writes +5.62% (+5.53% to +5.70%) 0.084% -> 0.125%
cm-online-stats/cm-online-stats.wasm compilation conditional-branch-misses +4.81% (+4.65% to +4.99%) 0.209% -> 0.230%
cm-online-stats/cm-online-stats.wasm compilation l1-dcache-read-misses +3.55% (+2.04% to +4.13%) 1.319% -> 1.727%
cm-online-stats/cm-online-stats.wasm compilation l1-dcache-write-misses +3.29% (+2.48% to +4.13%) 0.712% -> 1.080%
cm-online-stats/cm-online-stats.wasm compilation ll-dcache-write-misses +1.61% (+1.11% to +2.29%) 0.562% -> 1.032%

</details>

Commits

https://github.com/bytecodealliance/wasmtime/compare/0eb6d77091c930aa603b637bba4e1dbe5db2ddf8...3e0ee3fbfdd88d06c3f8c169168fe0d3b0c0096d

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=0eb6d77091c930aa603b637bba4e1dbe5db2ddf8 ./build-engine old
REVISION=3e0ee3fbfdd88d06c3f8c169168fe0d3b0c0096d ./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 10 2026 at 02:25):

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

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

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

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

alexcrichton commented on issue #15212:

@fitzgen the regression here seems likely "there's more CLIF to compile", and given the purpose of it, you ok closing this?

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

fitzgen closed issue #15212:

are-we-fast-yet found 1 regression and 2 speedups in virtual cycles (callgrind) between Wasmtime 0eb6d77091c9 and 3e0ee3fbfdd8.

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 compilation +5.02% (+4.89% to +5.10%) 0.083% -> 0.167% +6.58% 0.104% -> 0.116%

Speedups (2)

benchmark phase Δ virtual cycles virtual cycles noise Δ instructions retired instructions retired noise
Geomean execution -1.82% (-1.88% to -1.77%) n/a n/a n/a
cm-online-stats/cm-online-stats.wasm execution -41.43% (-41.44% to -41.42%) 0.013% -> 0.016% -41.45% 0.003% -> 0.002%

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 compilation data-reads +6.63% (+6.56% to +6.71%) 0.085% -> 0.100%
cm-online-stats/cm-online-stats.wasm compilation instructions-retired +6.59% (+6.49% to +6.69%) 0.104% -> 0.116%
cm-online-stats/cm-online-stats.wasm compilation indirect-branches +6.57% (+6.57% to +6.58%) 0.004% -> 0.009%
cm-online-stats/cm-online-stats.wasm compilation conditional-branches +6.18% (+6.02% to +6.34%) 0.169% -> 0.163%
cm-online-stats/cm-online-stats.wasm compilation indirect-branch-misses +5.89% (+5.88% to +5.90%) 0.016% -> 0.009%
cm-online-stats/cm-online-stats.wasm compilation data-writes +5.62% (+5.53% to +5.70%) 0.084% -> 0.125%
cm-online-stats/cm-online-stats.wasm compilation conditional-branch-misses +4.81% (+4.65% to +4.99%) 0.209% -> 0.230%
cm-online-stats/cm-online-stats.wasm compilation l1-dcache-read-misses +3.55% (+2.04% to +4.13%) 1.319% -> 1.727%
cm-online-stats/cm-online-stats.wasm compilation l1-dcache-write-misses +3.29% (+2.48% to +4.13%) 0.712% -> 1.080%
cm-online-stats/cm-online-stats.wasm compilation ll-dcache-write-misses +1.61% (+1.11% to +2.29%) 0.562% -> 1.032%

</details>

Commits

https://github.com/bytecodealliance/wasmtime/compare/0eb6d77091c930aa603b637bba4e1dbe5db2ddf8...3e0ee3fbfdd88d06c3f8c169168fe0d3b0c0096d

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=0eb6d77091c930aa603b637bba4e1dbe5db2ddf8 ./build-engine old
REVISION=3e0ee3fbfdd88d06c3f8c169168fe0d3b0c0096d ./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 10 2026 at 16:19):

fitzgen commented on issue #15212:

@fitzgen the regression here seems likely "there's more CLIF to compile", and given the purpose of it, you ok closing this?

Exactly.


Last updated: Nov 19 2026 at 20:05 UTC