bytecodealliance / bytecodealliance/wasm-tools

`wasmparser`: 15-30% performance regressions from v228 -> v229

Open
#2,180 22 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.8k
Forks
351
Avg merge
1d 6h
Merged PRs (30d)
46

Description

I just finished updating Wasmi to the new `wasm-tools` v229 coming from v228.

- Roughly 15% performance regressions across the board.
- Up to 30% performance regressions when Wasmi translation was lazy and thus `wasmparser` parsing and validation made up a larger chunk of the work. So that's probably the real regression in `wasmparser`.

Wasmi PR: https://github.com/wasmi-labs/wasmi/pull/1501

Benchmarking before and after revealed the following performance regressions:
![Image](https://github.com/user-attachments/assets/a441592f-6a15-4acc-abb6-ecb03236788d)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.