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

import: add csv debug option #2301

Merged
merged 1 commit into from
Jun 6, 2024
Merged

import: add csv debug option #2301

merged 1 commit into from
Jun 6, 2024

Conversation

arnetheduck
Copy link
Member

This new option saves a CSV to disk while performing import such that the performance of one import can be compared with the other.

This early version is likely to change in the future, hence it's also hidden behind a debug flag.

Here's a sample output:

block_number,blocks,txs,gas,time
8193,8192,0,0,964623666
16385,8192,0,0,1052502040
24577,8192,0,0,1033609541
32769,8192,0,0,1053529132
40961,8192,0,0,1129258484
49153,8192,1514,0,1497880436
57345,8192,3916,0,2453669141

This can be used to generate a bps/tps graph like so (, where the initial ~100k blocks have been cut out since they're mostly empty:
image

This is generated with gnuplot:

set datafile separator ","
plot 'xx.csv' using 1:(1/(($5/1000000000)/$2)) with lines title 'bps', '' using 1:(1/(($5/1000000000)/$3)) with lines title 'tps'

This new option saves a CSV to disk while performing `import` such that
the performance of one import can be compared with the other.

This early version is likely to change in the future
@arnetheduck arnetheduck merged commit 0268093 into master Jun 6, 2024
9 checks passed
@arnetheduck arnetheduck deleted the stats-option branch June 6, 2024 05:03
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