ba-are-we-fast-yet[bot] opened issue #15342:
are-we-fast-yet found 5 regressions in virtual cycles (callgrind) between Wasmtime
b20de21ba40aandbe64d1bde395.The range is the single commit
be64d1bde395GC: implementUnrootedreferences. (#15191), so it is blamed without bisecting. See the bisect.
- Baseline: run 00135 (metadata), Wasmtime
b20de21ba40a- This run: run 00136 (metadata), Wasmtime
be64d1bde395A change counts when a Mann-Whitney U test finds it significant at the
0.01level 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 (5)
benchmark phase Δ virtual cycles virtual cycles noise Δ instructions retired instructions retired noise Geomeanexecution +0.82% (+0.75% to +0.89%) n/a n/a n/a rust-wasmprinter/rust-wasmprinter.wasmexecution +5.30% (+5.28% to +5.49%) 0.186% -> 0.020% +4.58% 0.004% -> 0.004% hoot-earley-boyer/hoot-earley-boyer.wasmexecution +4.01% (+3.95% to +4.04%) 0.086% -> 0.039% +4.10% 0.001% -> 0.001% dotnet-raytracer/dotnet-raytracer.wasmexecution +2.89% (+2.88% to +2.91%) 0.016% -> 0.025% +1.56% 0.003% -> 0.004% dart-deltablue/dart-deltablue.wasmexecution +2.73% (+2.72% to +2.74%) 0.017% -> 0.017% +2.78% 0.001% -> 0.001% A positive delta is a slowdown, a negative delta is a speedup.
instructions retiredcounts 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; seedocs/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 Geomeanexecution indirect-branches+14.40% (+13.57% to +15.24%) n/a Geomeanexecution indirect-branch-misses+4.80% (+3.67% to +5.95%) n/a Geomeanexecution l1-icache-misses-2.38% (-3.99% to -0.74%) n/a Geomeanexecution conditional-branch-misses+2.26% (+1.80% to +2.71%) n/a Geomeanexecution data-writes+1.47% (+1.42% to +1.53%) n/a Geomeanexecution ll-icache-misses+1.38% (+0.60% to +2.16%) n/a Geomeanexecution data-reads+1.08% (+1.05% to +1.11%) n/a Geomeanexecution instructions-retired+0.86% (+0.84% to +0.87%) n/a Geomeanexecution conditional-branches+0.76% (+0.62% to +0.89%) n/a dotnet-raytracer/dotnet-raytracer.wasmexecution indirect-branch-misses+64.04% (+64.02% to +64.07%) 0.026% -> 0.017% hoot-earley-boyer/hoot-earley-boyer.wasmexecution indirect-branches+45.78% (+45.78% to +45.78%) 0.001% -> 0.000% dart-deltablue/dart-deltablue.wasmexecution l1-icache-misses-28.54% (-30.37% to -27.24%) 1.952% -> 3.148% rust-wasmprinter/rust-wasmprinter.wasmexecution conditional-branch-misses+36.91% (+36.87% to +36.95%) 0.034% -> 0.033% dotnet-raytracer/dotnet-raytracer.wasmexecution conditional-branch-misses+33.17% (+33.16% to +33.22%) 0.018% -> 0.042% dart-deltablue/dart-deltablue.wasmexecution indirect-branches+32.27% (+32.27% to +32.27%) 0.001% -> 0.001% rust-wasmprinter/rust-wasmprinter.wasmexecution indirect-branches+26.89% (+26.89% to +26.89%) 0.002% -> 0.002% hoot-earley-boyer/hoot-earley-boyer.wasmexecution conditional-branch-misses+17.08% (+17.07% to +17.10%) 0.018% -> 0.013% hoot-earley-boyer/hoot-earley-boyer.wasmexecution data-writes+8.24% (+8.24% to +8.24%) 0.001% -> 0.001% dart-deltablue/dart-deltablue.wasmexecution data-writes+7.31% (+7.30% to +7.31%) 0.002% -> 0.002% dotnet-raytracer/dotnet-raytracer.wasmexecution indirect-branches+7.23% (+7.23% to +7.23%) 0.002% -> 0.001% hoot-earley-boyer/hoot-earley-boyer.wasmexecution conditional-branches+6.70% (+6.70% to +6.70%) 0.002% -> 0.002% rust-wasmprinter/rust-wasmprinter.wasmexecution data-reads+5.74% (+5.73% to +5.74%) 0.004% -> 0.003% rust-wasmprinter/rust-wasmprinter.wasmexecution data-writes+4.82% (+4.82% to +4.82%) 0.003% -> 0.002% rust-wasmprinter/rust-wasmprinter.wasmexecution instructions-retired+4.58% (+4.58% to +4.59%) 0.004% -> 0.004% hoot-earley-boyer/hoot-earley-boyer.wasmexecution data-reads+4.23% (+4.23% to +4.24%) 0.001% -> 0.001% dotnet-raytracer/dotnet-raytracer.wasmexecution l1-icache-misses-3.96% (-4.70% to -0.53%) 4.179% -> 1.510% hoot-earley-boyer/hoot-earley-boyer.wasmexecution instructions-retired+4.10% (+4.09% to +4.10%) 0.001% -> 0.001% rust-wasmprinter/rust-wasmprinter.wasmexecution l1-icache-misses+3.55% (+0.62% to +4.24%) 0.831% -> 2.956% rust-wasmprinter/rust-wasmprinter.wasmexecution conditional-branches+3.34% (+3.34% to +3.35%) 0.004% -> 0.008% dart-deltablue/dart-deltablue.wasmexecution data-reads+3.27% (+3.27% to +3.27%) 0.001% -> 0.001% dart-deltablue/dart-deltablue.wasmexecution conditional-branch-misses+3.23% (+3.21% to +3.25%) 0.020% -> 0.037% dart-deltablue/dart-deltablue.wasmexecution instructions-retired+2.78% (+2.78% to +2.79%) 0.001% -> 0.001% dart-deltablue/dart-deltablue.wasmexecution conditional-branches+2.67% (+2.67% to +2.67%) 0.002% -> 0.002% dotnet-raytracer/dotnet-raytracer.wasmexecution data-writes+2.10% (+2.10% to +2.11%) 0.002% -> 0.002% </details>
Commits
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=b20de21ba40a67233f68466924b715a42bf557c8 ./build-engine old REVISION=be64d1bde3953ee4404df9f2d9dfd33d2de3fc1a ./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/dart-deltablue/dart-deltablue.wasm benchmarks/dotnet-raytracer/dotnet-raytracer.wasm benchmarks/hoot-earley-boyer/hoot-earley-boyer.wasm benchmarks/rust-wasmprinter/rust-wasmprinter.wasm
ba-are-we-fast-yet[bot] added the performance label to Issue #15342.
ba-are-we-fast-yet[bot] added the awfy label to Issue #15342.
fitzgen commented on issue #15342:
cc @cfallin
The delta instructions retired looks a little concerning. Possible there isn't much we can do and this is just a consequence of host code that uses
Valbeing a bit more expensive, but seems worth looking into whether there are any cheap mitigations.
cfallin commented on issue #15342:
Yep, I'll take a look...
Last updated: Nov 19 2026 at 20:05 UTC