Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
Promise vs async vs callbacks
Promise vs async vs callbacks
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Gecko/20100101 Firefox/128.0
Browser:
Firefox 128
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
Callback
909.4M/s
Promise
5.0M/s
Async
508K/s
View exact numbers
Test name
Executions per second
✓
Callback
909,364,800 Ops/sec
Promise
5,046,954 Ops/sec
Async
507,869 Ops/sec
Tests:
Callback
((next) => {next()})(() => {});
Promise
new Promise((resolve) => { resolve(true)});
Async
(async() => { await true; })();