Skip to content

Commit

Permalink
all values benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
richytong committed Dec 15, 2024
1 parent 664553e commit 61caed1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions benchmarks/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ const all = require('../all')

const suite = new TimeInLoopSuite()

suite.add('rubico array all values', async () => {
all([1, 2, 3])
})

suite.add('rubico object all values', async () => {
all({ a: 1, b: 2, c: 3 })
})

suite.add('rubico array all', () => {
all(5, [
value => value + 1,
Expand Down

0 comments on commit 61caed1

Please sign in to comment.