Bluebird vs RSVP (v92)

Revision 92 of this benchmark created on


Description

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

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
BPromise.resolve(1).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.