1 import Benchmark from 'benny'
6 async function asyncFunction () {
7 await new Promise(resolve => {
14 Benchmark.add('await promise', async () => {
16 return await asyncFunction()
21 Benchmark.add('promise with then().catch()', () => {
30 Benchmark.add('voided promise', () => {
31 // eslint-disable-next-line no-void
34 Benchmark.add('mishandled promise', () => {
40 file: 'promise-handling',
45 file: 'promise-handling',
50 file: 'promise-handling',