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

fix(api): count silences per cluster, not instance #1829

Merged
merged 2 commits into from
Jun 13, 2020
Merged

Conversation

prymitive
Copy link
Owner

No description provided.

@prymitive
Copy link
Owner Author

prymitive commented Jun 13, 2020

Go benchmark diff

name                               old time/op        new time/op        delta
pkg:github.com/prymitive/karma/cmd/karma goos:linux goarch:amd64
Compress/Run-2                           5.22ms ± 2%        5.25ms ± 3%    ~     (p=0.101 n=19+20)
Decompress/Run-2                         3.74ms ± 2%        3.72ms ± 4%    ~     (p=0.627 n=19+20)
CompressionAndDecompression/Run-2        9.63ms ± 5%        9.52ms ± 2%    ~     (p=0.142 n=20+20)
PullAlerts/0.17.0-2                      5.94ms ± 3%        5.90ms ± 4%    ~     (p=0.234 n=19+19)
AlertsAPIMisses/0.17.0-2                 1.35ms ± 4%        1.35ms ± 2%    ~     (p=0.191 n=19+19)
AlertsAPIHits/0.17.0-2                    899µs ± 3%         893µs ± 2%    ~     (p=0.107 n=20+19)
pkg:github.com/prymitive/karma/internal/alertmanager goos:linux goarch:amd64
DedupAlerts/Run-2                         132µs ± 3%         130µs ± 1%  -1.30%  (p=0.001 n=20+20)
DedupAutocomplete/Run-2                  85.1µs ± 2%        85.2µs ± 2%    ~     (p=0.461 n=20+19)
DedupColors/Run-2                        18.5µs ± 1%        18.7µs ± 1%  +1.20%  (p=0.000 n=16+20)

name                               old %/compression  new %/compression  delta
pkg:github.com/prymitive/karma/cmd/karma goos:linux goarch:amd64
Compress/Run-2                             0.04 ± 0%          0.04 ± 0%    ~     (all equal)

name                               old B/alloc        new B/alloc        delta
pkg:github.com/prymitive/karma/cmd/karma goos:linux goarch:amd64
Compress/Run-2                            4.88M ± 0%         4.88M ± 0%  -0.02%  (p=0.000 n=19+19)
Decompress/Run-2                          2.99M ± 0%         3.00M ± 0%    ~     (p=0.621 n=20+19)
CompressionAndDecompression/Run-2         4.89M ± 0%         4.89M ± 0%    ~     (p=0.730 n=20+20)
PullAlerts/0.17.0-2                       2.94M ± 0%         2.94M ± 0%  -0.01%  (p=0.000 n=19+19)
AlertsAPIMisses/0.17.0-2                  3.34M ± 0%         3.34M ± 0%  -0.01%  (p=0.000 n=19+19)
AlertsAPIHits/0.17.0-2                    3.30M ± 0%         3.30M ± 0%  -0.02%  (p=0.000 n=18+17)

name                               old alloc/op       new alloc/op       delta
pkg:github.com/prymitive/karma/cmd/karma goos:linux goarch:amd64
Compress/Run-2                           1.13MB ± 0%        1.13MB ± 0%    ~     (all equal)
Decompress/Run-2                         4.24MB ± 0%        4.24MB ± 0%    ~     (p=0.377 n=20+19)
CompressionAndDecompression/Run-2        5.38MB ± 0%        5.38MB ± 0%  -0.00%  (p=0.013 n=19+17)
PullAlerts/0.17.0-2                      1.26MB ± 0%        1.26MB ± 0%    ~     (p=0.380 n=20+20)
AlertsAPIMisses/0.17.0-2                 1.29MB ± 0%        1.29MB ± 0%  -0.12%  (p=0.038 n=20+20)
AlertsAPIHits/0.17.0-2                    311kB ± 1%         311kB ± 1%    ~     (p=0.158 n=20+18)
pkg:github.com/prymitive/karma/internal/alertmanager goos:linux goarch:amd64
DedupAlerts/Run-2                        75.9kB ± 0%        75.9kB ± 0%    ~     (p=0.856 n=20+20)
DedupAutocomplete/Run-2                  40.3kB ± 0%        40.3kB ± 0%    ~     (p=0.504 n=20+20)
DedupColors/Run-2                        6.28kB ± 0%        6.28kB ± 0%    ~     (all equal)

name                               old allocs/op      new allocs/op      delta
pkg:github.com/prymitive/karma/cmd/karma goos:linux goarch:amd64
Compress/Run-2                             31.0 ± 0%          31.0 ± 0%    ~     (all equal)
Decompress/Run-2                           80.0 ± 0%          80.0 ± 0%    ~     (all equal)
CompressionAndDecompression/Run-2           111 ± 0%           111 ± 0%    ~     (all equal)
PullAlerts/0.17.0-2                       22.4k ± 0%         22.4k ± 0%    ~     (all equal)
AlertsAPIMisses/0.17.0-2                  5.98k ± 0%         5.98k ± 0%  -0.01%  (p=0.006 n=16+20)
AlertsAPIHits/0.17.0-2                    2.35k ± 0%         2.35k ± 0%    ~     (p=0.191 n=20+20)
pkg:github.com/prymitive/karma/internal/alertmanager goos:linux goarch:amd64
DedupAlerts/Run-2                           396 ± 0%           396 ± 0%    ~     (all equal)
DedupAutocomplete/Run-2                     131 ± 0%           131 ± 0%    ~     (all equal)
DedupColors/Run-2                          43.0 ± 0%          43.0 ± 0%    ~     (all equal)

@prymitive prymitive merged commit 3927f37 into master Jun 13, 2020
@prymitive prymitive deleted the fix-clusters branch June 13, 2020 16:20
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant