From 81f6d7697bcbf62db3e648054ba975c2c8f012ce Mon Sep 17 00:00:00 2001 From: David Contreras Date: Thu, 19 Sep 2024 19:41:04 -0600 Subject: [PATCH] Format --- test/benchmark/forEach.js | 6 +++--- test/benchmark/map.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/benchmark/forEach.js b/test/benchmark/forEach.js index 9030c2027a..06ad200731 100644 --- a/test/benchmark/forEach.js +++ b/test/benchmark/forEach.js @@ -44,13 +44,13 @@ new Benchmark.Suite() numberMatrix.forEach(abs.signatures.number) }) .add(pad('genericMatrix.forEach(abs+idx)'), () => { - genericMatrix.forEach((x, idx) => abs(x)+idx[0]-idx[1]) + genericMatrix.forEach((x, idx) => abs(x) + idx[0] - idx[1]) }) .add(pad('numberMatrix.forEach(abs+idx)'), () => { - numberMatrix.forEach((x, idx) => abs(x)+idx[0]-idx[1]) + numberMatrix.forEach((x, idx) => abs(x) + idx[0] - idx[1]) }) .add(pad('forEach(genericMatrix, abs+idx)'), () => { - forEach(genericMatrix, ((x, idx) => abs(x)+idx[0]-idx[1])) + forEach(genericMatrix, (x, idx) => abs(x) + idx[0] - idx[1]) }) .add() .on('cycle', function (event) { diff --git a/test/benchmark/map.js b/test/benchmark/map.js index 016d258dcd..6754592971 100644 --- a/test/benchmark/map.js +++ b/test/benchmark/map.js @@ -44,13 +44,13 @@ new Benchmark.Suite() numberMatrix.map(abs.signatures.number) }) .add(pad('map(array, abs + idx)'), () => { - map(array, (x, idx) => abs(x)+idx[0]-idx[1]) + map(array, (x, idx) => abs(x) + idx[0] - idx[1]) }) .add(pad('genericMatrix.map(abs + idx)'), () => { - genericMatrix.map((x, idx) => abs(x)+idx[0]-idx[1]) + genericMatrix.map((x, idx) => abs(x) + idx[0] - idx[1]) }) .add(pad('numberMatrix.map(abs + idx)'), () => { - numberMatrix.map((x, idx) => abs(x)+idx[0]-idx[1]) + numberMatrix.map((x, idx) => abs(x) + idx[0] - idx[1]) }) .on('cycle', function (event) { console.log(String(event.target))