Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fgimenez/reth-log-parser
Extract relevant data from reth logs
https://github.com/fgimenez/reth-log-parser
ethereum log parser reth
Last synced: about 1 month ago
JSON representation
Extract relevant data from reth logs
- Host: GitHub
- URL: https://github.com/fgimenez/reth-log-parser
- Owner: fgimenez
- Created: 2024-05-06T09:52:23.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-09-16T07:53:56.000Z (2 months ago)
- Last Synced: 2024-09-17T07:13:24.453Z (2 months ago)
- Topics: ethereum, log, parser, reth
- Language: Rust
- Homepage:
- Size: 87.9 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# reth-log-parser
Parses reth's logs and shows several stats.
# Execution
Currently running the tool shows the time taken by reth for doing an historical
sync, specifying the time spent on pipelines and the stages on each of them. You
need to specify the path to the log file on the command line invocation:```shell
$ cargo run -- ./reth.log
Pipeline 1:
Stage 001 - Headers: 24m 11s
Stage 002 - Bodies: 2h 26m
Stage 003 - SenderRecovery: 1h 5m
Stage 004 - Execution: 41h 14m
Stage 005 - MerkleUnwind: 0s
Stage 006 - AccountHashing: 2m 37s
Stage 007 - StorageHashing: 30m 2s
Stage 008 - MerkleExecute: 24m 12s
Stage 009 - TransactionLookup: 25m 51s
Stage 010 - IndexStorageHistory: 10s
Stage 011 - IndexAccountHistory: 3s
Stage 012 - Finish: 0s
Total Pipeline Duration: 46h 25m
Pipeline 2:
Stage 001 - Headers: 2s
Stage 002 - Bodies: 10s
Stage 003 - SenderRecovery: 3s
Stage 004 - Execution: 5m 18s
Stage 005 - MerkleUnwind: 0s
Stage 006 - AccountHashing: 35s
Stage 007 - StorageHashing: 1m 3s
Stage 008 - MerkleExecute: 33m 7s
Stage 009 - TransactionLookup: 24s
Stage 010 - IndexStorageHistory: 3s
Stage 011 - IndexAccountHistory: 1s
Stage 012 - Finish: 0s
Total Pipeline Duration: 40m 50s
Pipeline 3:
Stage 001 - Headers: 0s
Stage 002 - Bodies: 0s
Stage 003 - SenderRecovery: 0s
Stage 004 - Execution: 4s
Stage 005 - MerkleUnwind: 0s
Stage 006 - AccountHashing: 0s
Stage 007 - StorageHashing: 0s
Stage 008 - MerkleExecute: 4s
Stage 009 - TransactionLookup: 0s
Stage 010 - IndexStorageHistory: 0s
Stage 011 - IndexAccountHistory: 0s
Stage 012 - Finish: 0s
Total Pipeline Duration: 10s
Total Aggregate Duration: 47h 14m
```## Tests
```shell
$ cargo nextest run --locked
```