Skip to content

Add basic benchmark for consensus adding blocks

triazo requested to merge benchmark into profile

My worries:

  • Adding a block does not actually seem to be constant time. For now the go benchmark doesn't seem to notice since this doesn't show until you have many more blocks.
  • The testing benchmark records memory usage, but doesn't seem to have any way of outputting it easily, so I manully ran the benchmark and made it a test function. (running with go test ./modules/consensus/ -run=Bench -v -tags='debug testing')

Merge request reports