// Testing parallelism of mapReduce in V8 // Our server and client need to be running V8 and the host we are running on needs at least two // cores. Update this if you are testing more than three threads in parallel. if (/V8/.test(interpreterVersion()) && db.runCommand({buildinfo: 1}).javascriptEngine == "V8" && db.hostInfo().system.numCores >= 2) { // function timeSingleThread // Description: Gathers data about how long it takes to run a given job // Args: job - job to run // tid - thread id passed as an argument to the job, default 0 // Returns: { threadStart :