github.com/bananabytelabs/wazero@v0.0.0-20240105073314-54b22a776da8/internal/integration_test/vs/testdata/hostcall.wat (about) 1 (module 2 ;; env.f must be a host function for benchmarks on the cost of host calls which cross the Wasm<>Go boundary. 3 (func $host_func (import "env" "f") (param i64) (result i64)) 4 ;; call_host_func calls "env.f" and returns the resut as-is. 5 (func (export "call_host_func") (param i64) (result i64) 6 local.get 0 7 call $host_func 8 ) 9 )