You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm evaluationg wasm + wasmtime for a query execution library, much of that involves calling iterators into rust to get data then executing dynamically generated logic via wasm.
The code here sums up an iterator by calling a rust function and doing the summing up in wasm
is there a better way to measure the wasmtime execution time
can this be made to run faster? If yes then how?
currently the run times seem to be
rust: 30ns
wasm: 21ms
python: 0.75s
The text was updated successfully, but these errors were encountered:
At least for wasmtime you're measuring what's the fastest way. The Rust number probably isn't representative because it's probably constant-folded by LLVM which means it's not actually doing anything at runtime. The Wasm number shows an overhead of 4.2ns per call which is roughly what's expected. I'm not familiar with benchmarking Python so I don't know whether that's representative.
Project here
I'm evaluationg wasm + wasmtime for a query execution library, much of that involves calling iterators into rust to get data then executing dynamically generated logic via wasm.
The code here sums up an iterator by calling a rust function and doing the summing up in wasm
currently the run times seem to be
The text was updated successfully, but these errors were encountered: