Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
dvd101x committed Sep 20, 2024
1 parent 2ec54ad commit 81f6d76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test/benchmark/forEach.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions test/benchmark/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 81f6d76

Please sign in to comment.