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
callback
5.7M/s
async
2.2M/s
View exact numbers
Test name
Executions per second
✓
callback
5,655,056 Ops/sec
async
2,224,068 Ops/sec
Script Preparation code:
function promises() { return Promise.resolve(123) } function callbacks(cb) { return cb(123) }
Tests:
async
promises()
callback
callbacks((_) => {})