elm-explorations / benchmark / Benchmark.Runner

Browser Benchmark Runner

program : Benchmark -> BenchmarkProgram

Create a runner program from a benchmark. For example:

main : BenchmarkProgram
main =
    Runner.program <|
        Benchmark.describe "your benchmarks"
            [{- your benchmarks here -}]

Compile this and visit the result in your browser to run the benchmarks.


type alias BenchmarkProgram =
Platform.Program () App.Model App.Msg

A handy type alias for values produced by program