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: Dec 23 2024 at 14:03 UTC