You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
WIP
This commit is contained in:
@@ -71,13 +71,13 @@ const benchmarkStart = process.hrtime.bigint(),
|
||||
histogram = await run(times),
|
||||
benchmarkNanoseconds = process.hrtime.bigint() - benchmarkStart,
|
||||
json = {
|
||||
timestamp,
|
||||
// timestamp,
|
||||
operationsPerSecond: times / Number(benchmarkNanoseconds) * 1_000_000_000,
|
||||
p0: histogram.getValueAtPercentile(0),
|
||||
p50: histogram.getValueAtPercentile(50),
|
||||
p95: histogram.getValueAtPercentile(95),
|
||||
p99: histogram.getValueAtPercentile(99),
|
||||
p100: histogram.getValueAtPercentile(100)
|
||||
// p0: histogram.getValueAtPercentile(0),
|
||||
// p50: histogram.getValueAtPercentile(50),
|
||||
// p95: histogram.getValueAtPercentile(95),
|
||||
// p99: histogram.getValueAtPercentile(99),
|
||||
// p100: histogram.getValueAtPercentile(100)
|
||||
};
|
||||
console.log(`[${basename(path)}]:`);
|
||||
console.table(json);
|
||||
|
Reference in New Issue
Block a user