Skip to content

eth_gasPrice performance tweaks#6016

Merged
AlexeyAkhunov merged 1 commit into
erigontech:develfrom
hexoscott:gas-price-performance
Nov 10, 2022
Merged

eth_gasPrice performance tweaks#6016
AlexeyAkhunov merged 1 commit into
erigontech:develfrom
hexoscott:gas-price-performance

Conversation

@hexoscott

Copy link
Copy Markdown
Contributor

Code news up an oracle for every call so existing cache checks always came back as 0. Moved cache up a layer and pass in via the new gasprice.Cache interface. Looked at putting the oracle instance onto the ethApi itself to re-use it that way, but the backend transaction made it a little hard work as we can't re-use that. This seemed cleaner but happy to take feedback.

Locally takes me from ±2.5k rps to ±43k rps so quite a difference there. (k6 with 1000 virtual users)

@AlexeyAkhunov AlexeyAkhunov merged commit 475fa08 into erigontech:devel Nov 10, 2022
@hexoscott hexoscott deleted the gas-price-performance branch November 10, 2022 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants