Versions in this module Expand all Collapse all v1 v1.1.0 Jun 6, 2023 Changes in this version + func RunBenchmarkAllocation(b *testing.B, runtime func() Runtime) + func RunBenchmarkFactorial(b *testing.B, runtime func() Runtime) + func RunBenchmarkHostCall(b *testing.B, runtime func() Runtime) + func RunBenchmarkMemory(b *testing.B, runtime func() Runtime) + func RunBenchmarkShorthash(b *testing.B, runtime func() Runtime) + func RunTestAllocation(t *testing.T, runtime func() Runtime) + func RunTestBenchmarkAllocation_Call_CompilerFastest(t *testing.T, vsRuntime Runtime) + func RunTestBenchmarkFactorial_Call_CompilerFastest(t *testing.T, vsRuntime Runtime) + func RunTestBenchmarkHostCall_CompilerFastest(t *testing.T, vsRuntime Runtime) + func RunTestBenchmarkMemory_CompilerFastest(t *testing.T, vsRuntime Runtime) + func RunTestFactorial(t *testing.T, runtime func() Runtime) + func RunTestHostCall(t *testing.T, runtime func() Runtime) + func RunTestMemory(t *testing.T, runtime func() Runtime) + func RunTestShorthash(t *testing.T, runtime func() Runtime) + type Module interface + CallI32I32_V func(ctx context.Context, funcName string, x, y uint32) error + CallI32_I32 func(ctx context.Context, funcName string, param uint32) (uint32, error) + CallI32_V func(ctx context.Context, funcName string, param uint32) error + CallI64_I64 func(ctx context.Context, funcName string, param uint64) (uint64, error) + CallV_V func(ctx context.Context, funcName string) error + Close func(context.Context) error + Memory func() []byte + WriteMemory func(offset uint32, bytes []byte) error + type Runtime interface + Close func(context.Context) error + Compile func(context.Context, *RuntimeConfig) error + Instantiate func(context.Context, *RuntimeConfig) (Module, error) + Name func() string + func NewWazeroCompilerRuntime() Runtime + func NewWazeroInterpreterRuntime() Runtime + type RuntimeConfig struct + EnvFReturnValue uint64 + FuncNames []string + LogFn func([]byte) error + ModuleName string + ModuleWasm []byte + Name string + NeedsMemoryExport bool + NeedsWASI bool