+'use strict'
/**
* The worker function to execute during pools benchmarks.
* NOTE: This function requires to be self-contained, thread-safe and re-entrant.
* @param {*} data The worker data.
* @returns {*} The result.
*/
-function functionToBench (data) {
+module.exports = function functionToBench (data) {
const crypto = require('crypto')
const fs = require('fs')
const TaskTypes = {
throw new Error(`Unknown task type: ${data.taskType}`)
}
}
-
-module.exports = functionToBench