From 1f89b386246c025870ec6ba94eeef4ff049acc10 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 1 Jan 2023 12:38:21 +0100 Subject: [PATCH] Add voided promise to benchmark MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- promise-handling.js | 4 ++++ 1 file changed, 4 insertions(+) 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() }), -- 2.34.1