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(tests): add looppointer linter #1893

Merged
merged 1 commit into from
Jun 24, 2020
Merged

feat(tests): add looppointer linter #1893

merged 1 commit into from
Jun 24, 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.00ms ± 1%        5.05ms ± 1%  +1.01%  (p=0.000 n=19+20)
Decompress/Run-2                         3.41ms ± 1%        3.40ms ± 0%    ~     (p=0.258 n=20+19)
CompressionAndDecompression/Run-2        8.40ms ± 1%        8.43ms ± 1%  +0.32%  (p=0.002 n=20+20)
PullAlerts/0.17.0-2                      5.52ms ± 0%        5.52ms ± 0%    ~     (p=0.757 n=18+17)
AlertsAPIMisses/0.17.0-2                 1.24ms ± 1%        1.23ms ± 1%    ~     (p=0.640 n=20+20)
AlertsAPIHits/0.17.0-2                    861µs ± 2%         863µs ± 2%    ~     (p=0.309 n=20+19)
pkg:github.com/prymitive/karma/internal/alertmanager goos:linux goarch:amd64
DedupAlerts/Run-2                         157µs ± 0%         158µs ± 0%  +0.53%  (p=0.000 n=19+20)
DedupAutocomplete/Run-2                  92.9µs ± 0%        93.3µs ± 1%  +0.43%  (p=0.000 n=19+19)
DedupColors/Run-2                        21.5µs ± 1%        21.5µs ± 1%    ~     (p=0.280 n=20+18)

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=18+19)
Decompress/Run-2                          3.03M ± 0%         3.02M ± 0%  -0.10%  (p=0.001 n=18+20)
CompressionAndDecompression/Run-2         4.92M ± 0%         4.92M ± 0%  -0.08%  (p=0.000 n=20+18)
PullAlerts/0.17.0-2                       2.98M ± 0%         2.98M ± 0%    ~     (p=0.288 n=19+20)
AlertsAPIMisses/0.17.0-2                  3.38M ± 0%         3.38M ± 0%  +0.07%  (p=0.000 n=19+19)
AlertsAPIHits/0.17.0-2                    3.34M ± 0%         3.34M ± 0%  +0.07%  (p=0.000 n=18+18)

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.861 n=20+20)
CompressionAndDecompression/Run-2        5.38MB ± 0%        5.38MB ± 0%  -0.00%  (p=0.001 n=20+18)
PullAlerts/0.17.0-2                      1.26MB ± 0%        1.26MB ± 0%  +0.23%  (p=0.000 n=20+20)
AlertsAPIMisses/0.17.0-2                 1.29MB ± 0%        1.29MB ± 0%    ~     (p=0.314 n=20+20)
AlertsAPIHits/0.17.0-2                    311kB ± 1%         312kB ± 1%    ~     (p=0.127 n=20+19)
pkg:github.com/prymitive/karma/internal/alertmanager goos:linux goarch:amd64
DedupAlerts/Run-2                         108kB ± 0%         108kB ± 0%    ~     (p=0.344 n=20+20)
DedupAutocomplete/Run-2                  44.8kB ± 0%        44.8kB ± 0%    ~     (p=0.832 n=18+20)
DedupColors/Run-2                        7.53kB ± 0%        7.53kB ± 0%    ~     (p=0.082 n=16+20)

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.06%  (p=0.000 n=18+18)
AlertsAPIMisses/0.17.0-2                  5.98k ± 0%         5.98k ± 0%    ~     (p=1.000 n=20+20)
AlertsAPIHits/0.17.0-2                    2.35k ± 0%         2.35k ± 0%    ~     (p=0.113 n=20+20)
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 0c65bc7 into master Jun 24, 2020
@prymitive prymitive deleted the looppointer branch June 24, 2020 21:35
@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