-
Notifications
You must be signed in to change notification settings - Fork 805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add mechanism for benchmarking EVM queries #1530
Conversation
go func() { | ||
defer func() { wg.Done() }() | ||
height := int64(BlockHeightsWithTxs[i%len(BlockHeightsWithTxs)]) | ||
_, err := ethClients[i%len(ethClients)].BlockByNumber(context.Background(), big.NewInt(height)) | ||
if err != nil { | ||
fmt.Printf("Failed to get full block of height %d due to %s\n", height, err) | ||
} | ||
}() |
Check notice
Code scanning / CodeQL
Spawning a Go routine Note
go func() { | ||
defer func() { wg.Done() }() | ||
hash := EvmTxHashes[i%len(EvmTxHashes)] | ||
_, err := ethClients[i%len(ethClients)].TransactionReceipt(context.Background(), hash) | ||
if err != nil { | ||
fmt.Printf("Failed to get receipt of tx %s due to %s\n", hash.Hex(), err) | ||
} | ||
}() |
Check notice
Code scanning / CodeQL
Spawning a Go routine Note
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## seiv2 #1530 +/- ##
==========================================
+ Coverage 60.21% 60.47% +0.26%
==========================================
Files 363 365 +2
Lines 25797 25836 +39
==========================================
+ Hits 15533 15624 +91
+ Misses 9277 9222 -55
- Partials 987 990 +3 |
2921a04
to
5a186f9
Compare
* Add mechanism for benchmarking EVM queries * allow ticks to be specified
* Add mechanism for benchmarking EVM queries * allow ticks to be specified
* Add mechanism for benchmarking EVM queries * allow ticks to be specified
* Add mechanism for benchmarking EVM queries * allow ticks to be specified
* Add mechanism for benchmarking EVM queries * allow ticks to be specified
* Add mechanism for benchmarking EVM queries * allow ticks to be specified
Describe your changes and provide context
Add a new loadtest config
post_tx_evm_queries
to specify what EVM queries should be benchmarked after the normal EVM transactions are loadtested (since we need load first in order to query), and the number of concurrent queries to send. Right now we support two query types but more can be added:Testing performed to validate your change
load test cluster