X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Fversus-external-pools%2Ffunctions%2Ffunction-to-bench.js;fp=benchmarks%2Fversus-external-pools%2Ffunctions%2Ffunction-to-bench.js;h=ecc39a1c92be59327bd6b7d9d141c8bbf485b4be;hb=440dd7d77da6e027b3b9543504addcf805f76c1d;hp=5c63c794df69f26a61c12c8c04e8e3a18b0805ab;hpb=dbca3be954130834defeb4084096272ecf660c5c;p=poolifier.git diff --git a/benchmarks/versus-external-pools/functions/function-to-bench.js b/benchmarks/versus-external-pools/functions/function-to-bench.js index 5c63c794..ecc39a1c 100644 --- a/benchmarks/versus-external-pools/functions/function-to-bench.js +++ b/benchmarks/versus-external-pools/functions/function-to-bench.js @@ -5,7 +5,7 @@ * @param {*} data The worker data. * @returns {*} The result. */ -module.exports = function functionToBench (data) { +const functionToBench = data => { const crypto = require('crypto') const fs = require('fs') const TaskTypes = { @@ -48,3 +48,5 @@ module.exports = function functionToBench (data) { throw new Error(`Unknown task type: ${data.taskType}`) } } + +module.exports = functionToBench