X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=min.mjs;h=c7efed1a18402cbc9882dfba3c3a903da31402c5;hb=1617c0afd8c59677bdb3279b8c350b65c3af8e16;hp=25618206a0e12514dbb665a2f468654d3ac34205;hpb=f913c68ce1ad111704f1f319706cb99e9659e236;p=benchmarks-js.git diff --git a/min.mjs b/min.mjs index 2561820..c7efed1 100644 --- a/min.mjs +++ b/min.mjs @@ -1,4 +1,5 @@ import Benchmark from 'benny' + import { generateRandomNumberArray } from './benchmark-utils.mjs' const size = 10000 @@ -69,6 +70,4 @@ Benchmark.suite( Benchmark.save({ file: 'min', format: 'json', details: true }), Benchmark.save({ file: 'min', format: 'chart.html', details: true }), Benchmark.save({ file: 'min', format: 'table.html', details: true }) -).catch(err => { - console.error(err) -}) +).catch(console.error)