feat(benchmarking): adding gas burner test#3115
feat(benchmarking): adding gas burner test#3115chatton wants to merge 1 commit intocian/erc20-benchmarkfrom
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Claude finished @chatton's task in 1m 46s —— View job Code Review
Overall the PR is well-structured and follows the existing benchmark patterns closely. The warmup approach (waiting for 50 sent txs before recording Issues1. Missing transaction failure assertion (
// ERC20 (spamoor_erc20_test.go:103-104)
s.Require().Greater(sent, float64(0), "at least one transaction should have been sent")
s.Require().Zero(failed, "no transactions should have failed")The gas burner uses failed, _ := api.GetMetrics()["spamoor_transactions_failed_total"]
if f := sumCounter(failed); f > 0 {
t.Logf("warning: %.0f transactions failed", f)
}…would make failures visible. Fix this → 2. When if secsPerGigagas > 0 {
w.addEntry(entry{...})
}3. During the 5-minute wait for warmup and full send, there's no indication of how far along the test is. t.Logf("waiting for metric %s: current=%.0f target=%.0f", name, v, target)Nits
Positives
|
|
The latest Buf updates on your PR. Results from workflow CI / buf-check (pull_request).
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## cian/erc20-benchmark #3115 +/- ##
========================================================
+ Coverage 60.90% 60.97% +0.07%
========================================================
Files 113 113
Lines 11617 11617
========================================================
+ Hits 7075 7084 +9
+ Misses 3743 3735 -8
+ Partials 799 798 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Overview
Closes #3123
Adds
TestGasBurnerto measure gas throughput using a deterministic gasburner workload. Reports seconds_per_gigagas as the primary metric.