X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=busy-wait.mjs;h=e5aaaeaa91a30b8bd2989ed665035a6d8b3a6e1c;hb=7ae0f4de82ba2098fdcf90ff6385a4e0f401c04c;hp=5a55ef82ef85164839bc476d84c631b4f03eb720;hpb=bcd364e02f04150362bd573ff124c1c6426b7718;p=benchmarks-js.git diff --git a/busy-wait.mjs b/busy-wait.mjs index 5a55ef8..e5aaaea 100644 --- a/busy-wait.mjs +++ b/busy-wait.mjs @@ -1,4 +1,5 @@ import Benchmark from 'benny' + import { sleep } from './benchmark-utils.mjs' const timeout = 2000 @@ -77,6 +78,4 @@ Benchmark.suite( Benchmark.save({ file: 'busy-wait', format: 'json', details: true }), Benchmark.save({ file: 'busy-wait', format: 'chart.html', details: true }), Benchmark.save({ file: 'busy-wait', format: 'table.html', details: true }) -).catch(err => { - console.error(err) -}) +).catch(console.error)