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

feat(backend): allow using regex rules in requiredMatcher acl actions #2155

Merged
merged 1 commit into from
Sep 8, 2020

Conversation

prymitive
Copy link
Owner

Fixes #2001

@prymitive
Copy link
Owner Author

prymitive commented Sep 8, 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                           4.81ms ± 1%        4.84ms ± 1%  +0.63%  (p=0.003 n=10+10)
Decompress/Run-2                         3.12ms ± 1%        3.21ms ± 1%  +2.61%  (p=0.000 n=9+10)
CompressionAndDecompression/Run-2        8.02ms ± 1%        8.16ms ± 1%  +1.78%  (p=0.000 n=9+10)
PullAlerts/0.19.0-2                      5.34ms ± 0%        5.39ms ± 1%  +1.07%  (p=0.000 n=10+10)
AlertsAPIMisses/0.19.0-2                 1.26ms ± 3%        1.28ms ± 1%  +1.90%  (p=0.002 n=10+10)
AlertsAPIHits/0.19.0-2                    858µs ± 1%         871µs ± 1%  +1.59%  (p=0.002 n=10+10)
pkg:github.com/prymitive/karma/internal/alertmanager goos:linux goarch:amd64
DedupAlerts/Run-2                         115µs ± 1%         117µs ± 1%  +1.43%  (p=0.000 n=10+10)
DedupAutocomplete/Run-2                  54.6µs ± 1%        55.3µs ± 0%  +1.25%  (p=0.000 n=10+9)
DedupColors/Run-2                        14.9µs ± 0%        15.1µs ± 1%  +1.54%  (p=0.000 n=10+10)

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.98M ± 0%         4.99M ± 0%  +0.02%  (p=0.000 n=9+7)
Decompress/Run-2                          3.10M ± 0%         3.09M ± 0%  -0.07%  (p=0.021 n=10+9)
CompressionAndDecompression/Run-2         4.99M ± 0%         4.99M ± 0%  -0.11%  (p=0.000 n=10+8)
PullAlerts/0.19.0-2                       3.05M ± 0%         3.05M ± 0%  -0.15%  (p=0.000 n=10+9)
AlertsAPIMisses/0.19.0-2                  3.45M ± 0%         3.45M ± 0%  +0.02%  (p=0.000 n=9+9)
AlertsAPIHits/0.19.0-2                    3.41M ± 0%         3.41M ± 0%  +0.02%  (p=0.000 n=9+9)

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.656 n=10+10)
CompressionAndDecompression/Run-2        5.38MB ± 0%        5.38MB ± 0%    ~     (all equal)
PullAlerts/0.19.0-2                      1.27MB ± 0%        1.27MB ± 0%    ~     (p=0.631 n=10+10)
AlertsAPIMisses/0.19.0-2                 1.29MB ± 0%        1.29MB ± 0%    ~     (p=0.090 n=10+9)
AlertsAPIHits/0.19.0-2                    317kB ± 0%         318kB ± 1%  +0.37%  (p=0.029 n=10+10)
pkg:github.com/prymitive/karma/internal/alertmanager goos:linux goarch:amd64
DedupAlerts/Run-2                        73.7kB ± 0%        73.7kB ± 0%    ~     (p=0.788 n=10+10)
DedupAutocomplete/Run-2                  28.2kB ± 0%        28.2kB ± 0%    ~     (p=0.606 n=10+10)
DedupColors/Run-2                        7.36kB ± 0%        7.36kB ± 0%    ~     (p=0.173 n=9+10)

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.19.0-2                       22.5k ± 0%         22.5k ± 0%    ~     (all equal)
AlertsAPIMisses/0.19.0-2                  6.08k ± 0%         6.08k ± 0%  -0.01%  (p=0.003 n=8+10)
AlertsAPIHits/0.19.0-2                    2.35k ± 0%         2.35k ± 0%  +0.03%  (p=0.005 n=9+10)
pkg:github.com/prymitive/karma/internal/alertmanager goos:linux goarch:amd64
DedupAlerts/Run-2                           415 ± 0%           415 ± 0%    ~     (all equal)
DedupAutocomplete/Run-2                     119 ± 0%           119 ± 0%    ~     (all equal)
DedupColors/Run-2                          35.0 ± 0%          35.0 ± 0%    ~     (all equal)

@prymitive prymitive merged commit 5c0ad44 into master Sep 8, 2020
@prymitive prymitive deleted the acls branch September 8, 2020 11:50
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 6, 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.

silenceForm required labels
1 participant