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.62% 56.61% -0.01%
==========================================
Files 2033 2033
Lines 166273 166280 +7
==========================================
- Hits 94146 94138 -8
- Misses 63852 63871 +19
+ Partials 8275 8271 -4
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