This is a microbenchmark to measure call overhead between WebAssembly instances. Calls are done in batches of 10000. Results are volatile between runs and only order-of-magnitude differences are trustworthy.

Layout is borrowed from wasm-bindgen benchmark

(run all)

Call source import/export indirect call JS thunk
JS
Same instance
Cross-instance different memory
Cross-instance same memory
Cross-instance no memory