@jonahsnider/benchmark
Advanced tools
Comparing version 5.0.2 to 5.0.3
{ | ||
"name": "@jonahsnider/benchmark", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"bugs": { | ||
@@ -50,16 +50,16 @@ "url": "https://github.com/jonahsnider/benchmark/issues" | ||
"@jonahsnider/xo-config": "5.3.0", | ||
"@microsoft/api-extractor": "7.36.1", | ||
"@tsconfig/node16": "16.1.0", | ||
"@types/node": "18.17.17", | ||
"ava": "5.3.1", | ||
"c8": "8.0.0", | ||
"eslint-plugin-prettier": "5.0.0", | ||
"jest-mock": "29.4.3", | ||
"prettier": "3.0.3", | ||
"semantic-release": "22.0.0", | ||
"typedoc": "0.25.0", | ||
"typescript": "5.2.2", | ||
"@microsoft/api-extractor": "7.40.1", | ||
"@tsconfig/node16": "16.1.1", | ||
"@types/node": "20.11.17", | ||
"ava": "6.1.1", | ||
"c8": "9.1.0", | ||
"eslint-plugin-prettier": "5.1.3", | ||
"jest-mock": "29.7.0", | ||
"prettier": "3.2.5", | ||
"semantic-release": "23.0.2", | ||
"typedoc": "0.25.8", | ||
"typescript": "5.3.3", | ||
"xo": "0.56.0" | ||
}, | ||
"packageManager": "yarn@3.4.1", | ||
"packageManager": "yarn@3.8.0", | ||
"engines": { | ||
@@ -66,0 +66,0 @@ "node": ">=16.0.0" |
@@ -34,3 +34,11 @@ var _Test_implementation; | ||
_Test_implementation.set(this, void 0); | ||
__classPrivateFieldSet(this, _Test_implementation, performance.timerify(implementation, { histogram: this.histogram }), "f"); | ||
__classPrivateFieldSet(this, _Test_implementation, () => { | ||
const startMs = performance.now(); | ||
const result = implementation(); | ||
const endMs = performance.now(); | ||
const durationNs = Math.round((endMs - startMs) * 1e6); | ||
// Sometimes the duration is 0, seems like it's only when running on arm64 - see https://github.com/nodejs/node/issues/41641 | ||
this.histogram.record(durationNs || 1); | ||
return result; | ||
}, "f"); | ||
} | ||
@@ -37,0 +45,0 @@ /** |
@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard. | ||
"packageName": "@microsoft/api-extractor", | ||
"packageVersion": "7.36.1" | ||
"packageVersion": "7.40.1" | ||
} | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57765
835