Run benchmarks in the browser.
import Benchmark.Runner.Alternative as BenchmarkRunner
.
Platform.Program () Model Msg
A benchmark runner program. See program
for how to create one.
program : Benchmark -> Program
Run benchmarks with defaultOptions
.
main =
BenchmarkRunner.program suite
programWith : Options -> Benchmark -> Program
Run benchmarks with custom Options
.
main =
programWith { defaultOptions | theme = Light }
{ theme : Theme }
Options to start the BenchmarkProgram
with:
theme
defaultOptions : Options
{ theme = darkTheme }
and default rendering.
{ background : Color
, foreground : Color
}
Color theme.
Defaults are darkTheme
and lightTheme
.
darkTheme : Theme
White stuff on a black background.
lightTheme : Theme
Black stuff on a white background.
progressBenchmark : Benchmark -> Platform.Cmd.Cmd Msg
Benchmark.step
if the benchmark still hasn't received all results.