HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

ModuleAgda-2.7.0.1Haskell2010

Agda.Utils.Benchmark

Tools for benchmarking and accumulating results. Nothing Agda-specific in here.

  • 5 types
  • 1 class
  • 12 values
  • PackageAgda-2.7.0.1
  • Exports18
  • LanguageHaskell2010
  • LicenceMIT
  • SourceBenchmark.hs

Benchmark trie

10 declarations
typetype Account a = [a]
#

Account we can bill computation time to.

datadata BenchmarkOn a
#
Instances3Generic, NFData, Rep
datadata Benchmark a
#

Benchmark structure is a trie, mapping accounts (phases and subphases) to CPU time spent on their performance.

Constructors

Instances5Generic, NFData, Pretty, Null, Rep

Benchmarking monad.

8 declarations
classclass (Ord (BenchPhase m), Functor m, MonadIO m) => MonadBench (m :: Type -> Type) where
#

Monad with access to benchmarking data.

Associated types

Methods

Instances8MonadBench, …
valuereset :: MonadBench m => m ()
#

Resets the account and the timing information.

valuebillTo :: MonadBench m => Account (BenchPhase m) -> m c -> m c
#

Bill a computation to a specific account. Works even if the computation is aborted by an exception.