X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=max.js;h=bfa521cce36722fc35f72dc991d48fd9413b2e4a;hb=67bc719403008a754ddd75d921eea5be7ed772d1;hp=5525c9293451fd335924e88a15698b43cf2e31ae;hpb=ed40d2b012a740d121f1951b9be91df341d6eaf3;p=benchmarks-js.git diff --git a/max.js b/max.js index 5525c92..bfa521c 100644 --- a/max.js +++ b/max.js @@ -1,7 +1,7 @@ const Benchmark = require('benny') -const { generateRandomIntegerArray } = require('./benchmark-utils') +const { generateRandomNumberArray } = require('./benchmark-utils') -const testArray = generateRandomIntegerArray(10000) +const testArray = generateRandomNumberArray(10000) /** * @@ -50,7 +50,7 @@ Benchmark.suite( Benchmark.add('reduceTernaryMax', () => { reduceTernaryMax(testArray) }), - Benchmark.add('reduceMathMax', () => { + Benchmark.add('reduceMath.max', () => { reduceMathMax(testArray) }), Benchmark.add('sortMax', () => { @@ -58,6 +58,7 @@ Benchmark.suite( }), Benchmark.cycle(), Benchmark.complete(), - Benchmark.save({ file: 'max', format: 'chart.html' }), - Benchmark.save({ file: 'max', format: 'table.html' }) + Benchmark.save({ file: 'max', format: 'json', details: true }), + Benchmark.save({ file: 'max', format: 'chart.html', details: true }), + Benchmark.save({ file: 'max', format: 'table.html', details: true }) )