1 import { bench, group, run } from 'tatami-ng'
6 async function asyncFunction () {
7 await new Promise(resolve => {
12 group('Promise handling', () => {
13 bench('await promise', async () => {
15 return await asyncFunction()
20 bench('promise with then().catch()', () => {
27 bench('voided promise', () => {
28 // eslint-disable-next-line no-void
31 bench('mishandled promise', () => {