docs: update benchmark vs. external pools
[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 })