Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jonahsnider/benchmark

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jonahsnider/benchmark - npm Package Compare versions

Comparing version 5.0.3 to 5.1.0

22

package.json
{
"name": "@jonahsnider/benchmark",
"version": "5.0.3",
"version": "5.1.0",
"bugs": {

@@ -44,4 +44,4 @@ "url": "https://github.com/jonahsnider/benchmark/issues"

"dependencies": {
"@jonahsnider/util": "10.3.0",
"tslib": "2.6.2"
"@jonahsnider/util": "11.0.0",
"tslib": "2.6.3"
},

@@ -51,16 +51,16 @@ "devDependencies": {

"@jonahsnider/xo-config": "5.3.0",
"@microsoft/api-extractor": "7.40.1",
"@tsconfig/node16": "16.1.1",
"@types/node": "20.11.17",
"ava": "6.1.1",
"c8": "9.1.0",
"@microsoft/api-extractor": "7.47.5",
"@tsconfig/node16": "16.1.3",
"@types/node": "20.14.14",
"ava": "6.1.3",
"c8": "10.1.2",
"eslint-plugin-prettier": "5.1.3",
"jest-mock": "29.7.0",
"prettier": "3.2.5",
"semantic-release": "23.0.2",
"typedoc": "0.25.8",
"semantic-release": "24.0.0",
"typedoc": "0.26.5",
"typescript": "5.3.3",
"xo": "0.56.0"
},
"packageManager": "yarn@3.8.0",
"packageManager": "yarn@4.4.0",
"engines": {

@@ -67,0 +67,0 @@ "node": ">=16.0.0"

@@ -178,3 +178,3 @@ # `@jonahsnider/benchmark`

[api-overview]: ./api.md
[api-overview]: ./benchmark.api.md
[docs]: https://benchmark.jonah.pw

@@ -82,3 +82,3 @@ var _Benchmark_suites, _Benchmark_multithreadedSuites;

*/
async runSuites(abortSignal) {
async runSuites(abortSignal, options) {
const results = new Map();

@@ -92,7 +92,15 @@ const [multithreaded, singleThreaded] = partition(__classPrivateFieldGet(this, _Benchmark_suites, "f").values(), suite => __classPrivateFieldGet(this, _Benchmark_multithreadedSuites, "f").has(suite.name));

}
// Multithreaded suites can be run in parallel since they are independent
await Promise.all(multithreaded.map(async (suite) => {
const suiteResults = await suite.run(abortSignal);
results.set(suite.name, suiteResults);
}));
if (options?.sequential) {
for (const suite of multithreaded) {
// eslint-disable-next-line no-await-in-loop
const suiteResults = await suite.run(abortSignal);
results.set(suite.name, suiteResults);
}
}
else {
await Promise.all(multithreaded.map(async (suite) => {
const suiteResults = await suite.run(abortSignal);
results.set(suite.name, suiteResults);
}));
}
return results;

@@ -99,0 +107,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.40.1"
"packageVersion": "7.47.5"
}
]
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc