Add tps calculation based on instant blocks#2813
Conversation
|
The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).
|
|
The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2813 +/- ##
==========================================
- Coverage 56.77% 56.76% -0.02%
==========================================
Files 2070 2070
Lines 168274 168281 +7
==========================================
- Hits 95542 95526 -16
- Misses 64247 64265 +18
- Partials 8485 8490 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
| if blockCount <= 0 || avgBlockProcessMs <= 0 { | ||
| return 0.0 | ||
| } | ||
| avgTxsPerBlock := float64(txCount) / float64(blockCount) |
Check notice
Code scanning / CodeQL
Floating point arithmetic Note test
| return 0.0 | ||
| } | ||
| avgTxsPerBlock := float64(txCount) / float64(blockCount) | ||
| return avgTxsPerBlock * 1000 / float64(avgBlockProcessMs) |
Check notice
Code scanning / CodeQL
Floating point arithmetic Note test
| return 0.0 | ||
| } | ||
| avgTxsPerBlock := float64(txCount) / float64(blockCount) | ||
| return avgTxsPerBlock * 1000 / float64(avgBlockProcessMs) |
Check notice
Code scanning / CodeQL
Floating point arithmetic Note test
Describe your changes and provide context
theoreticalTPSso we can better forecast what autobahn will yieldTesting performed to validate your change
scripts/benchmark.sh