rdtsc
Version:
The most high resolution cross platform timing in NodeJs that use processor command RDTSC. Calculate performance with accuracy +/- 4 processor cycles.
133 lines (132 loc) • 4.59 kB
JSON
{
"name": "rdtsc",
"version": "5.0.7",
"description": "The most high resolution cross platform timing in NodeJs that use processor command RDTSC. Calculate performance with accuracy +/- 4 processor cycles.",
"main": "dist/common/index.cjs",
"module": "dist/common/index.mjs",
"types": "dist/common/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/common/index.d.ts",
"import": "./dist/common/index.mjs",
"require": "./dist/common/index.cjs",
"browser": {
"types": "./dist/browser/index.d.ts",
"import": "./dist/browser/index.mjs",
"require": "./dist/browser/index.cjs"
},
"node": {
"types": "./dist/node/index.d.ts",
"import": "./dist/node/index.mjs",
"require": "./dist/node/index.cjs"
}
},
"./browser": {
"types": "./dist/browser/index.d.ts",
"import": "./dist/browser/index.mjs",
"require": "./dist/browser/index.cjs"
},
"./node": {
"types": "./dist/node/index.d.ts",
"import": "./dist/node/index.mjs",
"require": "./dist/node/index.cjs"
}
},
"typesVersions": {
"*": {
"browser": ["./dist/browser/index.d.ts"],
"node": ["./dist/node/index.d.ts"]
}
},
"engines": {
"node": ">=20.0.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/NikolayMakhonin/nodejs-rdtsc.git"
},
"keywords": [
"native",
"high-resolution",
"performance",
"timing",
"rdtsc",
"benchmark",
"processor-cycles",
"tick",
"stopwatch",
"duration",
"thread-priority",
"process-priority",
"cross-platform"
],
"author": {
"name": "Nikolay Makhonin",
"url": "https://github.com/NikolayMakhonin/"
},
"license": "Unlimited Free",
"bugs": {
"url": "https://github.com/NikolayMakhonin/nodejs-rdtsc/issues"
},
"homepage": "https://github.com/NikolayMakhonin/nodejs-rdtsc",
"publishConfig": {
"access": "public"
},
"scripts": {
"// install": "cmake-js compile",
"install": "npm run build:gyp",
"_prepublishOnly": "pnpm run audit && pnpm run build && pnpm run lint && pnpm run test:mocha:ci",
"audit": "pnpm audit --prod",
"lint": "eslint ./**/*.{js,cjs,mjs,ts,tsx}",
"lint:fix": "eslint --fix ./**/*.{js,cjs,mjs,ts,tsx}",
"lint:wizard": "eslint-nibble --cache --multi ./**/*.{js,cjs,mjs,ts,tsx}",
"build:js": "rimraf dist && cpy \"**/assets/**\" \"**/*.{js,cjs,mjs}\" \"../dist/\" --parents --cwd=src && rollup -c",
"build:gyp": "node-gyp configure && node-gyp build",
"build": "rimraf dist build && pnpm run build:gyp && pnpm run build:js",
"coverage:merge": "rimraf tmp/coverage/{all,merge} && cp-flat \"tmp/coverage/*/json/**/*.json\" \"tmp/coverage/merge\" && nyc report -r lcov --report-dir tmp/coverage/all/lcov --temp-dir \"tmp/coverage/merge/\"",
"coverage:check": "pnpm run coverage:merge && nyc check-coverage --report-dir tmp/coverage/all/lcov --lines 50 --functions 50 --branches 50 --statements 50",
"test:mocha": "mocha ./src/**/*.test.*",
"test:mocha:coverage": "rimraf tmp/coverage/mocha && nyc --all mocha ./src/**/*.test.*",
"test:mocha:watch": "mocha --watch ./src/**/*.test.*",
"test:mocha:ci": "rimraf tmp/coverage/mocha && mocha ./{src,dist}/**/*.test.*",
"coveralls": "pnpm run coverage:check && nyc report --reporter=text-lcov --temp-dir \"tmp/coverage/merge/\" | coveralls"
},
"devDependencies": {
"@flemist/copy-glob-flat": "0.0.5",
"@flemist/test-utils": "0.0.7",
"@flemist/test-variants": "0.0.14",
"@rollup/plugin-alias": "3.1.9",
"@rollup/plugin-commonjs": "=21.1.0",
"@rollup/plugin-json": "4.1.0",
"@rollup/plugin-node-resolve": "13.3.0",
"@rollup/plugin-replace": "4.0.0",
"@rollup/plugin-typescript": "8.3.3",
"@rollup/pluginutils": "4.2.1",
"@types/assert": "1.5.6",
"@types/fs-extra": "9.0.13",
"@types/mocha": "9.1.1",
"@types/node": "18.0.0",
"@zerollup/ts-transform-paths": "1.7.18",
"cmake-js": "7.3.0",
"cpy-cli": "=3.1.1",
"eslint": "8.18.0",
"eslint-config-pro": "3.0.15",
"fs-extra": "10.1.0",
"globby": "=11.1.0",
"mocha": "9.2.2",
"node-addon-api": "8.1.0",
"nodemon": "2.0.16",
"nyc": "15.1.0",
"rimraf": "3.0.2",
"rollup": "2.75.7",
"rollup-plugin-delete": "2.0.0",
"rollup-plugin-multi-input": "1.3.1",
"ts-node": "=10.8.0",
"tsconfig-paths": "4.0.0",
"typescript": "4.7.4"
},
"dependencies": {
"tslib": "2.4.0"
}
}