From eedf6d7d324c1e18ce8e5656e04d4ac2b12288c2 Mon Sep 17 00:00:00 2001 From: RafaelGSS Date: Thu, 5 Dec 2024 04:37:29 -0300 Subject: [PATCH] lib: remove p75 and p99 It doesn't make much sense for microbenchmarks as we already shows min and max --- lib/reporter/text.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/reporter/text.js b/lib/reporter/text.js index b3662f5..c4a75bb 100644 --- a/lib/reporter/text.js +++ b/lib/reporter/text.js @@ -32,13 +32,9 @@ function textReport(results) { } process.stdout.write('min..max=('); - process.stdout.write(timer.format(result.histogram.min)); - process.stdout.write(' ... '); - process.stdout.write(timer.format(result.histogram.max)); - process.stdout.write(') p75='); - process.stdout.write(timer.format(result.histogram.percentile(75))); - process.stdout.write(' p99='); - process.stdout.write(timer.format(result.histogram.percentile(99))); + process.stdout.write(styleText('green', timer.format(result.histogram.min))); + process.stdout.write(styleText('dim', '...')); + process.stdout.write(styleText('red', `${timer.format(result.histogram.max)})`)); process.stdout.write('\n'); } }