X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=promise-handling.js;h=4e83dc54268f278c6d5de9d2dd29b96cf873a4d3;hb=b3b242bed0253f6471f1718c3baf0a91f4952f39;hp=0d0b3671b171749b9792c7254d11887d1387469c;hpb=57f622172596f25733fe81c176f8935752d2aab9;p=benchmarks-js.git 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() }),