Skip to content

Commit

Permalink
soroban-rpc: GetPreflight benchmark tweaks (stellar#895)
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio authored Aug 23, 2023
1 parent ff5ffa1 commit 2bb5905
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/soroban-rpc/internal/preflight/preflight_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,8 @@ func benchmark(b *testing.B, config benchmarkConfig) {
disableCache: config.useDB.disableCache,
}
}

b.ResetTimer()
b.StopTimer()
for i := 0; i < b.N; i++ {
params := getPreflightParameters(b, dbConfig)
Expand Down

0 comments on commit 2bb5905

Please sign in to comment.