Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
then vs. async-await
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0
Browser:
Firefox 134
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
then
539524.6 Ops/sec
async-await
279005.9 Ops/sec
Tests:
then
function one() { return new Promise((resolve, reject) => { return resolve(`hi`); }); } function khw() { one().then((message) => console.log(message)); } khw();
async-await
function one() { return new Promise((resolve, reject) => { return resolve(`hi`); }); } async function khw() { console.log(await one()); } khw();