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): fail on unknown keys in the config file #2222

Merged
merged 2 commits into from Sep 27, 2020
Merged

Conversation

prymitive
Copy link
Owner

No description provided.

@prymitive
Copy link
Owner Author

prymitive commented Sep 27, 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.32ms ± 2%        5.41ms ± 1%  +1.68%  (p=0.002 n=9+9)
Decompress/Run-2                         3.63ms ± 2%        3.64ms ± 1%    ~     (p=0.739 n=10+10)
CompressionAndDecompression/Run-2        9.41ms ± 1%        9.44ms ± 1%    ~     (p=0.247 n=10+10)
PullAlerts/0.19.0-2                      6.23ms ± 1%        6.32ms ± 1%  +1.50%  (p=0.000 n=10+10)
AlertsAPIMisses/0.19.0-2                 1.54ms ± 2%        1.56ms ± 3%    ~     (p=0.079 n=10+9)
AlertsAPIHits/0.19.0-2                    963µs ± 2%         973µs ± 1%    ~     (p=0.079 n=10+9)
pkg:github.com/prymitive/karma/internal/alertmanager goos:linux goarch:amd64
DedupAlerts/Run-2                         132µs ± 3%         131µs ± 1%    ~     (p=0.315 n=10+10)
DedupAutocomplete/Run-2                  59.0µs ± 1%        58.9µs ± 1%    ~     (p=0.739 n=10+10)
DedupColors/Run-2                        16.6µs ± 0%        16.4µs ± 1%  -1.13%  (p=0.001 n=7+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.04%  (p=0.000 n=9+9)
Decompress/Run-2                          3.10M ± 0%         3.10M ± 0%    ~     (p=0.494 n=8+10)
CompressionAndDecompression/Run-2         4.99M ± 0%         4.99M ± 0%  +0.06%  (p=0.003 n=7+10)
PullAlerts/0.19.0-2                       3.05M ± 0%         3.06M ± 0%  +0.14%  (p=0.000 n=8+9)
AlertsAPIMisses/0.19.0-2                  3.45M ± 0%         3.45M ± 0%  +0.09%  (p=0.000 n=9+9)
AlertsAPIHits/0.19.0-2                    3.41M ± 0%         3.42M ± 0%  +0.09%  (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%  -0.00%  (p=0.001 n=8+9)
CompressionAndDecompression/Run-2        5.38MB ± 0%        5.38MB ± 0%    ~     (all equal)
PullAlerts/0.19.0-2                      1.27MB ± 0%        1.27MB ± 0%    ~     (p=0.796 n=10+10)
AlertsAPIMisses/0.19.0-2                 1.29MB ± 0%        1.29MB ± 0%    ~     (p=0.684 n=10+10)
AlertsAPIHits/0.19.0-2                    318kB ± 0%         318kB ± 0%    ~     (p=0.720 n=10+9)
pkg:github.com/prymitive/karma/internal/alertmanager goos:linux goarch:amd64
DedupAlerts/Run-2                        73.7kB ± 0%        73.7kB ± 0%    ~     (p=0.425 n=10+10)
DedupAutocomplete/Run-2                  27.2kB ± 0%        27.2kB ± 0%    ~     (p=0.090 n=10+10)
DedupColors/Run-2                        7.36kB ± 0%        7.36kB ± 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.19.0-2                       22.5k ± 0%         22.5k ± 0%    ~     (all equal)
AlertsAPIMisses/0.19.0-2                  6.08k ± 0%         6.08k ± 0%    ~     (p=0.137 n=8+10)
AlertsAPIHits/0.19.0-2                    2.36k ± 0%         2.36k ± 0%    ~     (p=1.000 n=10+10)
pkg:github.com/prymitive/karma/internal/alertmanager goos:linux goarch:amd64
DedupAlerts/Run-2                           415 ± 0%           415 ± 0%    ~     (all equal)
DedupAutocomplete/Run-2                     114 ± 0%           114 ± 0%    ~     (all equal)
DedupColors/Run-2                          35.0 ± 0%          35.0 ± 0%    ~     (all equal)

@prymitive prymitive merged commit c8d706b into master Sep 27, 2020
@prymitive prymitive deleted the strict-config branch September 27, 2020 19:40
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 4, 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.

None yet

1 participant