miniBill / elm-faster-benchmark / FastBenchmark.Types

Types


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

Statistics un run times.


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

Parameters needed to measure the timing.

Messages


type ToFrontend graph function
    = TFParams ({ timeout : Maybe Basics.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 =
Basics.Int

Index of the Web Worker.