@karimsa/bench
Advanced tools
Comparing version 0.14.0 to 0.15.0
@@ -52,2 +52,3 @@ var __create = Object.create; | ||
var microtime = __toESM(require("microtime")); | ||
var import_uuid = require("uuid"); | ||
function ttywrite(stream, str) { | ||
@@ -242,3 +243,3 @@ if (str === void 0) { | ||
timeSync(name, fn2) { | ||
const startId = uuid(); | ||
const startId = (0, import_uuid.v4)(); | ||
import_perf_hooks.performance.mark(startId); | ||
@@ -248,3 +249,3 @@ try { | ||
} finally { | ||
const endId = uuid(); | ||
const endId = (0, import_uuid.v4)(); | ||
import_perf_hooks.performance.mark(endId); | ||
@@ -255,3 +256,3 @@ import_perf_hooks.performance.measure(name, startId, endId); | ||
async timeAsync(name, fn2) { | ||
const startId = uuid(); | ||
const startId = (0, import_uuid.v4)(); | ||
import_perf_hooks.performance.mark(startId); | ||
@@ -261,3 +262,3 @@ try { | ||
} finally { | ||
const endId = uuid(); | ||
const endId = (0, import_uuid.v4)(); | ||
import_perf_hooks.performance.mark(endId); | ||
@@ -264,0 +265,0 @@ import_perf_hooks.performance.measure(name, startId, endId); |
{ | ||
"private": false, | ||
"name": "@karimsa/bench", | ||
"version": "0.14.0", | ||
"version": "0.15.0", | ||
"description": "Minimal benchmarking JS library.", | ||
@@ -26,4 +26,5 @@ "main": "bench.dist.js", | ||
"debug": "4.3.3", | ||
"microtime": "3.0.0" | ||
"microtime": "3.0.0", | ||
"uuid": "^8.3.2" | ||
} | ||
} |
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
16492
410
6
+ Addeduuid@^8.3.2
+ Addeduuid@8.3.2(transitive)