From 48cd277db6b2e549c702628cb99f4a4ff9666bda Mon Sep 17 00:00:00 2001 From: zjregee Date: Mon, 16 Sep 2024 20:11:41 +0800 Subject: [PATCH] fix: typo unit error in benchmark report --- benchmark/bencher/main.go | 4 ++-- benchmark/report.log | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/benchmark/bencher/main.go b/benchmark/bencher/main.go index de766b1..af0b44f 100644 --- a/benchmark/bencher/main.go +++ b/benchmark/bencher/main.go @@ -88,6 +88,6 @@ func main() { fmt.Printf("the total time for %s to execute %dk connections using %d goroutines, with %d bytes per write, is: %d min %d sec %d ms\n", name, count/1000, c, messageLength, minutes, seconds, milliseconds) qps := float64(count) / elapsed.Seconds() fmt.Printf("qps: %f\n", qps) - fmt.Printf("average latency: %f ms\n", t.Quantile(0.5)) - fmt.Printf("99th percentile latency: %f ms\n", t.Quantile(0.99)) + fmt.Printf("average latency: %f us\n", t.Quantile(0.5)) + fmt.Printf("99th percentile latency: %f us\n", t.Quantile(0.99)) } diff --git a/benchmark/report.log b/benchmark/report.log index 3795a3a..9dbccd9 100644 --- a/benchmark/report.log +++ b/benchmark/report.log @@ -1,19 +1,19 @@ net qps: 461582.003546 -average latency: 80.711397 ms -99th percentile latency: 1569.508916 ms +average latency: 80.711397 us +99th percentile latency: 1569.508916 us gnet qps: 322150.702136 -average latency: 373.484487 ms -99th percentile latency: 776.842779 ms +average latency: 373.484487 us +99th percentile latency: 776.842779 us netpoll qps: 488364.046968 -average latency: 84.782965 ms -99th percentile latency: 1359.529940 ms +average latency: 84.782965 us +99th percentile latency: 1359.529940 us anet qps: 413194.093871 -average latency: 165.628039 ms -99th percentile latency: 1209.859366 ms +average latency: 165.628039 us +99th percentile latency: 1209.859366 us