Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
callbacks vs promises vs async/awaits
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Browser:
Chrome 135
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
callbacks
84.1M/s
promises
46.2M/s
async/awaits
445K/s
View exact numbers
Test name
Executions per second
✓
callbacks
84,077,792 Ops/sec
promises
46,208,680 Ops/sec
async/awaits
444,808 Ops/sec
Tests:
callbacks
((cb) => {cb()})(() => {});
promises
(()=>Promise.resolve())();
async/awaits
(async() => { await true; })();