Bluebird vs RSVP vs When vs Native (v100)

Revision 100 of this benchmark created on


Description

A comparison of the two most highly performant promise implementations and the new native promises.

Preparation HTML

<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>var BPromise = Promise.noConflict();
if ((Promise + "").indexOf("native") < 0) alert("not native promises");
</script>
<script src="https://www.dropbox.com/s/vsan9q5dmlk3odc/when-3.3.1.js?dl=1"></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 (v) { deferred.resolve()  })
ready
Built-in Promise
// async test
function make() {
  return new Promise(function (resolve, reject) {
      resolve(1)
  })
}

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

Revisions

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