Haskell Benchmarking

Write and run Haskell performance benchmarks. Covers the `benchmark` cabal stanza, `tasty-bench` for timing (the default), `weigh` for memory-allocation measurement, baseline comparison to catch regressions, the laziness traps (`nf` vs `whnf`), and how to integrate with GHC profiling/flame graphs for deeper investigation. Also explains when to switch to `criterion` for HTML reports. Use when adding benchmarks, debugging a "this got slower" regression, comparing two implementations of the same function, hunting space leaks, or wiring benchmarks into CI.

ivelten Updated

File contents

ivelten/claude-haskell-skills/tree/main/plugins/haskell/skills/haskell-benchmarking commit 37a792e7b5

Frequently asked questions

npx skillmds@latest add ivelten/haskell-benchmarking