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
}