-
Notifications
You must be signed in to change notification settings - Fork 2
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
Optimize time-consuming tasks #17
Conversation
Will we retry if the rate limit is reached? |
The result seems to be very good!
It surprises me that with |
BTW: I would suggest printing |
The fixed PR is ethstorage/ethfs-cli#18 |
Updated results $ ethfs-cli --version
1.1.3
$ time ethfs-cli upload ...
... cpu 3:19.84 total
$ time ethfs-cli upload ... -s 6
... cpu 3:50.14 total
$ time ethfs-cli upload ... -s 15
... cpu 1:22.55 total
$ time ethfs-cli upload ... -s 24
... cpu 57.579 total |
The
kzgwasm.blobToKzgCommitment
function will take600-700
ms, change it to concurrent.Compare files for changes
Total file size: 79.2 MB
Number of files: 988
Unoptimized SDK, Number of concurrencies is
1
: 2,161,958 ms = 36 minutesUnoptimized SDK, Number of concurrencies is
6
: 744,458 ms = 12.4 minutesOptimized SDK for KZG, Number of concurrencies is
6
: 281,896 ms = 4.7 minutesOptimized SDK for KZG, Number of concurrencies is
9
: 194,627 ms = 3.2 minutesOptimized SDK for KZG, Number of concurrencies is
12
: 155,411 ms = 2.6 minutesOptimized SDK for KZG, Number of concurrencies is
15
: 126,103 ms = 2.1 minutesOptimized SDK for KZG, Number of concurrencies is
18
: 116,898 ms = 1.95 minutesIf
c-kzg
is used, Thekzg.blobToKzgCommitment
function will take80
msSome public RPCs have request limits, and the number of concurrencies set at 5-6 will not exceed the limit.
Error: exceeded maximum retry limit (
info: {
requestUrl: 'https://nova.arbitrum.io/rpc',
responseBody: '{"jsonrpc":"2.0","error":{"code":429,"message":"Public RPC Rate Limit Hit, limit will reset in 60 seconds"}}',
responseStatus: '599 CLIENT ESCALATED SERVER ERROR (429 Too Many Requests; exceeded maximum retry limit)'
},
shortMessage: 'exceeded maximum retry limit'
}