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(ui): reduce webpack bundle size #1790

Merged
merged 7 commits into from
May 30, 2020
Merged

fix(ui): reduce webpack bundle size #1790

merged 7 commits into from
May 30, 2020

Conversation

prymitive
Copy link
Owner

No description provided.

@prymitive
Copy link
Owner Author

prymitive commented May 30, 2020

Webpack bundle size diff

Total diff: -34.5 KB

M build/static/js/6.b53c1eb9.chunk.js 569.5 KB 568.8 KB -731 B
M [no source] 18 KB 18 KB -29 B
- fast-deep-equal 702 B -702 B
M build/static/js/0.1c4c2eeb.chunk.js 184.5 KB 150.8 KB -33.8 KB
M [no source] 1.4 KB 1.3 KB -20 B
- object-hash 33.7 KB -33.7 KB

@prymitive
Copy link
Owner Author

prymitive commented May 30, 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.46ms ± 1%        5.50ms ± 2%  +0.74%  (p=0.006 n=18+20)
Decompress/Run-2                         3.96ms ± 5%        3.89ms ± 2%  -1.78%  (p=0.014 n=19+20)
CompressionAndDecompression/Run-2        9.89ms ± 1%        9.90ms ± 1%    ~     (p=0.728 n=19+20)
PullAlerts/0.17.0-2                      6.06ms ± 3%        6.23ms ± 0%  +2.81%  (p=0.000 n=20+16)
AlertsAPIMisses/0.17.0-2                 1.35ms ± 3%        1.41ms ± 3%  +4.07%  (p=0.000 n=20+18)
AlertsAPIHits/0.17.0-2                    881µs ± 4%         913µs ± 1%  +3.68%  (p=0.000 n=20+19)
pkg:github.com/prymitive/karma/internal/alertmanager goos:linux goarch:amd64
DedupAlerts/Run-2                         139µs ± 4%         137µs ± 1%    ~     (p=0.678 n=20+20)
DedupAutocomplete/Run-2                  84.3µs ± 0%        84.6µs ± 1%  +0.40%  (p=0.000 n=20+20)
DedupColors/Run-2                        18.7µs ± 1%        18.7µs ± 1%  -0.29%  (p=0.004 n=19+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.88M ± 0%         4.88M ± 0%  +0.02%  (p=0.000 n=19+19)
Decompress/Run-2                          2.99M ± 0%         2.99M ± 0%  +0.13%  (p=0.000 n=19+19)
CompressionAndDecompression/Run-2         4.88M ± 0%         4.89M ± 0%  +0.12%  (p=0.000 n=19+19)
PullAlerts/0.17.0-2                       2.94M ± 0%         2.95M ± 0%  +0.17%  (p=0.000 n=20+19)
AlertsAPIMisses/0.17.0-2                  3.34M ± 0%         3.35M ± 0%  +0.15%  (p=0.000 n=19+19)
AlertsAPIHits/0.17.0-2                    3.30M ± 0%         3.31M ± 0%  +0.15%  (p=0.000 n=16+16)

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.087 n=20+20)
CompressionAndDecompression/Run-2        5.38MB ± 0%        5.38MB ± 0%    ~     (all equal)
PullAlerts/0.17.0-2                      1.25MB ± 0%        1.25MB ± 0%  +0.01%  (p=0.014 n=20+19)
AlertsAPIMisses/0.17.0-2                 1.27MB ± 0%        1.28MB ± 0%  +0.30%  (p=0.000 n=19+20)
AlertsAPIHits/0.17.0-2                    311kB ± 1%         316kB ± 0%  +1.43%  (p=0.000 n=20+19)
pkg:github.com/prymitive/karma/internal/alertmanager goos:linux goarch:amd64
DedupAlerts/Run-2                        75.9kB ± 0%        75.9kB ± 0%    ~     (p=0.295 n=20+20)
DedupAutocomplete/Run-2                  39.9kB ± 0%        39.9kB ± 0%    ~     (p=0.238 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.3k ± 0%         22.3k ± 0%    ~     (all equal)
AlertsAPIMisses/0.17.0-2                  5.92k ± 0%         5.92k ± 0%    ~     (p=0.341 n=20+20)
AlertsAPIHits/0.17.0-2                    2.32k ± 0%         2.35k ± 0%  +1.21%  (p=0.000 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                     123 ± 0%           123 ± 0%    ~     (all equal)
DedupColors/Run-2                          43.0 ± 0%          43.0 ± 0%    ~     (all equal)

@prymitive prymitive merged commit 687377d into master May 30, 2020
@prymitive prymitive deleted the reduce-hash branch May 30, 2020 17:12
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 14, 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