Skip to content

Commit

Permalink
fix: use correct path in benchmark tests
Browse files Browse the repository at this point in the history
  • Loading branch information
radkomih committed May 29, 2024
1 parent 274cd02 commit 78e441d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion benchmarking/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion runtime/templates/poa/benchmark_sudo_call_set_key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion runtime/templates/poa/benchmark_sudo_call_sudo_as_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion runtime/templates/poa/benchmark_sudo_call_sudo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion runtime/templates/poa/benchmark_sudo_remove_key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 78e441d

Please sign in to comment.