Socket
Socket
Sign inDemoInstall

bunchmark

Package Overview
Dependencies
1
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2-experiment-6 to 0.0.2-experiment-7

16

bunchmark.js

@@ -50,6 +50,6 @@ import {shuffled} from "./shuffle.js"

while (i++ < reps()) {
onRunTick(i - 1)
onRunTick({i: i - 1, reps, tasks})
const sh = shuffled(tasks)
for (const i in sh) {
await runOne(sh[i])
for (const j in sh) {
await runOne(sh[j])
}

@@ -70,3 +70,2 @@

displayEvery = 10,
onDisplayUpdate = () => {},
beforeCalibration = () => {},

@@ -91,11 +90,4 @@ onCalibrationTick = () => {},

beforeRunning({reps, displayEvery})
return run({tasks, reps(){return reps}, onRunTick(i) {
onRunTick(i)
if (i % displayEvery === 0) onDisplayUpdate({
reps,
i,
tasks: tasks.map(({name, N, results}) => ({name, N, results}))
})
}})
return run({tasks, reps(){return reps}, onRunTick})
})
}
{
"name": "bunchmark",
"version": "0.0.2-experiment-6",
"version": "0.0.2-experiment-7",
"description": "benchmarking lib",

@@ -5,0 +5,0 @@ "type": "module",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc