{"_id":"@apeleghq/benchmark","_rev":"6-b8978593b43cf295392614a0cf136c21","name":"@apeleghq/benchmark","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.0":{"name":"@apeleghq/benchmark","version":"1.0.0","keywords":["benchmark","benchmarking","performance","statistics","paired-t-test","confidence-interval","profiling","timing","measurement","statistical-analysis"],"author":{"name":"Apeleg Limited"},"license":"Apache-2.0 WITH LLVM-exception","_id":"@apeleghq/benchmark@1.0.0","maintainers":[{"name":"er-ci-bot","email":"npmjs.com+er-ci-bot+fd8b22b478b6fac7@apeleg.com"},{"name":"corrideat","email":"3857362+corrideat@users.noreply.github.com"}],"homepage":"https://github.com/ApelegHQ/ts-benchmark#readme","bugs":{"url":"https://github.com/ApelegHQ/ts-benchmark/issues"},"dist":{"shasum":"5f8f24e1035107fd52e4901bf936a90f014faf34","tarball":"https://registry.npmjs.org/@apeleghq/benchmark/-/benchmark-1.0.0.tgz","fileCount":43,"integrity":"sha512-yHjyP3PQnkNoE97WpSE0aBZIGi1zeW4zFgdNOAuSpWzj7q/HCW3dEciOW3zLuXrc1vuHb5z61Z1+7oslqvCaGQ==","signatures":[{"sig":"MEYCIQD1YFMAiCfZoX5nSpP9dK0nlAzsTblf27O5eZFe+o4RNQIhAK1W83Db4WPueimJKyL/RAiW8nG7RbeUXT1iovKbZYz8","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@apeleghq%2fbenchmark@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":142256},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.cts","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./stats":{"import":{"types":"./dist/stats.d.ts","default":"./dist/stats.mjs"},"require":{"types":"./dist/stats.d.cts","default":"./dist/stats.cjs"}},"./reporters/xunit":{"import":{"types":"./dist/reporters/xunit.d.ts","default":"./dist/xunit.mjs"},"require":{"types":"./dist/reporters/reporters.d.cts","default":"./dist/xunit.cjs"}},"./reporters/simple":{"import":{"types":"./dist/reporters/simple.d.ts","default":"./dist/simple.mjs"},"require":{"types":"./dist/reporters/simple.d.cts","default":"./dist/simple.cjs"}},"./reporters/advanced":{"import":{"types":"./dist/reporters/advanced.d.ts","default":"./dist/advanced.mjs"},"require":{"types":"./dist/reporters/advanced.d.cts","default":"./dist/advanced.cjs"}}},"gitHead":"df7240b3d8751eb3ef354557c937f52698166e8e","scripts":{"lint":"eslint . --ext .js,.jsx,.ts,.tsx,.json","test":"node --import ./loader.mjs --test test/index.ts","build":"tsc --emitDeclarationOnly --declarationMap --declaration && node --import ./loader.mjs esbuild.ts","prepack":"npm run build","version":"npm run lint && git add -A src","lint:fix":"eslint . --ext .js,.jsx,.ts,.tsx,.json --fix","preversion":"npm run lint","postversion":"git push && git push --tags","prepublishOnly":"npm test && npm run lint"},"_npmUser":{"name":"er-ci-bot","email":"npmjs.com+er-ci-bot+fd8b22b478b6fac7@apeleg.com"},"repository":{"url":"git+https://github.com/ApelegHQ/ts-benchmark.git","type":"git"},"_npmVersion":"11.9.0","description":"A statistically rigorous benchmarking library with paired t-tests, baseline correction, and confidence intervals","directories":{},"_nodeVersion":"24.14.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"10.0.2","esbuild":"0.27.3","globals":"17.3.0","ts-node":"10.9.2","prettier":"3.8.1","@eslint/js":"10.0.1","picocolors":"1.1.1","typescript":"5.9.3","@types/node":"25.3.3","@eslint/eslintrc":"3.3.4","eslint-config-prettier":"10.1.8","eslint-plugin-prettier":"5.5.5","@typescript-eslint/parser":"8.56.1","@typescript-eslint/eslint-plugin":"8.56.1"},"optionalDependencies":{"picocolors":"^1.1.1"},"_npmOperationalInternal":{"tmp":"tmp/benchmark_1.0.0_1772359730708_0.9256568527056723","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@apeleghq/benchmark","version":"1.0.2","keywords":["benchmark","benchmarking","performance","statistics","paired-t-test","confidence-interval","profiling","timing","measurement","statistical-analysis"],"author":{"name":"Apeleg Limited"},"license":"Apache-2.0 WITH LLVM-exception","_id":"@apeleghq/benchmark@1.0.2","maintainers":[{"name":"er-ci-bot","email":"npmjs.com+er-ci-bot+fd8b22b478b6fac7@apeleg.com"},{"name":"corrideat","email":"3857362+corrideat@users.noreply.github.com"}],"homepage":"https://github.com/ApelegHQ/ts-benchmark#readme","bugs":{"url":"https://github.com/ApelegHQ/ts-benchmark/issues"},"dist":{"shasum":"809488a99896d3f14e176cd6580b089ff5264369","tarball":"https://registry.npmjs.org/@apeleghq/benchmark/-/benchmark-1.0.2.tgz","fileCount":40,"integrity":"sha512-gz4R4onCQKehm39ydRDuEtOili+DVytJmKlZ7wUH57V2YfobpIyvlC7mwb9EMxnmpcyLVxlKCee8qTheCLVJsg==","signatures":[{"sig":"MEUCIQCbPXYaqp1VaKvgoGrk6v41nBZz6upUysjhh+NiRMQm5QIgCi5TKHOirT1OteA4DVf31lQQp59pG3eEdYyGkJ4DAlg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@apeleghq%2fbenchmark@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":145773},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.cts","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./stats":{"import":{"types":"./dist/stats.d.ts","default":"./dist/stats.mjs"},"require":{"types":"./dist/stats.d.cts","default":"./dist/stats.cjs"}},"./reporters/xunit":{"import":{"types":"./dist/reporters/xunit.d.ts","default":"./dist/xunit.mjs"},"require":{"types":"./dist/reporters/reporters.d.cts","default":"./dist/xunit.cjs"}},"./reporters/simple":{"import":{"types":"./dist/reporters/simple.d.ts","default":"./dist/simple.mjs"},"require":{"types":"./dist/reporters/simple.d.cts","default":"./dist/simple.cjs"}},"./reporters/advanced":{"import":{"types":"./dist/reporters/advanced.d.ts","default":"./dist/advanced.mjs"},"require":{"types":"./dist/reporters/advanced.d.cts","default":"./dist/advanced.cjs"}}},"gitHead":"b8b3beb1713a4633f5bb3cdae4196cb07dc5eaf0","scripts":{"lint":"eslint . --ext .js,.jsx,.ts,.tsx,.json","test":"node --import ./loader.mjs --test test/index.ts","build":"tsc --emitDeclarationOnly --declarationMap --declaration && node --import ./loader.mjs esbuild.ts","prepack":"npm run build","version":"npm run lint && git add -A src","lint:fix":"eslint . --ext .js,.jsx,.ts,.tsx,.json --fix","preversion":"npm run lint","postversion":"git push && git push --tags","prepublishOnly":"npm test && npm run lint"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1b449ea9-6cfe-4780-9ca8-96be4c44d4ef"}},"repository":{"url":"git+https://github.com/ApelegHQ/ts-benchmark.git","type":"git"},"_npmVersion":"11.9.0","description":"A statistically rigorous benchmarking library with paired t-tests, baseline correction, and confidence intervals","directories":{},"_nodeVersion":"24.14.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"10.0.2","esbuild":"0.27.3","globals":"17.3.0","ts-node":"10.9.2","prettier":"3.8.1","@eslint/js":"10.0.1","picocolors":"1.1.1","typescript":"5.9.3","@types/node":"25.3.3","@eslint/eslintrc":"3.3.4","eslint-config-prettier":"10.1.8","eslint-plugin-prettier":"5.5.5","@typescript-eslint/parser":"8.56.1","@typescript-eslint/eslint-plugin":"8.56.1"},"optionalDependencies":{"picocolors":"^1.1.1"},"_npmOperationalInternal":{"tmp":"tmp/benchmark_1.0.2_1772409457550_0.4592258152676605","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@apeleghq/benchmark","version":"1.0.3","keywords":["benchmark","benchmarking","performance","statistics","paired-t-test","confidence-interval","profiling","timing","measurement","statistical-analysis"],"author":{"name":"Apeleg Limited"},"license":"Apache-2.0 WITH LLVM-exception","_id":"@apeleghq/benchmark@1.0.3","maintainers":[{"name":"er-ci-bot","email":"npmjs.com+er-ci-bot+fd8b22b478b6fac7@apeleg.com"},{"name":"corrideat","email":"3857362+corrideat@users.noreply.github.com"}],"homepage":"https://github.com/ApelegHQ/ts-benchmark#readme","bugs":{"url":"https://github.com/ApelegHQ/ts-benchmark/issues"},"dist":{"shasum":"508f04bc50cdfb53f6802705f10326d2df472eb7","tarball":"https://registry.npmjs.org/@apeleghq/benchmark/-/benchmark-1.0.3.tgz","fileCount":48,"integrity":"sha512-Ib6h5E6JOH9ELbP7E+Dr8suPe9vdjcMVMtN7vKYtXT2EQKmzsktxpKTPFFpa6dbjD34Hs//Gc9fM8wf7XhA2LA==","signatures":[{"sig":"MEYCIQCxPAI68O/1EMvxNB/9Le/Oy9SbiYhsZdswx4ZBWwCO2gIhALG0o2CVUGwv3aOnmL1RRBK9ILWj6noiRHkXcc8PjxBq","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@apeleghq%2fbenchmark@1.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":150494},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.cts","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./stats":{"import":{"types":"./dist/stats.d.ts","default":"./dist/stats.mjs"},"require":{"types":"./dist/stats.d.cts","default":"./dist/stats.cjs"}},"./types":{"import":{"types":"./dist/types.d.ts","default":"./dist/types.mjs"},"require":{"types":"./dist/types.d.cts","default":"./dist/types.cjs"}},"./reporters/xunit":{"import":{"types":"./dist/reporters/xunit.d.ts","default":"./dist/xunit.mjs"},"require":{"types":"./dist/reporters/reporters.d.cts","default":"./dist/xunit.cjs"}},"./reporters/simple":{"import":{"types":"./dist/reporters/simple.d.ts","default":"./dist/simple.mjs"},"require":{"types":"./dist/reporters/simple.d.cts","default":"./dist/simple.cjs"}},"./reporters/advanced":{"import":{"types":"./dist/reporters/advanced.d.ts","default":"./dist/advanced.mjs"},"require":{"types":"./dist/reporters/advanced.d.cts","default":"./dist/advanced.cjs"}}},"gitHead":"3a2c32bacc372f8436e2654072845ae4865d3796","scripts":{"lint":"eslint . --ext .js,.jsx,.ts,.tsx,.json","test":"node --import ./loader.mjs --test test/index.ts","build":"tsc --emitDeclarationOnly --declarationMap --declaration && node --import ./loader.mjs esbuild.ts","prepack":"npm run build","version":"npm run lint && git add -A src","lint:fix":"eslint . --ext .js,.jsx,.ts,.tsx,.json --fix","preversion":"npm run lint","postversion":"git push && git push --tags","prepublishOnly":"npm test && npm run lint"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1b449ea9-6cfe-4780-9ca8-96be4c44d4ef"}},"repository":{"url":"git+https://github.com/ApelegHQ/ts-benchmark.git","type":"git"},"_npmVersion":"11.9.0","description":"A statistically rigorous benchmarking library with paired t-tests, baseline correction, and confidence intervals","directories":{},"_nodeVersion":"24.14.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"10.0.2","esbuild":"0.27.3","globals":"17.3.0","ts-node":"10.9.2","prettier":"3.8.1","@eslint/js":"10.0.1","picocolors":"1.1.1","typescript":"5.9.3","@types/node":"25.3.3","@eslint/eslintrc":"3.3.4","eslint-config-prettier":"10.1.8","eslint-plugin-prettier":"5.5.5","@typescript-eslint/parser":"8.56.1","@typescript-eslint/eslint-plugin":"8.56.1"},"optionalDependencies":{"picocolors":"^1.1.1"},"_npmOperationalInternal":{"tmp":"tmp/benchmark_1.0.3_1772558479921_0.888121754122843","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@apeleghq/benchmark","version":"1.0.4","keywords":["benchmark","benchmarking","performance","statistics","paired-t-test","confidence-interval","profiling","timing","measurement","statistical-analysis"],"author":{"name":"Apeleg Limited"},"license":"Apache-2.0 WITH LLVM-exception","_id":"@apeleghq/benchmark@1.0.4","maintainers":[{"name":"er-ci-bot","email":"npmjs.com+er-ci-bot+fd8b22b478b6fac7@apeleg.com"},{"name":"corrideat","email":"3857362+corrideat@users.noreply.github.com"}],"homepage":"https://github.com/ApelegHQ/ts-benchmark#readme","bugs":{"url":"https://github.com/ApelegHQ/ts-benchmark/issues"},"dist":{"shasum":"f573b10d43f02624f03b11aeba60472f1e87fe71","tarball":"https://registry.npmjs.org/@apeleghq/benchmark/-/benchmark-1.0.4.tgz","fileCount":48,"integrity":"sha512-sMPhm/wED7zYlxWOJnd43xACs8v39CSBnaxGrGDAvdvrBKNr8Q3t7rkB6zHEuzvwh1ULn4Ij8gYf83d5znFtjQ==","signatures":[{"sig":"MEQCIF3HN57s+X94gKNxQVpEn9a6tE69hGSDt9JRSMTyZjNQAiBzNwJvGXMNnVsE+EBrv5q2GbTALWA8fMip620PHHyLVA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@apeleghq%2fbenchmark@1.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":150400},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.cts","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./stats":{"import":{"types":"./dist/stats.d.ts","default":"./dist/stats.mjs"},"require":{"types":"./dist/stats.d.cts","default":"./dist/stats.cjs"}},"./types":{"import":{"types":"./dist/types.d.ts","default":"./dist/types.mjs"},"require":{"types":"./dist/types.d.cts","default":"./dist/types.cjs"}},"./reporters/xunit":{"import":{"types":"./dist/reporters/xunit.d.ts","default":"./dist/xunit.mjs"},"require":{"types":"./dist/reporters/reporters.d.cts","default":"./dist/xunit.cjs"}},"./reporters/simple":{"import":{"types":"./dist/reporters/simple.d.ts","default":"./dist/simple.mjs"},"require":{"types":"./dist/reporters/simple.d.cts","default":"./dist/simple.cjs"}},"./reporters/advanced":{"import":{"types":"./dist/reporters/advanced.d.ts","default":"./dist/advanced.mjs"},"require":{"types":"./dist/reporters/advanced.d.cts","default":"./dist/advanced.cjs"}}},"gitHead":"fb48d3ba0979b7ca974ae6af6d558acb11c63e93","scripts":{"lint":"eslint . --ext .js,.jsx,.ts,.tsx,.json","test":"node --import ./loader.mjs --test test/index.ts","build":"tsc --emitDeclarationOnly --declarationMap --declaration && node --import ./loader.mjs esbuild.ts","prepack":"npm run build","version":"npm run lint && git add -A src","lint:fix":"eslint . --ext .js,.jsx,.ts,.tsx,.json --fix","preversion":"npm run lint","postversion":"git push && git push --tags","prepublishOnly":"npm test && npm run lint"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1b449ea9-6cfe-4780-9ca8-96be4c44d4ef"}},"repository":{"url":"git+https://github.com/ApelegHQ/ts-benchmark.git","type":"git"},"_npmVersion":"11.9.0","description":"A statistically rigorous benchmarking library with paired t-tests, baseline correction, and confidence intervals","directories":{},"_nodeVersion":"24.14.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"10.0.2","esbuild":"0.27.3","globals":"17.3.0","ts-node":"10.9.2","prettier":"3.8.1","@eslint/js":"10.0.1","picocolors":"1.1.1","typescript":"5.9.3","@types/node":"25.3.3","@eslint/eslintrc":"3.3.4","eslint-config-prettier":"10.1.8","eslint-plugin-prettier":"5.5.5","@typescript-eslint/parser":"8.56.1","@typescript-eslint/eslint-plugin":"8.56.1"},"optionalDependencies":{"picocolors":"^1.1.1"},"_npmOperationalInternal":{"tmp":"tmp/benchmark_1.0.4_1772837192305_0.29100927459655446","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@apeleghq/benchmark","version":"1.0.5","keywords":["benchmark","benchmarking","performance","statistics","paired-t-test","confidence-interval","profiling","timing","measurement","statistical-analysis"],"author":{"name":"Apeleg Limited"},"license":"Apache-2.0 WITH LLVM-exception","_id":"@apeleghq/benchmark@1.0.5","maintainers":[{"name":"er-ci-bot","email":"npmjs.com+er-ci-bot+fd8b22b478b6fac7@apeleg.com"},{"name":"corrideat","email":"3857362+corrideat@users.noreply.github.com"}],"homepage":"https://github.com/ApelegHQ/ts-benchmark#readme","bugs":{"url":"https://github.com/ApelegHQ/ts-benchmark/issues"},"dist":{"shasum":"5023004f1b1bdadd082a834344a888f47a119466","tarball":"https://registry.npmjs.org/@apeleghq/benchmark/-/benchmark-1.0.5.tgz","fileCount":48,"integrity":"sha512-NnNPsblTCdWyPqmJ8+jxpQc9xQKG+XW2kacyurndKm/9Iu3JLaBquDZ/TUFHgoY49Uk3mNI9iifN8wbhow8UpQ==","signatures":[{"sig":"MEUCIDGn0egloKaLN9dOczowGc4kzQenIpFD93THFM569rcZAiEAqAECSHbpTh43gjNRcSiXYt43HXrqaUQ2rIXPs7vlAzU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@apeleghq%2fbenchmark@1.0.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":167625},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.cts","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./stats":{"import":{"types":"./dist/stats.d.ts","default":"./dist/stats.mjs"},"require":{"types":"./dist/stats.d.cts","default":"./dist/stats.cjs"}},"./types":{"import":{"types":"./dist/types.d.ts","default":"./dist/types.mjs"},"require":{"types":"./dist/types.d.cts","default":"./dist/types.cjs"}},"./reporters/xunit":{"import":{"types":"./dist/reporters/xunit.d.ts","default":"./dist/xunit.mjs"},"require":{"types":"./dist/reporters/reporters.d.cts","default":"./dist/xunit.cjs"}},"./reporters/simple":{"import":{"types":"./dist/reporters/simple.d.ts","default":"./dist/simple.mjs"},"require":{"types":"./dist/reporters/simple.d.cts","default":"./dist/simple.cjs"}},"./reporters/advanced":{"import":{"types":"./dist/reporters/advanced.d.ts","default":"./dist/advanced.mjs"},"require":{"types":"./dist/reporters/advanced.d.cts","default":"./dist/advanced.cjs"}}},"gitHead":"a066b8fe95dc77b3f5389b5875621300d9538004","scripts":{"lint":"eslint . --ext .js,.jsx,.ts,.tsx,.json","test":"node --import ./loader.mjs --test test/index.ts","build":"tsc --emitDeclarationOnly --declarationMap --declaration && node --import ./loader.mjs esbuild.ts","prepack":"npm run build","version":"npm run lint && git add -A src","lint:fix":"eslint . --ext .js,.jsx,.ts,.tsx,.json --fix","preversion":"npm run lint","postversion":"git push && git push --tags","prepublishOnly":"npm test && npm run lint"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1b449ea9-6cfe-4780-9ca8-96be4c44d4ef"}},"repository":{"url":"git+https://github.com/ApelegHQ/ts-benchmark.git","type":"git"},"_npmVersion":"11.9.0","description":"A statistically rigorous benchmarking library with paired t-tests, baseline correction, and confidence intervals","directories":{},"_nodeVersion":"24.14.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"10.0.2","esbuild":"0.27.3","globals":"17.3.0","ts-node":"10.9.2","prettier":"3.8.1","@eslint/js":"10.0.1","picocolors":"1.1.1","typescript":"5.9.3","@types/node":"25.3.3","@eslint/eslintrc":"3.3.4","eslint-config-prettier":"10.1.8","eslint-plugin-prettier":"5.5.5","@typescript-eslint/parser":"8.56.1","@typescript-eslint/eslint-plugin":"8.56.1"},"optionalDependencies":{"picocolors":"^1.1.1"},"_npmOperationalInternal":{"tmp":"tmp/benchmark_1.0.5_1773069118846_0.8967957821524484","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@apeleghq/benchmark","version":"1.0.6","description":"A statistically rigorous benchmarking library with paired t-tests, baseline correction, and confidence intervals","type":"module","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.cts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./stats":{"import":{"types":"./dist/stats.d.ts","default":"./dist/stats.mjs"},"require":{"types":"./dist/stats.d.cts","default":"./dist/stats.cjs"}},"./types":{"import":{"types":"./dist/types.d.ts","default":"./dist/types.mjs"},"require":{"types":"./dist/types.d.cts","default":"./dist/types.cjs"}},"./reporters/advanced":{"import":{"types":"./dist/reporters/advanced.d.ts","default":"./dist/advanced.mjs"},"require":{"types":"./dist/reporters/advanced.d.cts","default":"./dist/advanced.cjs"}},"./reporters/simple":{"import":{"types":"./dist/reporters/simple.d.ts","default":"./dist/simple.mjs"},"require":{"types":"./dist/reporters/simple.d.cts","default":"./dist/simple.cjs"}},"./reporters/xunit":{"import":{"types":"./dist/reporters/xunit.d.ts","default":"./dist/xunit.mjs"},"require":{"types":"./dist/reporters/reporters.d.cts","default":"./dist/xunit.cjs"}}},"devDependencies":{"@eslint/eslintrc":"3.3.4","@eslint/js":"10.0.1","@types/node":"25.3.3","@typescript-eslint/eslint-plugin":"8.56.1","@typescript-eslint/parser":"8.56.1","esbuild":"0.27.3","eslint":"10.0.2","eslint-config-prettier":"10.1.8","eslint-plugin-prettier":"5.5.5","globals":"17.3.0","picocolors":"1.1.1","prettier":"3.8.1","ts-node":"10.9.2","typescript":"5.9.3"},"optionalDependencies":{"picocolors":"^1.1.1"},"repository":{"type":"git","url":"git+https://github.com/ApelegHQ/ts-benchmark.git"},"scripts":{"lint":"eslint . --ext .js,.jsx,.ts,.tsx,.json","lint:fix":"eslint . --ext .js,.jsx,.ts,.tsx,.json --fix","build":"tsc --emitDeclarationOnly --declarationMap --declaration && node --import ./loader.mjs esbuild.ts","test":"node --import ./loader.mjs --test test/index.ts","prepack":"npm run build","prepublishOnly":"npm test && npm run lint","preversion":"npm run lint","version":"npm run lint && git add -A src","postversion":"git push && git push --tags"},"author":{"name":"Apeleg Limited"},"license":"Apache-2.0 WITH LLVM-exception","keywords":["benchmark","benchmarking","performance","statistics","paired-t-test","confidence-interval","profiling","timing","measurement","statistical-analysis"],"gitHead":"1f513aee0ecb40efaf26a385439f319f66ddfa26","_id":"@apeleghq/benchmark@1.0.6","bugs":{"url":"https://github.com/ApelegHQ/ts-benchmark/issues"},"homepage":"https://github.com/ApelegHQ/ts-benchmark#readme","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-RK/BGX8OYXniYHX6yyeORoUmoHv+ez6WggSkJs0eec/wDaTK81oAUKIi4TNyIFNIFkilUsFxLy5Y4bFRiv+fVQ==","shasum":"4c9c0f0366d7768223565a394c8bcc0871057358","tarball":"https://registry.npmjs.org/@apeleghq/benchmark/-/benchmark-1.0.6.tgz","fileCount":48,"unpackedSize":169848,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@apeleghq%2fbenchmark@1.0.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD++0nBeK4HAaM7KsHNpOGdSTEOu14ixkD4sxpanm7EeAIhAIFhavkdkreKk2RBrDI2tmh0cJLnVZdiKvZhQw1rUjih"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1b449ea9-6cfe-4780-9ca8-96be4c44d4ef"}},"directories":{},"maintainers":[{"name":"er-ci-bot","email":"npmjs.com+er-ci-bot+fd8b22b478b6fac7@apeleg.com"},{"name":"corrideat","email":"3857362+corrideat@users.noreply.github.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/benchmark_1.0.6_1773398977779_0.3121085720270955"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-01T10:08:50.627Z","modified":"2026-03-13T10:49:38.207Z","1.0.0":"2026-03-01T10:08:50.881Z","1.0.2":"2026-03-01T23:57:37.706Z","1.0.3":"2026-03-03T17:21:20.079Z","1.0.4":"2026-03-06T22:46:32.475Z","1.0.5":"2026-03-09T15:11:58.984Z","1.0.6":"2026-03-13T10:49:37.914Z"},"bugs":{"url":"https://github.com/ApelegHQ/ts-benchmark/issues"},"author":{"name":"Apeleg Limited"},"license":"Apache-2.0 WITH LLVM-exception","homepage":"https://github.com/ApelegHQ/ts-benchmark#readme","keywords":["benchmark","benchmarking","performance","statistics","paired-t-test","confidence-interval","profiling","timing","measurement","statistical-analysis"],"repository":{"type":"git","url":"git+https://github.com/ApelegHQ/ts-benchmark.git"},"description":"A statistically rigorous benchmarking library with paired t-tests, baseline correction, and confidence intervals","maintainers":[{"name":"er-ci-bot","email":"npmjs.com+er-ci-bot+fd8b22b478b6fac7@apeleg.com"},{"name":"corrideat","email":"3857362+corrideat@users.noreply.github.com"}],"readme":"# @apeleghq/benchmark\r\n\r\n![NPM Downloads](https://img.shields.io/npm/dw/@apeleghq/benchmark?style=flat-square)\r\n[![License](https://img.shields.io/badge/License-Apache%202.0%20with%20llvm%20exception-blue.svg)](https://github.com/ApelegHQ/ts-cms-ep-sfx/blob/master/LICENSE)\r\n\r\nA statistically rigorous benchmarking library with paired t-tests, baseline\r\ncorrection, and confidence intervals.\r\n\r\n---\r\n\r\n## Features\r\n\r\n- No runtime dependencies (except `picocolor` with some built-in reporters)\r\n- Runtime and framework agnostic (ESM and CJS dual-package).\r\n- Automatically injects a no-op baseline function to subtract loop and call\r\n  overhead from every measurement on a per-trial basis.\r\n- Runs all functions within the same trial to enable\r\n  **paired statistical tests** — shared noise sources (GC pauses, thermal\r\n  throttling, etc.) cancel out in per-trial differences $d_i = a_i - b_i$.\r\n- Computes descriptive statistics per function: mean, median, standard\r\n  deviation, SEM, min, max, and percentiles ($p_5$, $p_{25}$, $p_{75}$,\r\n  $p_{95}$).\r\n- Reports 95% confidence intervals for all means.\r\n- Performs all $\\binom{k}{2}$ pairwise **paired t-tests** with two-tailed\r\n  p-values and significance flags.\r\n- Randomises execution order within each trial to reduce systematic bias.\r\n- Per-benchmark and suite-level `setup`/`teardown` hooks with shared typed\r\n  context.\r\n- Configurable warmup iterations, iterations per trial, and number of trials.\r\n- Includes three built-in reporters: **simple**, **advanced**, and **xUnit**.\r\n- Fully JSON-serialisable output for custom reporting or CI integration.\r\n\r\n---\r\n![Screenshot: Simple report](assets/simple_report.png)\r\n\r\n---\r\n\r\n![Screenshot: Advanced report](assets/advanced_report.png)\r\n\r\n---\r\n\r\n## Installation\r\n\r\n```sh\r\nnpm install @apeleghq/benchmark\r\n```\r\n\r\nor\r\n\r\n```sh\r\nyarn add @apeleghq/benchmark\r\n```\r\n\r\n---\r\n\r\n## Usage\r\n\r\n### Basic suite\r\n\r\n```typescript\r\nimport { runSuite } from '@apeleghq/benchmark';\r\nimport simpleReport from '@apeleghq/benchmark/reporters/simple';\r\n\r\ntype Ctx = {\r\n  array: unknown[];\r\n};\r\n\r\nconst result = await runSuite<Ctx>({\r\n  name: 'Array copy comparison',\r\n  setup() {\r\n    this.array = [1, 2, 3];\r\n  },\r\n  functions: [\r\n    {\r\n      name: 'Array.from',\r\n      fn() {\r\n        Array.from(this.array);\r\n      },\r\n    },\r\n    {\r\n      name: 'Spread operator',\r\n      fn() {\r\n        [...this.array];\r\n      },\r\n    },\r\n  ],\r\n});\r\n\r\nsimpleReport(result);\r\n```\r\n\r\n### Advanced reporter\r\n\r\n```typescript\r\nimport advancedReport from '@apeleghq/benchmark/reporters/advanced';\r\n\r\nadvancedReport(result);\r\n```\r\n\r\n### xUnit reporter (for CI integration)\r\n\r\n```typescript\r\nimport xunitReport from '@apeleghq/benchmark/reporters/xunit';\r\n\r\nconsole.log(xunitReport(result));\r\n```\r\n\r\n### Configuration options\r\n\r\nAll fields in `ISuiteConfig` beyond `name` and `functions` are optional:\r\n\r\n```typescript\r\nconst result = await runSuite({\r\n  name: 'My suite',\r\n  warmupIterations: 10,    // default: 10\r\n  iterationsPerTrial: 1000, // default: 1000\r\n  trials: 30,               // default: 30\r\n  setup() { /* suite-level context setup */ },\r\n  teardown() { /* suite-level context teardown */ },\r\n  functions: [\r\n    {\r\n      name: 'my-fn',\r\n      fn() { /* ... */ },\r\n      setup() { /* function-level setup, runs before warmup+measurement */ },\r\n      teardown() { /* function-level teardown, runs after measurement */ },\r\n    },\r\n  ],\r\n});\r\n```\r\n\r\n### Using the statistics module directly\r\n\r\nThe `stats` subpackage exposes the underlying statistical primitives:\r\n\r\n```typescript\r\nimport { mean, median, stdDev, tDistPValue } from '@apeleghq/benchmark/stats';\r\n```\r\n\r\n---\r\n\r\n## How it works\r\n\r\n<details>\r\n<summary>Statistical methodology</summary>\r\n\r\n### Baseline correction\r\n\r\nA no-op function (internally named `@@null`) is automatically added to every\r\nsuite. Its per-trial measurement captures pure loop and call overhead. This\r\nbaseline value is subtracted from every other function's measurement on a\r\n**per-trial basis** before any statistics are computed:\r\n\r\n$$\\hat{x}_{i,\\text{fn}} = x_{i,\\text{fn}} - x_{i,\\text{null}}$$\r\n\r\nAll reported aggregate statistics (mean, median, standard deviation, confidence\r\nintervals) are computed from these baseline-corrected samples.\r\n\r\n### Paired t-test\r\n\r\nBecause all functions are measured within the same trial, comparisons use a\r\n**paired (dependent) t-test** rather than an independent-samples test.\r\nPer-trial differences are:\r\n\r\n$$d_i = a_i - b_i$$\r\n\r\nThe t-statistic is:\r\n\r\n$$t = \\frac{\\bar{d}}{s_d / \\sqrt{n}}$$\r\n\r\nwhere $\\bar{d}$ is the mean of the differences and $s_d$ is their sample\r\nstandard deviation. This is more powerful than an unpaired test because shared\r\nnoise sources cancel out.\r\n\r\n### Confidence intervals\r\n\r\nThe 95% confidence interval for the true mean difference is:\r\n\r\n$$\\bar{d} \\pm t_{\\alpha/2,\\, n-1} \\cdot \\frac{s_d}{\\sqrt{n}}$$\r\n\r\nwhere $t_{\\alpha/2,\\, n-1}$ is the critical value from the Student's\r\nt-distribution with $n-1$ degrees of freedom.\r\n\r\n</details>\r\n\r\n---\r\n\r\n## Output format\r\n\r\n`runSuite` returns a fully JSON-serialisable `ISuiteReport` object:\r\n\r\n| Field | Description |\r\n|---|---|\r\n| `name` | Suite name |\r\n| `config` | Effective configuration (iterations, trials, warmup) |\r\n| `trials` | Every trial with raw timings and execution order |\r\n| `functions` | Per-function aggregate statistics (corrected and raw samples) |\r\n| `comparisons` | All pairwise paired t-test results |\r\n| `baselineName` | Name of the injected null baseline (`@@null`) |\r\n\r\nEach entry in `comparisons` includes:\r\n\r\n| Field | Description |\r\n|---|---|\r\n| `meanDifference` | $\\bar{d}$ — mean of paired differences (ms) |\r\n| `relativeDifference` | $\\bar{d} / \\bar{b}$ — relative difference as a ratio |\r\n| `tStatistic` | Computed t-statistic |\r\n| `pValue` | Two-tailed p-value |\r\n| `significant` | `true` if `pValue < 0.05` |\r\n| `confidenceInterval` | 95% CI for the true mean difference (ms) |\r\n\r\n---\r\n\r\n## Exports\r\n\r\n| Export path | Description |\r\n|---|---|\r\n| `@apeleghq/benchmark` | `runSuite` — main entry point |\r\n| `@apeleghq/benchmark/stats` | Statistical primitives (mean, stdDev, t-test, etc.) |\r\n| `@apeleghq/benchmark/reporters/simple` | Simple console reporter |\r\n| `@apeleghq/benchmark/reporters/advanced` | Advanced console reporter with full statistics |\r\n| `@apeleghq/benchmark/reporters/xunit` | xUnit XML reporter for CI systems |\r\n\r\n---\r\n\r\n## Contributing\r\n\r\nContributions welcome. Please open issues or pull requests on the repository.\r\nConsider adding unit tests for edge cases and additional reporters if extending\r\nthe library.\r\n\r\n---\r\n\r\n## License\r\n\r\nThis project is licensed under the Apache 2.0 License with the LLVM exception.\r\nYou are free to use this package in compliance with the terms of the license.\r\nFor more information, see the [`LICENSE`](./LICENSE) file.\r\n","readmeFilename":"README.md"}