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: support context params wrapping #20

Merged
merged 1 commit into from
Jun 14, 2023

Conversation

hbenhoud
Copy link
Collaborator

No description provided.

@hbenhoud hbenhoud self-assigned this Jun 12, 2023
@hbenhoud hbenhoud force-pushed the feat/params-from-context branch from 8a2b216 to 6f1b55f Compare June 12, 2023 16:47
@codecov
Copy link

codecov bot commented Jun 12, 2023

Codecov Report

Merging #20 (e8d70f6) into master (53b2a9b) will increase coverage by 0.13%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #20      +/-   ##
==========================================
+ Coverage   86.27%   86.41%   +0.13%     
==========================================
  Files          12       12              
  Lines        1771     1789      +18     
==========================================
+ Hits         1528     1546      +18     
  Misses        210      210              
  Partials       33       33              
Flag Coverage Δ
coverage.txt 86.41% <100.00%> (+0.13%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
error.go 54.54% <ø> (ø)
context.go 89.57% <100.00%> (+0.53%) ⬆️
params.go 95.00% <100.00%> (+5.00%) ⬆️

context.go Show resolved Hide resolved
@hbenhoud hbenhoud force-pushed the feat/params-from-context branch from 6f1b55f to 3e512e1 Compare June 12, 2023 18:50
context.go Show resolved Hide resolved
context.go Show resolved Hide resolved
@hbenhoud hbenhoud force-pushed the feat/params-from-context branch from 3e512e1 to 1b11329 Compare June 12, 2023 18:54
@hbenhoud hbenhoud requested review from pawndev and obito June 12, 2023 18:54
@hbenhoud hbenhoud force-pushed the feat/params-from-context branch from 1b11329 to d4f8af1 Compare June 12, 2023 18:57
@hbenhoud hbenhoud changed the title feat: support context params Wrapping feat: support context params wrapping Jun 12, 2023
context.go Show resolved Hide resolved
params.go Show resolved Hide resolved
params.go Outdated Show resolved Hide resolved
@hbenhoud hbenhoud force-pushed the feat/params-from-context branch from d4f8af1 to f3458a3 Compare June 13, 2023 15:10
@hbenhoud hbenhoud requested a review from tigerwill90 June 13, 2023 15:13
@hbenhoud hbenhoud force-pushed the feat/params-from-context branch from f3458a3 to 9a1383d Compare June 14, 2023 12:55
@hbenhoud hbenhoud force-pushed the feat/params-from-context branch from 9a1383d to e8d70f6 Compare June 14, 2023 12:56
Copy link
Owner

@tigerwill90 tigerwill90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

goos: linux
goarch: amd64
pkg: github.com/tigerwill90/fox
cpu: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
                    │   old.txt    │               new.txt                │
                    │    sec/op    │    sec/op     vs base                │
StaticAll-16          11.23µ ±  0%   11.27µ ±  1%        ~ (p=0.684 n=10)
GithubParamsAll-16    85.67n ±  1%   87.35n ±  3%   +1.96% (p=0.023 n=10)
OverlappingRoute-16   98.93n ±  0%   98.92n ±  1%        ~ (p=0.698 n=10)
StaticParallel-16     9.052n ± 12%   8.916n ±  1%   -1.50% (p=0.005 n=10)
CatchAll-16           33.76n ±  4%   32.23n ±  2%   -4.55% (p=0.001 n=10)
CatchAllParallel-16   5.192n ± 21%   4.439n ± 13%  -14.49% (p=0.023 n=10)
MultiWriter-16        106.1n ±  1%   106.6n ±  1%        ~ (p=0.362 n=10)
PathClean-16          805.6n ±  1%   762.7n ±  1%   -5.32% (p=0.000 n=10)
PathCleanLong-16      4.535m ± 25%   4.328m ± 25%        ~ (p=0.529 n=10)
geomean               338.6n         327.8n         -3.20%

No regression in benchmark, lgtm.

@tigerwill90 tigerwill90 merged commit a66e6fa into master Jun 14, 2023
@tigerwill90 tigerwill90 deleted the feat/params-from-context branch June 14, 2023 15:51
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.

4 participants