From: Jérôme Benoit Date: Sun, 1 Jan 2023 11:38:21 +0000 (+0100) Subject: Add voided promise to benchmark X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1f89b386246c025870ec6ba94eeef4ff049acc10;p=benchmarks-js.git Add voided promise to benchmark Signed-off-by: Jérôme Benoit --- diff --git a/promise-handling.js b/promise-handling.js index 0d0b367..4e83dc5 100644 --- a/promise-handling.js +++ b/promise-handling.js @@ -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() }),