We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05a0825 commit 664553eCopy full SHA for 664553e
benchmarks/all.async.js
@@ -3,6 +3,22 @@ const all = require('../all')
3
4
const suite = new TimeInLoopSuite({ async: true, loopCount: 1e5 })
5
6
+suite.add('rubico async array all promises', async () => {
7
+ await all([
8
+ Promise.resolve(1),
9
+ Promise.resolve(2),
10
+ Promise.resolve(3),
11
+ ])
12
+})
13
+
14
+suite.add('rubico async object all promises', async () => {
15
+ await all({
16
+ a: Promise.resolve(1),
17
+ b: Promise.resolve(2),
18
+ c: Promise.resolve(3),
19
+ })
20
21
22
suite.add('rubico async array all', async () => {
23
await all(5, [
24
async value => value + 1,
0 commit comments