X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=min.mjs;h=c7efed1a18402cbc9882dfba3c3a903da31402c5;hb=5ab6d5d4c4fac07a2f4344b58b2be63a2e488e1b;hp=2ac02b52bb9b9a0a4972b3a307779a11c4d5e343;hpb=528db71629bde2fbb2332fadc1011df3a61dd7c7;p=benchmarks-js.git diff --git a/min.mjs b/min.mjs index 2ac02b5..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)