adamrk opened PR #14281 from adamrk:abk/random-access-builtin-benchmark to bytecodealliance:main:
Use a basic multiplicative congruence generator
(https://en.wikipedia.org/wiki/Linear_congruential_generator) to generate a sequence of random buffer accesses within Wasm for the compile time builtins benchmark. This amoritizes the overhead of calling into Wasm while still generating random accesses.My results are:
increment-random-byte-in-buf/concurrency_support=true/compile-time-builtins-host-buf-api time: [9.6652 ns 10.259 ns 10.891 ns]
adamrk requested alexcrichton for a review on PR #14281.
adamrk requested wasmtime-default-reviewers for a review on PR #14281.
:thumbs_up: fitzgen submitted PR review:
LGTM, thanks!
fitzgen added PR #14281 bench: Generate random acceses in Wasm for builtin benchmark to the merge queue.
:check: fitzgen merged PR #14281.
fitzgen removed PR #14281 bench: Generate random acceses in Wasm for builtin benchmark from the merge queue.
Last updated: Sep 20 2026 at 18:08 UTC