1 const Benchmark
= require('benny')
7 return new Promise(resolve
=> {
15 async
function asyncFunction () {
16 return await
promise()
21 Benchmark
.add('await promise', async () => {
24 Benchmark
.add('promise', () => {
30 file
: 'promise-handling',
35 file
: 'promise-handling',
40 file
: 'promise-handling',