repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid to on-by-one in worker function. (#285)
[poolifier.git]
/
benchmarks
/
versus-external-pools
/
functions
/
function-to-bench.js
diff --git
a/benchmarks/versus-external-pools/functions/function-to-bench.js
b/benchmarks/versus-external-pools/functions/function-to-bench.js
index 48a0fc78c8851f6c31c3e87d7d7d35eb3b6e0dc2..565f811219cbccea2cdb1991b1c8a9a337fa9618 100644
(file)
--- a/
benchmarks/versus-external-pools/functions/function-to-bench.js
+++ b/
benchmarks/versus-external-pools/functions/function-to-bench.js
@@
-1,7
+1,7
@@
module.exports = function (data) {
if (data.taskType === 'CPU_INTENSIVE') {
// CPU intensive task
module.exports = function (data) {
if (data.taskType === 'CPU_INTENSIVE') {
// CPU intensive task
- for (let i = 0; i <
=
5000; i++) {
+ for (let i = 0; i < 5000; i++) {
const o = {
a: i
}
const o = {
a: i
}