Skip to content

Commit

Permalink
fixing check for pending txs and adding informational print for gas m…
Browse files Browse the repository at this point in the history
…etrics.

Signed-off-by: Nikolay Nedkov <[email protected]>
  • Loading branch information
Psykepro committed Aug 22, 2023
1 parent 75cc2c8 commit 57a8269
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/benchmarks/sequencer/common/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ func PrintSummary(
fmt.Printf("- Executor Time Percentage from Total: %.2f%%\n\n", (processingTimeExecutor/processingTimeSequencer)*oneHundred)
fmt.Println("Metrics:")
fmt.Printf("- Transactions per Second: %.2f\n", float64(totalTxs)/processingTimeSequencer)
fmt.Printf("(only for predefinded transactions - excluding the random transactions)")
fmt.Printf("- Gas per Second: %.2f\n", float64(totalGas)/processingTimeSequencer)
fmt.Printf("- Total Gas Used: %d\n", totalGas)
fmt.Printf("- Average Gas Used per Transaction: %d\n\n", totalGas/totalTxs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func SendAndWait(
}

fmt.Printf("amount of pending txs: %d\n\n", pendingTxsCount)
done := len(pendingTxs) == 0
done := pendingTxsCount <= 0
return done, nil
})
if err != nil {
Expand Down

0 comments on commit 57a8269

Please sign in to comment.