You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason, network commands of cast are slow.
(all measures are against a local geth or anvil)
time cast to-hex takes ~25ms, but
time cast bn takes ~200 ms.
In comparison, the equivalent curl takes ~15 ms time curl -H 'content-type: application/json' -d '{"id":1,"jsonrpc":"2.0","method":"eth_blockNumber"}' http://localhost:8545
I verified that it works better on a linux (google cloud) - 10ms for "to-hex" and 15 ms for "bn"
(note: I verified I use native "arm64" executables.
The text was updated successfully, but these errors were encountered:
we should check if URL argument is none (or a valid URL and no alias) and return localhost or that URL parameter, or the flashbots URL if --flashbots and don't resolve the config
Component
Cast
Have you ensured that all of these are up to date?
What version of Foundry are you on?
cast 0.2.0 (34f684d 2023-11-01T22:19:24.957042000Z)
What command(s) is the bug in?
time cast bn
Operating System
macOS (Apple Silicon)
Describe the bug
For some reason, network commands of
cast
are slow.(all measures are against a local
geth
oranvil
)time cast to-hex
takes ~25ms, buttime cast bn
takes ~200 ms.In comparison, the equivalent curl takes ~15 ms
time curl -H 'content-type: application/json' -d '{"id":1,"jsonrpc":"2.0","method":"eth_blockNumber"}' http://localhost:8545
I verified that it works better on a linux (google cloud) - 10ms for "to-hex" and 15 ms for "bn"
(note: I verified I use native "arm64" executables.
The text was updated successfully, but these errors were encountered: