Native promises vs RSVP.js

Benchmark created by bracket on


Preparation HTML

<script src="http://rsvpjs-builds.s3.amazonaws.com/rsvp-latest.js"></script>
<script src="https://grimwire.com/local/local.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
RSVP
// async test
function make() {
  return new RSVP.Promise(function (resolve, reject) {
      resolve(1)
  })
}

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

make().then(function (v) { deferred.resolve(); })
ready
Local.js
function make() {
  return local.promise(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.

  • Revision 1: published by bracket on