Weird question but how far does fuel determinism go? If use core_affinity and limit the number of instructions based on fuel, Would that be close to cpu instructions count?
Fuel should deterministically limit wasm execution beyond a certain point. You'll still have nondeterminism from host APIs or host interactions (e.g. memory.grow
failing or not). Fuel is not an accurate measure of CPU instructions and for that you'll want to use CPU perf counters
I see thank you! No api in wasmtime to facilitate this I'm guessing :thinking:
Not directly, but see https://docs.rs/wasmtime/19.0.1/wasmtime/struct.Store.html#method.call_hook
Amazing thank you
Last updated: Nov 22 2024 at 16:03 UTC