/**
*
*/
-async function promise () {
- return await new Promise(resolve => {
+async function asyncFunction () {
+ await new Promise(resolve => {
resolve()
})
}
-/**
- *
- */
-async function asyncFunction () {
- return await promise()
-}
-
Benchmark.suite(
'Promise handling',
Benchmark.add('await promise', async () => {