Skip to content
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

Source stats #3

Merged
merged 7 commits into from
Sep 2, 2023
Merged

Source stats #3

merged 7 commits into from
Sep 2, 2023

Conversation

metachris
Copy link
Contributor

@metachris metachris commented Aug 31, 2023

Transaction source statistics

code here: analyzer.go

Example output:

From: 2023-08-31 20:29:14 +0000 UTC 
To:   2023-08-31 21:07:02 +0000 UTC 
      (37m47.821s) 

Sources: alchemy, apool2, blx, infura, local 

- Transactions:  245,729 
- Unique txs:     71,039 

-------------
Overall stats
-------------

All transactions received: 245,729 
- alchemy      53,110
- apool2       52,297
- blx          27,724
- infura       55,315
- local        57,283

Exclusive tx (single source): 11,153 / 71,039 (15.70%) 
- alchemy       1,360
- apool2        2,310
- blx           3,660
- infura        1,899
- local         1,924

Transactions not seen by local node: 13,756 / 71,039 (19.36%)
- alchemy       4,766
- apool2        5,737
- blx           3,965
- infura        5,516

------------------
Latency comparison
------------------

blx transactions received before local: 13,308 
 - 1 ms       13,308 
 - 10 ms      11,691 
 - 50 ms       8,236 
 - 100 ms      1,223 
 - 250 ms        315 
 - 500 ms         48 
 - 1000 ms         2 
 - 2000 ms         0 

apool2 transactions received before local: 43,460 
 - 1 ms       43,460 
 - 10 ms      43,295 
 - 50 ms      41,770 
 - 100 ms     34,611 
 - 250 ms     19,248 
 - 500 ms     11,173 
 - 1000 ms     2,998 
 - 2000 ms     2,370 

apool2 transactions received before blx: 23,056 
 - 1 ms       23,056 
 - 10 ms      22,960 
 - 50 ms      18,026 
 - 100 ms     12,098 
 - 250 ms      2,952 
 - 500 ms      1,729 
 - 1000 ms       345 
 - 2000 ms       132 

blx transactions received before apool2: 509 
 - 1 ms          509 
 - 10 ms         460 
 - 50 ms         336 
 - 100 ms        237 
 - 250 ms         71 
 - 500 ms         18 
 - 1000 ms         5 
 - 2000 ms         2 

✅ I have run these commands

  • make lint
  • make test
  • go mod tidy

@Wazzymandias
Copy link

code here: analyzer.go

nit: I get 404 error for that link

@metachris
Copy link
Contributor Author

metachris commented Sep 2, 2023

thanks wazzy, fixed!

@metachris metachris merged commit 6b73c82 into main Sep 2, 2023
2 checks passed
@metachris metachris deleted the source-stats branch September 8, 2023 13:55
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