forest
forest copied to clipboard
eth_getTransactionReceipt: Performance issue
Describe the bug
I request eth_getTransactionReceipt method. Forest responds in 120 ms, while Lotus returns the same response in 3 ms.
To reproduce
Curl request:
curl -X POST -w '\nTotal: %{time_total}s\n' http://localhost:2345/rpc/v1 \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method": "eth_getTransactionReceipt",
"params": [
"0xb0ccffb14e1e79f0b6c6ceec223bb4bbf6fc302ae76067f1f9225bae9d6f3fdc"
],
"id": 1
}'
Response
{"id":1,"jsonrpc":"2.0","result":{"transactionHash":"0xb0ccffb14e1e79f0b6c6ceec223bb4bbf6fc302ae76067f1f9225bae9d6f3fdc","transactionIndex":"0x0","blockHash":"0xcf01730be358d4053ec4d72154dc2eec3f6d9cb06542c899f94c3c410613a536","blockNumber":"0x4ad279","from":"0xff0000000000000000000000000000000030a4e4","to":"0xff0000000000000000000000000000000030a4d5","root":"0x0000000000000000000000000000000000000000000000000000000000000000","status":"0x1","contractAddress":null,"cumulativeGasUsed":"0x0","gasUsed":"0x14c6ebc","effectiveGasPrice":"0x6660569","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","logs":[],"type":"0x2"}}
Expected behaviour
Forest responds in <= 3 ms.
Environment (please complete the following information):
- Hardware
- 12 cores CPU, 32Gb RAM
Is this from a cold start, or after the caches have warmed up? On mainnet or calibnet?
mainnet, caches warmed up.
Some improvements were made, e.g., via #5944. @AlexeyKrasnoperov, please re-assess the performance issue.
performance issue is resolved