Promises/A+ Comparisons (v22)

Revision 22 of this benchmark created on


Description

A comparison of Promises/A+ implementations in active development.

Preparation HTML

<script>
    var NativePromise = Promise;
</script>
<script src="http://rawgithub.com/dfilatov/vow/master/vow.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
Bluebird deferred
// async test
function make() {
  var resolver = Promise.pending()

  resolver.fulfill()

  return resolver.promise
}

make().then(function() {
  deferred.resolve()
})
ready
RSVP deferred
// async test
 
ready
Bluebird classic
// async test
 
ready
RSVP classic
// async test
 
ready
Q deferred
// async test
 
ready
Q classic
// async test
 
ready
ypromise
// async test
 
ready
Native promise classic
// async test
function make() {
  return new NativePromise(function(resolve, reject) {
    resolve()
  })
}

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

Revisions

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