haskell / criterion

A powerful but simple library for measuring the performance of Haskell code.
http://www.serpentine.com/criterion
BSD 2-Clause "Simplified" License
503 stars 86 forks source link

Add runBenchmarkWith, general benchmark runner #255

Closed phadej closed 1 year ago

phadej commented 2 years ago

Refactor runBenchmark to use it. Resolves #254


I opted out to generating some data-type with configuration etc. The logic is just easier to write as code directly.

phadej commented 2 years ago

I'll add semigroups compat if this is otherwise ok, or when I make tweaks.

phadej commented 2 years ago

I changed the type of function. It fits better the usage where some analysis is done already on each step (in ~bayesian style), so you won't end doing it twice on the last sample (and without access to the state).

phadej commented 1 year ago

I don't need this functionality anymore.