wa-lang.org/wazero@v1.0.2/internal/integration_test/vs/compiler/compiler_test.go (about) 1 package compiler 2 3 import ( 4 "testing" 5 6 "wa-lang.org/wazero/internal/integration_test/vs" 7 ) 8 9 var runtime = vs.NewWazeroCompilerRuntime 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 TestFactorial(t *testing.T) { 20 vs.RunTestFactorial(t, runtime) 21 } 22 23 func BenchmarkFactorial(b *testing.B) { 24 vs.RunBenchmarkFactorial(b, runtime) 25 } 26 27 func TestHostCall(t *testing.T) { 28 vs.RunTestHostCall(t, runtime) 29 } 30 31 func BenchmarkHostCall(b *testing.B) { 32 vs.RunBenchmarkHostCall(b, runtime) 33 } 34 35 func TestMemory(t *testing.T) { 36 vs.RunTestMemory(t, runtime) 37 } 38 39 func BenchmarkMemory(b *testing.B) { 40 vs.RunBenchmarkMemory(b, runtime) 41 }