Andrew Lelechenko - Tasty-bench: featherlight benchmark framework

Опубликовано: 29 Ноябрь 2024
на канале: Konfy
262
4

Special thanks to the Haskell Foundation for supporting the production of this video!

Haskell Love 2021 schedule: https://emamo.com/event/haskell-love
Haskell Love twitter:   / _haskellove  

The talk is about architecture, UI and UX of https://hackage.haskell.org/package/t..., which is a new benchmark framework with an API mimicking `criterion` and `gauge`. Despite its young age, `tasty-bench` has been adopted by such packages as `bytestring`, `text`, `random`, `vector` and `pandoc`. A prominent feature is built-in comparison against previous runs and between benchmarks. Tight integration with `tasty` framework allows to create automatic performance regression test suite. `Test.Tasty.Bench` is just a single source file and does not incur any non-boot dependencies except `tasty`, so compilation is up to 16x faster than `criterion` and up to 8x faster than `gauge`.