Skip to content

Commit

Permalink
disable wasm bench tests which need c linker stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
colindickson committed Oct 16, 2024
1 parent 8091680 commit fb481d0
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions wasm/bench/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ import (
"github.com/streamingfast/logging"
"github.com/streamingfast/substreams/metrics"
"github.com/streamingfast/substreams/wasm"
_ "github.com/streamingfast/substreams/wasm/wasi"
_ "github.com/streamingfast/substreams/wasm/wasmtime"
_ "github.com/streamingfast/substreams/wasm/wazero"

//_ "github.com/streamingfast/substreams/wasm/wasi"
//_ "github.com/streamingfast/substreams/wasm/wasmtime"
//_ "github.com/streamingfast/substreams/wasm/wazero"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
)
Expand Down Expand Up @@ -43,14 +44,14 @@ func BenchmarkExecution(b *testing.B) {
// Decode proto only decode and returns the block.number as the output (to ensure the block is not elided at compile time)
//{"decode_proto_only", "map_decode_proto_only", args(blockInputFile(b, "testdata/ethereum_mainnet_block_16021772.binpb")), []int{0}},

{"map_block", "map_block", blockInputFile(b, "testdata/ethereum_mainnet_block_16021772.binpb"), []int{53}},
//{"map_block", "map_block", blockInputFile(b, "testdata/ethereum_mainnet_block_16021772.binpb"), []int{53}},
} {
var reuseInstance = true
//var reuseInstance = true
//var freshInstanceEachRun = false

//wasmCode := readCode(b, "substreams_wasm/substreams.wasm")
//wasmCodep1 := readCode(b, "substreams_ts/index.wasm")
wasmTinyGo := readCode(b, "substreams_tiny_go/main.wasm")
//wasmTinyGo := readCode(b, "substreams_tiny_go/main.wasm")
//wasmCodep1 := readCode(b, "substreams_wasi/wasi_hello_world/hello.wasm")

stats := metrics.NewReqStats(&metrics.Config{}, zap.NewNop())
Expand All @@ -61,7 +62,7 @@ func BenchmarkExecution(b *testing.B) {
//{"wazero", wasmCode, reuseInstance},
//{"wazero", wasmCode, freshInstanceEachRun},

{name: "wasi", wasmCodeType: "go/wasi", code: wasmTinyGo, shouldReUseInstance: reuseInstance},
//{name: "wasi", wasmCodeType: "go/wasi", code: wasmTinyGo, shouldReUseInstance: reuseInstance},
//{"wasip1", wasmCodep1, freshInstanceEachRun},
} {
instanceKey := "reused"
Expand Down

0 comments on commit fb481d0

Please sign in to comment.