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))