github.com/bananabytelabs/wazero@v0.0.0-20240105073314-54b22a776da8/internal/integration_test/vs/compiler/compiler_test.go (about) 1 package compiler 2 3 import ( 4 "testing" 5 6 "github.com/bananabytelabs/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 } 42 43 func TestShorthash(t *testing.T) { 44 vs.RunTestShorthash(t, runtime) 45 } 46 47 func BenchmarkShorthash(b *testing.B) { 48 vs.RunBenchmarkShorthash(b, runtime) 49 }