Add voided promise to benchmark
[benchmarks-js.git] / promise-handling.js
index 0d0b3671b171749b9792c7254d11887d1387469c..4e83dc54268f278c6d5de9d2dd29b96cf873a4d3 100644 (file)
@@ -34,6 +34,10 @@ Benchmark.suite(
         console.error(e)
       })
   }),
+  Benchmark.add('voided promise', () => {
+    // eslint-disable-next-line no-void
+    void asyncFunction()
+  }),
   Benchmark.add('mishandled promise', () => {
     asyncFunction()
   }),