From fb341cfe4ddb61a33ab7dccb644aa8d6a0049f21 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 24 Oct 2022 11:36:44 +0200 Subject: [PATCH] Improve benny reports MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- empty-array.js | 5 +++-- max.js | 7 ++++--- random.js | 17 +++++++++++++++-- 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/empty-array.js b/empty-array.js index 9ddc17d..0c5f725 100644 --- a/empty-array.js +++ b/empty-array.js @@ -26,6 +26,7 @@ Benchmark.suite( }), Benchmark.cycle(), Benchmark.complete(), - Benchmark.save({ file: 'empty-array', format: 'chart.html' }), - Benchmark.save({ file: 'empty-array', format: 'table.html' }) + Benchmark.save({ file: 'empty-array', format: 'json', details: true }), + Benchmark.save({ file: 'empty-array', format: 'chart.html', details: true }), + Benchmark.save({ file: 'empty-array', format: 'table.html', details: true }) ) diff --git a/max.js b/max.js index 5525c92..367a859 100644 --- a/max.js +++ b/max.js @@ -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 }) ) diff --git a/random.js b/random.js index 72b0b91..1eeeedd 100644 --- a/random.js +++ b/random.js @@ -41,6 +41,19 @@ Benchmark.suite( }), Benchmark.cycle(), Benchmark.complete(), - Benchmark.save({ file: 'random-integer-generator', format: 'chart.html' }), - Benchmark.save({ file: 'random-integer-generator', format: 'table.html' }) + Benchmark.save({ + file: 'random-integer-generator', + format: 'json', + details: true + }), + Benchmark.save({ + file: 'random-integer-generator', + format: 'chart.html', + details: true + }), + Benchmark.save({ + file: 'random-integer-generator', + format: 'table.html', + details: true + }) ) -- 2.34.1