UNPKG

iso-bench

Version:

Small benchmark library focused in avoiding optimization/deoptimization pollution between tests by isolating them.

14 lines (13 loc) 382 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WorkerSetup = void 0; let WorkerSetup = null; exports.WorkerSetup = WorkerSetup; if (process.env["ISO_BENCH_SETUP"]) { try { exports.WorkerSetup = WorkerSetup = JSON.parse(process.env["ISO_BENCH_SETUP"]); } catch (e) { exports.WorkerSetup = WorkerSetup = null; } }