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

@chainsafe/lodestar-utils

Package Overview
Dependencies
Maintainers
3
Versions
843
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chainsafe/lodestar-utils - npm Package Compare versions

Comparing version 0.24.0 to 0.24.1-next.1a9e6e66a6bbdc31d7ac682396ecd0b5c78ccb5a.0

10

lib/perf/utils/runner.js

@@ -158,3 +158,4 @@ "use strict";

const row = [factor === undefined ? "" : `x${factor.toFixed(2)}`.padStart(6), `${opsPerSec.toPrecision(precision).padStart(13)} ops/s`, `${averageNs.toPrecision(precision).padStart(13)} ns/op`, `${String(runsDone).padStart(6)} runs`].join(" ");
const [averageTime, timeUnit] = prettyTime(averageNs);
const row = [factor === undefined ? "" : `x${factor.toFixed(2)}`.padStart(6), `${opsPerSec.toPrecision(precision).padStart(13)} ops/s`, `${averageTime.toPrecision(precision).padStart(13)} ${timeUnit}/op`, `${String(runsDone).padStart(6)} runs`].join(" ");
return id.slice(0, idLen).padEnd(idLen) + " " + row;

@@ -183,2 +184,9 @@ }

}
function prettyTime(nanoSec) {
if (nanoSec > 1e9) return [nanoSec / 1e9, " s"];
if (nanoSec > 1e6) return [nanoSec / 1e6, "ms"];
if (nanoSec > 1e3) return [nanoSec / 1e3, "us"];
return [nanoSec, "ns"];
}
//# sourceMappingURL=runner.js.map

4

package.json

@@ -14,3 +14,3 @@ {

},
"version": "0.24.0",
"version": "0.24.1-next.1a9e6e66a6bbdc31d7ac682396ecd0b5c78ccb5a.0+1a9e6e6",
"main": "lib/index.js",

@@ -60,3 +60,3 @@ "files": [

],
"gitHead": "8e5c09c2ed432186d238c4c50a5aac7da07e0257"
"gitHead": "1a9e6e66a6bbdc31d7ac682396ecd0b5c78ccb5a"
}

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