function getNodePerformance() {
    try {
        var perfHooks = dynamicRequire(module, 'perf_hooks');
        return perfHooks.performance;
    }
    catch (_) {
        return undefined;
    }
}
Returns the native Performance API implementation from Node.js. Returns undefined in old Node.js versions that don't
implement the API.