Skip to content

Instantly share code, notes, and snippets.

@calvinmetcalf
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calvinmetcalf/b5ed2a3ab44125aa6228 to your computer and use it in GitHub Desktop.
Save calvinmetcalf/b5ed2a3ab44125aa6228 to your computer and use it in GitHub Desktop.
$ npm ls rsvp lie q when promise asyncasync-compare@0.1.1 /Users/cmetcalf/projects/bluebird/benchmark
├── async@0.7.0
├── lie@2.7.3
├── promise@5.0.0
├── q@1.0.1
├── rsvp@3.0.6
└── when@3.1.0

node 0.11.13

sequential:

results for 10000 parallel executions, 1 ms per I/O op

file                                 time(ms)  memory(MB)
callbacks-baseline.js                     302       39.27
promises-bluebird-generator.js            372       40.14
promises-bluebird.js                      535       52.08
promises-cujojs-when.js                   902      111.11
callbacks-caolan-async-waterfall.js      1178       72.29
promises-ecmascript6-native.js           1589      175.59
promises-tildeio-rsvp.js                 1680      215.01
promises-then-promise.js                 1921      252.59
promises-calvinmetcalf-lie.js            2223      175.24
promises-kriskowal-q.js                 20105      554.57

Platform info:
Darwin 13.1.0 x64
Node.JS 0.11.13
V8 3.25.30
Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz × 8

parallel

results for 10000 parallel executions, 1 ms per I/O op

file                                time(ms)  memory(MB)
callbacks-baseline.js                    453       45.52
promises-bluebird.js                     727      125.95
promises-bluebird-generator.js           852      129.61
callbacks-caolan-async-parallel.js      1678      221.59
promises-cujojs-when.js                 2191      324.37
promises-calvinmetcalf-lie.js           2546      467.17
promises-then-promise.js                4961      670.08
promises-tildeio-rsvp.js                4986      954.85
promises-ecmascript6-native.js          6001      528.98

Platform info:
Darwin 13.1.0 x64
Node.JS 0.11.13
V8 3.25.30
Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz × 8

node 0.10.28

sequential:

results for 10000 parallel executions, 1 ms per I/O op

file                                 time(ms)  memory(MB)
callbacks-baseline.js                     191       35.54
promises-bluebird.js                      334       53.14
promises-cujojs-when.js                   847       53.51
callbacks-caolan-async-waterfall.js       982       58.15
promises-calvinmetcalf-lie.js            1524       74.39
promises-tildeio-rsvp.js                 1931       64.91
promises-then-promise.js                 3758      186.37
promises-kriskowal-q.js                 14651      432.00

Platform info:
Darwin 13.1.0 x64
Node.JS 0.10.28
V8 3.14.5.9
Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz × 8

parallel

results for 10000 parallel executions, 1 ms per I/O op

file                                time(ms)  memory(MB)
callbacks-baseline.js                    283       49.47
promises-bluebird.js                     646      119.13
callbacks-caolan-async-parallel.js      1595      188.40
promises-cujojs-when.js                 2085      225.47
promises-tildeio-rsvp.js                7094      578.39
promises-calvinmetcalf-lie.js           7820      402.97
promises-then-promise.js               14703      660.91

Platform info:
Darwin 13.1.0 x64
Node.JS 0.10.28
V8 3.14.5.9
Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz × 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment