repositories
/
benchmarks-js.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e1fbc0
)
Add voided promise to benchmark
author
Jérôme Benoit
<jerome.benoit@sap.com>
Sun, 1 Jan 2023 11:38:21 +0000
(12:38 +0100)
committer
Jé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
patch
|
blob
|
blame
|
history
diff --git
a/promise-handling.js
b/promise-handling.js
index 0d0b3671b171749b9792c7254d11887d1387469c..4e83dc54268f278c6d5de9d2dd29b96cf873a4d3 100644
(file)
--- 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()
}),