Skip to content

Commit

Permalink
Remove naivevm. (#80)
Browse files Browse the repository at this point in the history
resolves #79

Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
  • Loading branch information
mathetake committed Dec 22, 2021
1 parent ccdde46 commit 2d72d04
Show file tree
Hide file tree
Showing 14 changed files with 4 additions and 2,036 deletions.
6 changes: 0 additions & 6 deletions bench/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,10 @@ import (

"github.com/tetratelabs/wazero/wasi"
"github.com/tetratelabs/wazero/wasm"
"github.com/tetratelabs/wazero/wasm/naivevm"
"github.com/tetratelabs/wazero/wasm/wazeroir"
)

func BenchmarkEngines(b *testing.B) {
b.Run("naivevm", func(b *testing.B) {
store := newStore(naivevm.NewEngine())
setUpStore(store)
runAllBenches(b, store)
})
b.Run("wazeroir", func(b *testing.B) {
store := newStore(wazeroir.NewEngine())
setUpStore(store)
Expand Down
4 changes: 2 additions & 2 deletions examples/file_system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/tetratelabs/wazero/wasi"
"github.com/tetratelabs/wazero/wasm"
"github.com/tetratelabs/wazero/wasm/naivevm"
"github.com/tetratelabs/wazero/wasm/wazeroir"
)

func writeFile(fs wasi.FS, path string, data []byte) error {
Expand Down Expand Up @@ -54,7 +54,7 @@ func Test_file_system(t *testing.T) {

wasiEnv := wasi.NewEnvironment(wasi.Preopen(".", memFS))

store := wasm.NewStore(naivevm.NewEngine())
store := wasm.NewStore(wazeroir.NewEngine())

err = wasiEnv.Register(store)
require.NoError(t, err)
Expand Down
Loading

0 comments on commit 2d72d04

Please sign in to comment.