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): return label color data as rgba strings #1898

Merged
merged 2 commits into from
Jun 25, 2020
Merged

fix(api): return label color data as rgba strings #1898

merged 2 commits into from
Jun 25, 2020

Conversation

prymitive
Copy link
Owner

No description provided.

@prymitive
Copy link
Owner Author

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.08ms ± 1%        5.09ms ± 1%     ~     (p=0.436 n=10+10)
Decompress/Run-2                         3.45ms ± 1%        3.57ms ± 2%   +3.37%  (p=0.000 n=10+9)
CompressionAndDecompression/Run-2        8.79ms ± 3%        9.21ms ± 2%   +4.81%  (p=0.000 n=9+10)
PullAlerts/0.17.0-2                      5.66ms ± 1%        5.77ms ± 2%   +1.84%  (p=0.002 n=10+10)
AlertsAPIMisses/0.17.0-2                 1.25ms ± 1%        1.29ms ± 2%   +2.44%  (p=0.000 n=10+10)
AlertsAPIHits/0.17.0-2                    860µs ± 1%         861µs ± 1%     ~     (p=0.529 n=10+10)
pkg:github.com/prymitive/karma/internal/alertmanager goos:linux goarch:amd64
DedupAlerts/Run-2                         159µs ± 2%         162µs ± 1%   +1.72%  (p=0.000 n=10+10)
DedupAutocomplete/Run-2                  94.1µs ± 1%        95.2µs ± 1%   +1.08%  (p=0.000 n=10+9)
DedupColors/Run-2                        21.7µs ± 1%        24.5µs ± 1%  +13.14%  (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.91M ± 0%         4.91M ± 0%   -0.03%  (p=0.000 n=9+9)
Decompress/Run-2                          3.02M ± 0%         3.02M ± 0%     ~     (p=0.984 n=9+10)
CompressionAndDecompression/Run-2         4.92M ± 0%         4.92M ± 0%   -0.05%  (p=0.000 n=9+10)
PullAlerts/0.17.0-2                       2.98M ± 0%         2.98M ± 0%   -0.09%  (p=0.000 n=9+9)
AlertsAPIMisses/0.17.0-2                  3.38M ± 0%         3.37M ± 0%   -0.15%  (p=0.000 n=9+9)
AlertsAPIHits/0.17.0-2                    3.34M ± 0%         3.33M ± 0%   -0.15%  (p=0.000 n=8+8)

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.797 n=10+10)
CompressionAndDecompression/Run-2        5.38MB ± 0%        5.38MB ± 0%     ~     (all equal)
PullAlerts/0.17.0-2                      1.26MB ± 0%        1.26MB ± 0%   +0.06%  (p=0.000 n=9+10)
AlertsAPIMisses/0.17.0-2                 1.29MB ± 0%        1.29MB ± 0%   +0.16%  (p=0.006 n=9+10)
AlertsAPIHits/0.17.0-2                    312kB ± 1%         312kB ± 1%     ~     (p=0.105 n=10+10)
pkg:github.com/prymitive/karma/internal/alertmanager goos:linux goarch:amd64
DedupAlerts/Run-2                         108kB ± 0%         108kB ± 0%   -0.00%  (p=0.001 n=9+9)
DedupAutocomplete/Run-2                  44.8kB ± 0%        44.8kB ± 0%     ~     (p=0.222 n=10+10)
DedupColors/Run-2                        7.53kB ± 0%       11.01kB ± 0%  +46.14%  (p=0.000 n=10+9)

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.5k ± 0%         22.5k ± 0%   +0.04%  (p=0.000 n=10+8)
AlertsAPIMisses/0.17.0-2                  5.98k ± 0%         5.98k ± 0%     ~     (p=0.137 n=8+10)
AlertsAPIHits/0.17.0-2                    2.35k ± 0%         2.33k ± 0%   -1.02%  (p=0.000 n=10+10)
pkg:github.com/prymitive/karma/internal/alertmanager goos:linux goarch:amd64
DedupAlerts/Run-2                           445 ± 0%           445 ± 0%     ~     (all equal)
DedupAutocomplete/Run-2                     142 ± 0%           142 ± 0%     ~     (all equal)
DedupColors/Run-2                          51.0 ± 0%          51.0 ± 0%     ~     (all equal)

@prymitive prymitive merged commit aab937a into master Jun 25, 2020
@prymitive prymitive deleted the colors branch June 25, 2020 17:28
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 12, 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