Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
promise vs callback 123
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/93.0.4577.78 Mobile/15E148 Safari/604.1
Browser:
Chrome Mobile iOS 93
Operating system:
iOS 15.7
Device Platform:
Mobile
Date tested:
2 years ago
Test name
Executions per second
async
2224068.5 Ops/sec
callback
5655056.5 Ops/sec
Script Preparation code:
function promises() { return Promise.resolve(123) } function callbacks(cb) { return cb(123) }
Tests:
async
promises()
callback
callbacks((_) => {})