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' into worker-info
[poolifier.git]
/
benchmarks
/
internal
/
thread-worker.mjs
diff --git
a/benchmarks/internal/thread-worker.mjs
b/benchmarks/internal/thread-worker.mjs
index 4f66a89a7356c49813c27ff2150839be5ad0356d..c1cd01414830aa9eaaa88bd2d7a0a3d0a4854ab4 100644
(file)
--- a/
benchmarks/internal/thread-worker.mjs
+++ b/
benchmarks/internal/thread-worker.mjs
@@
-1,11
+1,11
@@
import { isMainThread } from 'worker_threads'
import { ThreadWorker } from '../../lib/index.mjs'
import { isMainThread } from 'worker_threads'
import { ThreadWorker } from '../../lib/index.mjs'
-import { executeWorkerFunction } from '../benchmarks-utils.js'
-import { WorkerFunctions } from '../benchmarks-types.js'
+import { executeWorkerFunction } from '../benchmarks-utils.
m
js'
+import { WorkerFunctions } from '../benchmarks-types.
m
js'
const debug = false
const debug = false
-function
you
rFunction (data) {
+function
worke
rFunction (data) {
data = data || {}
data.function = data.function || WorkerFunctions.jsonIntegerSerialization
executeWorkerFunction(data)
data = data || {}
data.function = data.function || WorkerFunctions.jsonIntegerSerialization
executeWorkerFunction(data)
@@
-13,4
+13,4
@@
function yourFunction (data) {
return { ok: 1 }
}
return { ok: 1 }
}
-export default new ThreadWorker(
you
rFunction)
+export default new ThreadWorker(
worke
rFunction)