Package vs
import "github.com/tetratelabs/wazero/internal/integration_test/vs"
- Overview
- Index
- 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
- type Runtime
- func NewWazeroCompilerRuntime() Runtime
- func NewWazeroInterpreterRuntime() Runtime
- type RuntimeConfig
Package files
bench.go
bench_allocation.go
bench_factorial.go
bench_hostcall.go
bench_memory.go
bench_shorthash.go
runtime.go
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 {
CallI32_I32(ctx context.Context, funcName string, param uint32) (uint32, error)
CallI32I32_V(ctx context.Context, funcName string, x, y uint32) error
CallI32_V(ctx context.Context, funcName string, param uint32) error
CallV_V(ctx context.Context, funcName string) error
CallI64_I64(ctx context.Context, funcName string, param uint64) (uint64, error)
WriteMemory(offset uint32, bytes []byte) error
Memory() []byte
Close(context.Context) error
}
type Runtime interface {
Name() string
Compile(context.Context, *RuntimeConfig) error
Instantiate(context.Context, *RuntimeConfig) (Module, error)
Close(context.Context) error
}
func NewWazeroCompilerRuntime() Runtime
func NewWazeroInterpreterRuntime() Runtime
type RuntimeConfig struct {
Name string
ModuleName string
ModuleWasm []byte
FuncNames []string
NeedsWASI bool
NeedsMemoryExport bool
LogFn func([]byte) error
EnvFReturnValue uint64
}