Add voided promise to benchmark
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 1 Jan 2023 11:38:21 +0000 (12:38 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 1 Jan 2023 11:38:21 +0000 (12:38 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
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()
   }),