repositories
/
poolifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d066251
)
Benchmark: remove unneeded then at promise handling (#136)
author
Jérôme Benoit
<jerome.benoit@sap.com>
Sat, 13 Feb 2021 10:15:30 +0000
(11:15 +0100)
committer
GitHub
<noreply@github.com>
Sat, 13 Feb 2021 10:15:30 +0000
(11:15 +0100)
benchmarks/myBench.js
patch
|
blob
|
blame
|
history
diff --git
a/benchmarks/myBench.js
b/benchmarks/myBench.js
index 24ccba53aee46614ed6128efe74b8637f9e010af..a69de002aab4c6840e03601b34546e3b54c29056 100644
(file)
--- a/
benchmarks/myBench.js
+++ b/
benchmarks/myBench.js
@@
-110,10
+110,6
@@
async function workerpoolTest () {
.exec('yourFunction', [workerData])
.then(res => {
executions++
- return null
- })
- .catch(err => console.error(err))
- .then(res => {
if (tasks === executions) {
return console.log(
`workerpool take ${