BlockstreamResearch / rust-simplicity

Creative Commons Zero v1.0 Universal
58 stars 12 forks source link

benchmarks: updates and cleanups #239

Closed apoelstra closed 3 months ago

apoelstra commented 3 months ago

This significantly improves and cleans up the benchmarks. This branch was used to generate the data for https://github.com/BlockstreamResearch/simplicity/pull/247.

The main changes are:

For the transaction environment jets, which include all the transaction intropection jets, this makes minimal changes. A future PR should do something similar for the transaction environment, running multiple benchmarks across multiple distributions. But because these jets are implemented as lookups into a compute-once-per-tx transaction environment structure, I expect their cost to be very low and low-variance, so I did not do this work.