Bluebird vs RSVP vs Alt (v19)

Revision 19 of this benchmark created by tav on


Description

A comparison of the most highly performant promise implementations.

Preparation HTML

<script src="http://rsvpjs-builds.s3.amazonaws.com/rsvp-latest.js"></script>
<script src="https://rawgithub.com/petkaantonov/bluebird/master/js/browser/bluebird.js"></script>
<script src="http://tav.espians.com/temp/alt.js"></script>
<script>var BPromise = Promise.noConflict();</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Alt
// async test
function make() {
  var promise = µ.promise()
  promise.putValue(1)
  return promise
}

make().then(function (v) { deferred.resolve() })
ready
Bluebird classic
// async test
function make() {
  return new BPromise(function (resolve, reject) {
      resolve(1)
  })
}

make().then(function (v) { deferred.resolve() })
 
ready
RSVP classic
// async test
function make() {
  return new RSVP.Promise(function (resolve, reject) {
      resolve(1)
  })
}

make().then(function (v) { deferred.resolve() })
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.