Janiczek/elm-benchmark-cli-runner

CLI benchmark runner, sending results out via port


License
MIT
Install
elm-package install Janiczek/elm-benchmark-cli-runner 1.0.0

Documentation

elm-benchmark-cli-runner

Allows running elm-explorations/benchmark benchmarks in CLI, getting results back via port:

import Benchmark.Runner.Cli

port sendOutput : Benchmark.Runner.Cli.Output -> Cmd msg

⬇️

app.ports.sendOutput.subscribe((output) => {
    console.log(JSON.stringify(output, null, 2));
});

⬇️

{
  "results": [
    { "name": [ "remove", "listRemoveOld" ], "nsPerRun": 561.8524436770276 },
    { "name": [ "remove", "listRemoveNew" ], "nsPerRun": 573.8985643419595 }
  ],
  "warning": null
}