Socket
Socket
Sign inDemoInstall

@karimsa/bench

Package Overview
Dependencies
15
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.13.0 to 0.14.0

.prettierrc

22

bench.dist.js

@@ -240,2 +240,24 @@ var __create = Object.create;

},
timeSync(name, fn2) {
const startId = uuid();
import_perf_hooks.performance.mark(startId);
try {
return fn2();
} finally {
const endId = uuid();
import_perf_hooks.performance.mark(endId);
import_perf_hooks.performance.measure(name, startId, endId);
}
},
async timeAsync(name, fn2) {
const startId = uuid();
import_perf_hooks.performance.mark(startId);
try {
return await fn2();
} finally {
const endId = uuid();
import_perf_hooks.performance.mark(endId);
import_perf_hooks.performance.measure(name, startId, endId);
}
},
resetTimer() {

@@ -242,0 +264,0 @@ startTime = microtime.now();

6

package.json
{
"private": false,
"name": "@karimsa/bench",
"version": "0.13.0",
"version": "0.14.0",
"description": "Minimal benchmarking JS library.",

@@ -12,3 +12,5 @@ "main": "bench.dist.js",

"scripts": {
"build": "esbuild --target=node12 bench.js --format=cjs --outfile=bench.dist.js"
"build": "esbuild --target=node12 bench.js --format=cjs --outfile=bench.dist.js",
"format": "prettier --write bench.js",
"lint": "prettier --check bench.js"
},

@@ -15,0 +17,0 @@ "devDependencies": {

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