Stream: wasmtime

Topic: ✔ Host call performance


view this post on Zulip Tarek Sander (Mar 06 2024 at 08:36):

How good is the performance of calling an imported function from the host compared to calling a function inside the WASM module? Is the impact big?

view this post on Zulip Alex Crichton (Mar 06 2024 at 15:23):

The impact should be very small, on the order of single-digit nanoseconds.

view this post on Zulip Tarek Sander (Mar 06 2024 at 16:29):

I mean in relation to an in-module function call. Is it more expensive to call an import than another WASM function?

view this post on Zulip Alex Crichton (Mar 06 2024 at 16:31):

Yes, on the order of single-digit nanoseconds, it's slightly more expensive to call the host

view this post on Zulip Notification Bot (Mar 06 2024 at 16:41):

Tarek Sander has marked this topic as resolved.


Last updated: Nov 22 2024 at 16:03 UTC