repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Documenation and improvements
[poolifier.git]
/
tests
/
testWorker.js
diff --git
a/tests/testWorker.js
b/tests/testWorker.js
index d69230453564f04e0f36b0ea81cc3bf84d3f4b51..60e41d7941150df5e72bcebf0e75416e00690fb6 100644
(file)
--- a/
tests/testWorker.js
+++ b/
tests/testWorker.js
@@
-5,14
+5,14
@@
const { isMainThread } = require('worker_threads')
class MyWorker extends ThreadWorker {
constructor () {
super((data) => {
class MyWorker extends ThreadWorker {
constructor () {
super((data) => {
- for (let i = 0; i <=
10
0; i++) {
+ for (let i = 0; i <=
5
0; i++) {
const o = {
a: i
}
JSON.stringify(o)
}
return isMainThread
const o = {
a: i
}
JSON.stringify(o)
}
return isMainThread
- }, { maxInactiveTime:
10
00 })
+ }, { maxInactiveTime:
5
00 })
}
}
}
}