repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of github.com:poolifier/poolifier
[poolifier.git]
/
benchmarks
/
benchmarks-utils.js
diff --git
a/benchmarks/benchmarks-utils.js
b/benchmarks/benchmarks-utils.js
index c04162e1a617d704708b56496040640947e22171..6eed668bd16b33d9f7f6598ed2a680285d884e36 100644
(file)
--- a/
benchmarks/benchmarks-utils.js
+++ b/
benchmarks/benchmarks-utils.js
@@
-7,7
+7,7
@@
async function runPoolifierTest (pool, { tasks, workerData }) {
pool
.execute(workerData)
.then(() => {
pool
.execute(workerData)
.then(() => {
- executions++
+ ++executions
if (executions === tasks) {
return resolve({ ok: 1 })
}
if (executions === tasks) {
return resolve({ ok: 1 })
}
@@
-62,9
+62,8
@@
function fibonacci (n) {
function factorial (n) {
if (n === 0) {
return 1
function factorial (n) {
if (n === 0) {
return 1
- } else {
- return factorial(n - 1) * n
}
}
+ return factorial(n - 1) * n
}
function executeWorkerFunction (data) {
}
function executeWorkerFunction (data) {