Experimental Golang wrapper for WAVM.
These are some preliminary results, useful to compare against go-wasm-benchmark.
WAVM seems to be a good candidate for a Go wrapper, specially when considering this and its proposed extensions.
In the future I'm expecting more progress around Go based VMs. I will try to extend this small package as a learning process (cgo
based for now).
goos: darwin
goarch: amd64
BenchmarkWAVMSum-8 500 3143148 ns/op 728 B/op 35 allocs/op
BenchmarkWAVMSumReentrant-8 3000000 507 ns/op 144 B/op 6 allocs/op
PASS
ok _/Users/matias/dev/wasm/go-wavm 4.032s