From 4b16770a6cfce708521295e5f209a0ac02ecce90 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 5 Jun 2023 23:32:46 +0200 Subject: [PATCH] catch benchmarks execution error MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- busy-wait.js | 4 +++- deep-clone-object.js | 4 +++- empty-array.js | 4 +++- fibonacci.js | 4 +++- is-empty-object.js | 4 +++- is-undefined.js | 4 +++- max.js | 4 +++- promise-handling.js | 4 +++- quick-select.js | 4 +++- random.js | 4 +++- shallow-clone-object.js | 4 +++- uuid-generator.js | 4 +++- 12 files changed, 36 insertions(+), 12 deletions(-) diff --git a/busy-wait.js b/busy-wait.js index 3316db9..a851a30 100644 --- a/busy-wait.js +++ b/busy-wait.js @@ -77,4 +77,6 @@ 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) +}) diff --git a/deep-clone-object.js b/deep-clone-object.js index 056e1de..0f480c4 100644 --- a/deep-clone-object.js +++ b/deep-clone-object.js @@ -37,4 +37,6 @@ Benchmark.suite( format: 'table.html', details: true }) -) +).catch(err => { + console.error(err) +}) diff --git a/empty-array.js b/empty-array.js index a56a824..c900a42 100644 --- a/empty-array.js +++ b/empty-array.js @@ -30,4 +30,6 @@ Benchmark.suite( 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 }) -) +).catch(err => { + console.error(err) +}) diff --git a/fibonacci.js b/fibonacci.js index 286c69c..3cce529 100644 --- a/fibonacci.js +++ b/fibonacci.js @@ -63,4 +63,6 @@ Benchmark.suite( Benchmark.save({ file: 'fibonacci', format: 'json', details: true }), Benchmark.save({ file: 'fibonacci', format: 'chart.html', details: true }), Benchmark.save({ file: 'fibonacci', format: 'table.html', details: true }) -) +).catch(err => { + console.error(err) +}) diff --git a/is-empty-object.js b/is-empty-object.js index 394555b..02c3a29 100644 --- a/is-empty-object.js +++ b/is-empty-object.js @@ -36,4 +36,6 @@ Benchmark.suite( format: 'table.html', details: true }) -) +).catch(err => { + console.error(err) +}) diff --git a/is-undefined.js b/is-undefined.js index bc00933..549171e 100644 --- a/is-undefined.js +++ b/is-undefined.js @@ -25,4 +25,6 @@ Benchmark.suite( format: 'table.html', details: true }) -) +).catch(err => { + console.error(err) +}) diff --git a/max.js b/max.js index be3f781..5a48647 100644 --- a/max.js +++ b/max.js @@ -66,4 +66,6 @@ Benchmark.suite( 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 }) -) +).catch(err => { + console.error(err) +}) diff --git a/promise-handling.js b/promise-handling.js index 4e83dc5..11e0a96 100644 --- a/promise-handling.js +++ b/promise-handling.js @@ -58,4 +58,6 @@ Benchmark.suite( format: 'table.html', details: true }) -) +).catch(err => { + console.error(err) +}) diff --git a/quick-select.js b/quick-select.js index d45a9e8..7a2486a 100644 --- a/quick-select.js +++ b/quick-select.js @@ -264,4 +264,6 @@ Benchmark.suite( format: 'table.html', details: true }) -) +).catch(err => { + console.error(err) +}) diff --git a/random.js b/random.js index c3e5c4a..8c0fa86 100644 --- a/random.js +++ b/random.js @@ -100,4 +100,6 @@ Benchmark.suite( format: 'table.html', details: true }) -) +).catch(err => { + console.error(err) +}) diff --git a/shallow-clone-object.js b/shallow-clone-object.js index 9201f83..f8e193b 100644 --- a/shallow-clone-object.js +++ b/shallow-clone-object.js @@ -33,4 +33,6 @@ Benchmark.suite( format: 'table.html', details: true }) -) +).catch(err => { + console.error(err) +}) diff --git a/uuid-generator.js b/uuid-generator.js index 6855cec..08641c1 100644 --- a/uuid-generator.js +++ b/uuid-generator.js @@ -27,4 +27,6 @@ Benchmark.suite( format: 'table.html', details: true }) -) +).catch(err => { + console.error(err) +}) -- 2.34.1