Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print percentiles in benchmark #2699

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RomanZavodskikh
Copy link
Member

@RomanZavodskikh RomanZavodskikh commented Oct 23, 2023

This is needed to improve the performance impact of this component.

rzavodskikh@ZALANDO-39125:~/skipper$ for i in {1..20}; do go test -benchmem -run=^$ -bench ^BenchmarkGetInflightRequests$ github.com/zalando/skipper/routing |& tee -a output; done
rzavodskikh@ZALANDO-39125:~/skipper$ benchstat output  | grep P99
GetInflightRequests/1_goroutines/P99-16       2.094µ ±  9%
GetInflightRequests/2_goroutines/P99-16       2.079µ ±  6%
GetInflightRequests/3_goroutines/P99-16       2.084µ ±  8%
GetInflightRequests/4_goroutines/P99-16       2.074µ ± 11%
GetInflightRequests/5_goroutines/P99-16       2.033µ ±  9%
GetInflightRequests/6_goroutines/P99-16       1.688µ ± 51%
GetInflightRequests/7_goroutines/P99-16       1.653µ ± 37%
GetInflightRequests/8_goroutines/P99-16       1.833µ ± 62%
GetInflightRequests/12_goroutines/P99-16      941.0n ± 61%
GetInflightRequests/16_goroutines/P99-16      1.182µ ± 71%
GetInflightRequests/24_goroutines/P99-16      782.0n ± 59%
GetInflightRequests/32_goroutines/P99-16      2.024µ ± 38%
GetInflightRequests/48_goroutines/P99-16      1.954µ ± 61%
GetInflightRequests/64_goroutines/P99-16      2.024µ ± 12%
GetInflightRequests/128_goroutines/P99-16     2.054µ ±  8%
GetInflightRequests/256_goroutines/P99-16     1.934µ ±  3%
GetInflightRequests/512_goroutines/P99-16     1.914µ ±  7%
GetInflightRequests/768_goroutines/P99-16     2.044µ ±  8%
GetInflightRequests/1024_goroutines/P99-16    2.043µ ±  7%
GetInflightRequests/1536_goroutines/P99-16    2.144µ ±  7%
GetInflightRequests/2048_goroutines/P99-16    2.104µ ±  6%
GetInflightRequests/4096_goroutines/P99-16    2.525µ ± 37%
GetInflightRequests/8192_goroutines/P99-16    2.385µ ± 23%
GetInflightRequests/16384_goroutines/P99-16   1.263µ ± 52%
GetInflightRequests/32768_goroutines/P99-16   301.0n ± 70%
rzavodskikh@ZALANDO-39125:~/skipper$ 

go.mod Outdated
@@ -72,6 +72,7 @@ require (
github.com/OneOfOne/xxhash v1.2.8 // indirect
github.com/agnivade/levenshtein v1.1.1 // indirect
github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da // indirect
github.com/benburkert/pbench v0.0.0-20160623210926-4ec5821845ef // indirect
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dependency from 2016, do we need this or can we copy a function into our code base?

@@ -93,6 +94,7 @@ require (
github.com/envoyproxy/protoc-gen-validate v1.0.2 // indirect
github.com/felixge/httpsnoop v1.0.3 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/gavv/monotime v0.0.0-20190418164738-30dba4353424 // indirect
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dependency from 2019 maybe we can copy a func to our own repository

Base automatically changed from cw2023freeze to master November 28, 2023 10:01
This is needed to improve the performance impact of this component.

Signed-off-by: Roman Zavodskikh <[email protected]>
@RomanZavodskikh RomanZavodskikh force-pushed the printPercentilesInBenchmark_2 branch from b02f03f to 29fb706 Compare November 21, 2024 14:32
@RomanZavodskikh RomanZavodskikh added the minor no risk changes, for example new filters label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor no risk changes, for example new filters
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants