repositories
/
poolifier.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
81f2c58e91dfd7de3bd146f9b5095edcd0efbc5b
[poolifier.git]
/
benchmarks
/
versus-external-pools
/
workers
/
threadjs
/
function-to-bench-worker.js
1
'use strict'
2
const
{
expose
} =
require
(
"threads/worker"
)
3
const
functionToBench
=
require
(
'../../functions/function-to-bench'
)
4
5
expose
({
6
exposedFunction
(
data
) {
7
return
functionToBench
(
data
)
8
}
9
})