Skip to content

Commit

Permalink
fix: typo unit error in benchmark report
Browse files Browse the repository at this point in the history
  • Loading branch information
zjregee committed Sep 16, 2024
1 parent 7b23699 commit 48cd277
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions benchmark/bencher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
16 changes: 8 additions & 8 deletions benchmark/report.log
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 48cd277

Please sign in to comment.