diff --git a/benchmarking/config.go b/benchmarking/config.go index 792d932e..bca0d0bc 100644 --- a/benchmarking/config.go +++ b/benchmarking/config.go @@ -16,7 +16,7 @@ type benchmarkingConfig struct { func initBenchmarkingConfig() benchmarkingConfig { cfg := benchmarkingConfig{} - cfg.WasmRuntime = "../build/runtime.wasm" + cfg.WasmRuntime = "../../../build/runtime.wasm" flag.IntVar(&cfg.Steps, "steps", 50, "Select how many samples we should take across the variable components.") flag.IntVar(&cfg.Repeat, "repeat", 20, "Select how many repetitions of this benchmark should run from within the wasm.") flag.IntVar(&cfg.HeapPages, "heap-pages", 4096, "Cache heap allocation pages.") diff --git a/runtime/templates/poa/benchmark_session_call_purge_keys_test.go b/runtime/templates/poa/benchmark_session_call_purge_keys_test.go index eb926a57..192e9a04 100644 --- a/runtime/templates/poa/benchmark_session_call_purge_keys_test.go +++ b/runtime/templates/poa/benchmark_session_call_purge_keys_test.go @@ -15,7 +15,7 @@ import ( ) func BenchmarkSessionPurgeKeys(b *testing.B) { - benchmarking.RunDispatchCall(b, "../frame/session/call_purge_keys_weight.go", func(i *benchmarking.Instance) { + benchmarking.RunDispatchCall(b, "../../../frame/session/call_purge_keys_weight.go", func(i *benchmarking.Instance) { accountInfo := gossamertypes.AccountInfo{ Producers: 1, Consumers: 1, diff --git a/runtime/templates/poa/benchmark_session_call_set_keys_test.go b/runtime/templates/poa/benchmark_session_call_set_keys_test.go index 1dd3cff3..0a7aa6ae 100644 --- a/runtime/templates/poa/benchmark_session_call_set_keys_test.go +++ b/runtime/templates/poa/benchmark_session_call_set_keys_test.go @@ -15,7 +15,7 @@ import ( ) func BenchmarkSessionSetKeys(b *testing.B) { - benchmarking.RunDispatchCall(b, "../frame/session/call_set_keys_weight.go", func(i *benchmarking.Instance) { + benchmarking.RunDispatchCall(b, "../../../frame/session/call_set_keys_weight.go", func(i *benchmarking.Instance) { accountInfo := gossamertypes.AccountInfo{ Producers: 1, Data: gossamertypes.AccountData{ diff --git a/runtime/templates/poa/benchmark_sudo_call_set_key_test.go b/runtime/templates/poa/benchmark_sudo_call_set_key_test.go index 5f5073ca..abd02b98 100644 --- a/runtime/templates/poa/benchmark_sudo_call_set_key_test.go +++ b/runtime/templates/poa/benchmark_sudo_call_set_key_test.go @@ -10,7 +10,7 @@ import ( ) func BenchmarkSudoSetKey(b *testing.B) { - benchmarking.RunDispatchCall(b, "../frame/sudo/call_set_key_weight.go", func(i *benchmarking.Instance) { + benchmarking.RunDispatchCall(b, "../../../frame/sudo/call_set_key_weight.go", func(i *benchmarking.Instance) { err := (*i.Storage()).Put(append(testhelpers.KeySudoHash, testhelpers.KeyKeyHash...), aliceAddress.AsID.ToBytes()) assert.NoError(b, err) diff --git a/runtime/templates/poa/benchmark_sudo_call_sudo_as_test.go b/runtime/templates/poa/benchmark_sudo_call_sudo_as_test.go index e19bf25c..9e48b5a5 100644 --- a/runtime/templates/poa/benchmark_sudo_call_sudo_as_test.go +++ b/runtime/templates/poa/benchmark_sudo_call_sudo_as_test.go @@ -11,7 +11,7 @@ import ( ) func BenchmarkSudoSudoAs(b *testing.B) { - benchmarking.RunDispatchCall(b, "../frame/sudo/call_sudo_as_weight.go", func(i *benchmarking.Instance) { + benchmarking.RunDispatchCall(b, "../../../frame/sudo/call_sudo_as_weight.go", func(i *benchmarking.Instance) { err := (*i.Storage()).Put(append(testhelpers.KeySudoHash, testhelpers.KeyKeyHash...), aliceAddress.AsID.ToBytes()) assert.NoError(b, err) diff --git a/runtime/templates/poa/benchmark_sudo_call_sudo_test.go b/runtime/templates/poa/benchmark_sudo_call_sudo_test.go index 12c55166..19156237 100644 --- a/runtime/templates/poa/benchmark_sudo_call_sudo_test.go +++ b/runtime/templates/poa/benchmark_sudo_call_sudo_test.go @@ -11,7 +11,7 @@ import ( ) func BenchmarkSudoSudo(b *testing.B) { - benchmarking.RunDispatchCall(b, "../frame/sudo/call_sudo_weight.go", func(i *benchmarking.Instance) { + benchmarking.RunDispatchCall(b, "../../../frame/sudo/call_sudo_weight.go", func(i *benchmarking.Instance) { err := (*i.Storage()).Put(append(testhelpers.KeySudoHash, testhelpers.KeyKeyHash...), aliceAddress.AsID.ToBytes()) assert.NoError(b, err) diff --git a/runtime/templates/poa/benchmark_sudo_remove_key_test.go b/runtime/templates/poa/benchmark_sudo_remove_key_test.go index b865460b..1713bcf4 100644 --- a/runtime/templates/poa/benchmark_sudo_remove_key_test.go +++ b/runtime/templates/poa/benchmark_sudo_remove_key_test.go @@ -10,7 +10,7 @@ import ( ) func BenchmarkSudoRemoveKey(b *testing.B) { - benchmarking.RunDispatchCall(b, "../frame/sudo/call_remove_key_weight.go", func(i *benchmarking.Instance) { + benchmarking.RunDispatchCall(b, "../../../frame/sudo/call_remove_key_weight.go", func(i *benchmarking.Instance) { err := (*i.Storage()).Put(append(testhelpers.KeySudoHash, testhelpers.KeyKeyHash...), aliceAddress.AsID.ToBytes()) assert.NoError(b, err)