haskell-bitcoin / bitcoin

Bitcoin Library for Haskell
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Adds serialization microbenchmark #37

Closed GambolingPangolin closed 1 year ago

GambolingPangolin commented 1 year ago

This patch adds microbenchmarks covering

For blocks, I chose a few recent blocks at random. Same with transactions.

GambolingPangolin commented 1 year ago

Benchmark results: master_bench.txt

Generally cereal has worse performance than binary for these examples.

ProofOfKeags commented 1 year ago

I see no reason we can't merge this immediately.