github.com/tetratelabs/wazero@v1.7.3-0.20240513003603-48f702e154b5/internal/integration_test/vs/interpreter/interpreter_test.go (about) 1 package interpreter 2 3 import ( 4 "testing" 5 6 "github.com/tetratelabs/wazero/internal/integration_test/vs" 7 ) 8 9 var runtime = vs.NewWazeroInterpreterRuntime 10 11 func TestAllocation(t *testing.T) { 12 vs.RunTestAllocation(t, runtime) 13 } 14 15 func BenchmarkAllocation(b *testing.B) { 16 vs.RunBenchmarkAllocation(b, runtime) 17 } 18 19 func TestBenchmarkAllocation_Call_CompilerFastest(t *testing.T) { 20 vs.RunTestBenchmarkAllocation_Call_CompilerFastest(t, runtime()) 21 } 22 23 func TestFactorial(t *testing.T) { 24 vs.RunTestFactorial(t, runtime) 25 } 26 27 func BenchmarkFactorial(b *testing.B) { 28 vs.RunBenchmarkFactorial(b, runtime) 29 } 30 31 func TestBenchmarkFactorial_Call_CompilerFastest(t *testing.T) { 32 vs.RunTestBenchmarkFactorial_Call_CompilerFastest(t, runtime()) 33 } 34 35 func TestHostCall(t *testing.T) { 36 vs.RunTestHostCall(t, runtime) 37 } 38 39 func BenchmarkHostCall(b *testing.B) { 40 vs.RunBenchmarkHostCall(b, runtime) 41 } 42 43 func TestBenchmarkHostCall_CompilerFastest(t *testing.T) { 44 vs.RunTestBenchmarkHostCall_CompilerFastest(t, runtime()) 45 } 46 47 func TestMemory(t *testing.T) { 48 vs.RunTestMemory(t, runtime) 49 } 50 51 func BenchmarkMemory(b *testing.B) { 52 vs.RunBenchmarkMemory(b, runtime) 53 } 54 55 func TestBenchmarkMemory_CompilerFastest(t *testing.T) { 56 vs.RunTestBenchmarkMemory_CompilerFastest(t, runtime()) 57 }