Promise vs BlueBird (v6)

Revision 6 of this benchmark created by Micah Thomas on


Preparation HTML

<script src="//cdn.jsdelivr.net/npm/bluebird@3.5.5/js/browser/bluebird.min.js"></script>

Setup

debugger;
  window.Bluebird = Promise.noConflict()

Test runner

Ready to run.

Testing in
TestOps/sec
BlueBird
function B() {
  return new Bluebird((res, rej) => {
    res('test')
  })
}

B().then(result => {
  if (result !== 'test') {
    throw new Error('Bad result')
  }
})
ready
Promise
function A() {
  return new Promise((res, rej) => {
    res('test')
  })
}

A().then(result => {
  if (result !== 'test') {
    throw new Error('Bad result')
  }
})
ready

Revisions

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

  • Revision 1: published by Oleg on
  • Revision 6: published by Micah Thomas on