A home for Tweag's investigation into the cost structure of Cardano block validation
$ nix run github:tweag/ouroboros-consensus/aspiwack/explore-cardano#db-analyser -- --db path/to/db/ --config path/to/config.json --in-mem --dump --block-file path/to/blocks.csv --transaction-file path/to/transactions.csv --analyse-from 4492900Where
--dbpoints to a directory with a node's block database--configpoints to the config file that the node used--block-fileand--transaction-filepoint to possibly non-existent files, where the data will be dumped.
Some early-project observations
The smallest a block has ever been on mainnet is 633 bytes. The largest is 648KB (633KiB). For a mean average of 17KiB per block.
There seems to be trends in block size, see how it evolves over time:
Most blocks are pretty small though
Here's the distribution of the number of script witnesses in transactions


