Bluebird vs RSVP (v88)

Revision 88 of this benchmark created by will on


Description

A comparison of some of the most highly performant promise implementations. Now including Zousan (https://github.com/bluejava/zousan)!

Preparation HTML

var window.self = self;
<script src="http://rsvpjs-builds.s3.amazonaws.com/rsvp-latest.js"></script>
<script src="https://cdn.jsdelivr.net/bluebird/latest/bluebird.min.js">
</script>
<script src="http://www.bluejava.com/int/zousan-min.js">
</script>
<script>

var BPromise = Promise.noConflict();
var RPromise = RSVP.Promise;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Bluebird
// async test
function make() {
  return new BPromise(function (resolve, reject) {
      resolve(1)
  })
}

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

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

make().then(function () { deferred.resolve() })
ready
Zousan
// async test
var p = new Zousan();
p.then(function () { deferred.resolve() });
p.resolve(1);
ready

Revisions

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