miniBill/elm-faster-benchmark/1.0.0

NOTE: the latest version is 2.1.1

FastBenchmark.Types

Types

type alias Config graph function =
{ graphToString : graph -> String
, graphCodec : Codec graph
, functionToString : function -> String
, functionCodec : Codec function
, graphs : List graph
, functions : List function
, sizes : List Int
, toFunction : Param graph function -> () -> ()
, timeout : Maybe Float
}

All the information needed to run a benchmark.

type alias Stats =
{ firstQuartile : Float
, median : Float
, thirdQuartile : Float
, max : Float
, min : Float
, outliers : List Float
}

Statistics un run times.

type alias Param graph function =
{ graph : graph
, function : function
, size : Int
}

Parameters needed to measure the timing.

Messages

type ToFrontend graph function
= TFParams
{ timeout : Maybe Float
, params : List (Param graph function)
}
| TFResult (Param graph function) (Result String Stats)

Message that gets sent to the frontend.

type ToBackend graph function
= TBParams
| TBRun (Param graph function)

Message that gets sent to the backend.

type alias Index =
Int

Index of the Web Worker.

Codecs

toFrontendCodec : Config graph function -> Codec (ToFrontend graph function)

Codec used to send messages to the frontend.

toBackendCodec : Config graph function -> Codec (ToBackend graph function)

Codec used to send messages to the backend.