Skip to content

Simplify pop logic#2

Merged
christianrpetrin merged 2 commits intomasterfrom
simplify-pop-logic
Jan 5, 2019
Merged

Simplify pop logic#2
christianrpetrin merged 2 commits intomasterfrom
simplify-pop-logic

Conversation

@christianrpetrin
Copy link
Copy Markdown
Collaborator

@christianrpetrin christianrpetrin commented Jan 5, 2019

There's a very small performance improvement, but it's measurable.

benchstat old.txt new.txt
name                    old time/op    new time/op    delta
Microservice/0-4          4.65ns ± 0%    4.67ns ± 1%    ~     (p=0.211 n=8+9)
Microservice/1-4           146ns ± 0%     146ns ± 1%    ~     (p=0.736 n=10+10)
Microservice/10-4          689ns ± 1%     677ns ± 0%  -1.77%  (p=0.000 n=10+10)
Microservice/100-4        5.92µs ± 0%    5.90µs ± 1%    ~     (p=0.142 n=9+9)
Microservice/1000-4       49.3µs ± 0%    49.3µs ± 1%    ~     (p=0.549 n=9+10)
Microservice/10000-4       486µs ± 0%     488µs ± 2%    ~     (p=0.356 n=9+10)
Microservice/100000-4     4.87ms ± 1%    4.83ms ± 1%  -0.73%  (p=0.009 n=10+10)
Microservice/1000000-4    49.6ms ± 1%    49.6ms ± 1%    ~     (p=0.780 n=9+10)

name                    old alloc/op   new alloc/op   delta
Microservice/0-4           0.00B          0.00B         ~     (all equal)
Microservice/1-4            112B ± 0%      112B ± 0%    ~     (all equal)
Microservice/10-4           368B ± 0%      368B ± 0%    ~     (all equal)
Microservice/100-4        5.49kB ± 0%    5.49kB ± 0%    ~     (all equal)
Microservice/1000-4       21.9kB ± 0%    21.9kB ± 0%    ~     (all equal)
Microservice/10000-4       170kB ± 0%     170kB ± 0%    ~     (all equal)
Microservice/100000-4     1.62MB ± 0%    1.62MB ± 0%    ~     (all equal)
Microservice/1000000-4    16.1MB ± 0%    16.1MB ± 0%    ~     (all equal)

There's a very smal performance improvements, but it's measurable.

benchstat old.txt new.txt
name                    old time/op    new time/op    delta
Microservice/0-4          4.65ns ± 0%    4.67ns ± 1%    ~     (p=0.211 n=8+9)
Microservice/1-4           146ns ± 0%     146ns ± 1%    ~     (p=0.736 n=10+10)
Microservice/10-4          689ns ± 1%     677ns ± 0%  -1.77%  (p=0.000 n=10+10)
Microservice/100-4        5.92µs ± 0%    5.90µs ± 1%    ~     (p=0.142 n=9+9)
Microservice/1000-4       49.3µs ± 0%    49.3µs ± 1%    ~     (p=0.549 n=9+10)
Microservice/10000-4       486µs ± 0%     488µs ± 2%    ~     (p=0.356 n=9+10)
Microservice/100000-4     4.87ms ± 1%    4.83ms ± 1%  -0.73%  (p=0.009 n=10+10)
Microservice/1000000-4    49.6ms ± 1%    49.6ms ± 1%    ~     (p=0.780 n=9+10)

name                    old alloc/op   new alloc/op   delta
Microservice/0-4           0.00B          0.00B         ~     (all equal)
Microservice/1-4            112B ± 0%      112B ± 0%    ~     (all equal)
Microservice/10-4           368B ± 0%      368B ± 0%    ~     (all equal)
Microservice/100-4        5.49kB ± 0%    5.49kB ± 0%    ~     (all equal)
Microservice/1000-4       21.9kB ± 0%    21.9kB ± 0%    ~     (all equal)
Microservice/10000-4       170kB ± 0%     170kB ± 0%    ~     (all equal)
Microservice/100000-4     1.62MB ± 0%    1.62MB ± 0%    ~     (all equal)
Microservice/1000000-4    16.1MB ± 0%    16.1MB ± 0%    ~     (all equal)
@codecov-io
Copy link
Copy Markdown

codecov-io commented Jan 5, 2019

Codecov Report

Merging #2 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master     #2   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           1      1           
  Lines          47     45    -2     
=====================================
- Hits           47     45    -2
Impacted Files Coverage Δ
stack.go 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e9faa24...a7add05. Read the comment docs.

@christianrpetrin christianrpetrin merged commit 2b8ceb7 into master Jan 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants