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

Add web.DefaultService facade to simplify bootstrap #56

Merged
merged 8 commits into from
Feb 7, 2022
Merged

Conversation

vearutop
Copy link
Member

@vearutop vearutop commented Feb 7, 2022

No description provided.

@github-actions
Copy link

github-actions bot commented Feb 7, 2022

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go 96 (+1) 6292 (+74) 4554 (+36) 434 (+20) 1304 (+18) 705 (+2) 153.8K (+2.2K)
Go (test) 43 (+2) 4143 (+93) 3177 (+72) 127 (+1) 839 (+20) 113 (+2) 115.8K (+2.6K)
Makefile 3 127 91 12 24 11 (-1) 4K (-35B)
Markdown 3 397 (-26) 306 (-25) 0 91 (-1) 0 13.1K (-1.2K)
YAML 10 641 572 41 28 0 19.9K (-8B)

@github-actions
Copy link

github-actions bot commented Feb 7, 2022

Go API Changes

# github.com/swaggest/rest/web
## compatible changes
package added

# summary
Inferred base version: v0.2.19
Suggested version: v0.3.0

@github-actions
Copy link

github-actions bot commented Feb 7, 2022

Unit Test Coverage

total: (statements) 83.0%

Coverage diff with base branch
76c76
< github.com/swaggest/rest/nethttp/wrap.go	HandlerAs	75.0%
---
> github.com/swaggest/rest/nethttp/wrap.go	HandlerAs	81.8%
149c149,159
< total:	(statements)	82.5%
---
> github.com/swaggest/rest/web/service.go	DefaultService	100.0%
> github.com/swaggest/rest/web/service.go	Delete	100.0%
> github.com/swaggest/rest/web/service.go	Get	100.0%
> github.com/swaggest/rest/web/service.go	Head	100.0%
> github.com/swaggest/rest/web/service.go	Options	100.0%
> github.com/swaggest/rest/web/service.go	Patch	100.0%
> github.com/swaggest/rest/web/service.go	Post	100.0%
> github.com/swaggest/rest/web/service.go	Put	100.0%
> github.com/swaggest/rest/web/service.go	Trace	100.0%
> github.com/swaggest/rest/web/service.go	Docs	100.0%
> total:	(statements)	83.0%

@codecov
Copy link

codecov bot commented Feb 7, 2022

Codecov Report

Merging #56 (c89f21a) into master (21bc00d) will increase coverage by 0.66%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #56      +/-   ##
==========================================
+ Coverage   76.02%   76.68%   +0.66%     
==========================================
  Files          26       27       +1     
  Lines        1272     1304      +32     
==========================================
+ Hits          967     1000      +33     
+ Misses        190      189       -1     
  Partials      115      115              
Flag Coverage Δ
unittests 76.68% <100.00%> (+0.66%) ⬆️

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

Impacted Files Coverage Δ
nethttp/wrap.go 65.51% <100.00%> (+6.25%) ⬆️
web/service.go 100.00% <100.00%> (ø)

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 21bc00d...c89f21a. Read the comment docs.

@github-actions
Copy link

github-actions bot commented Feb 7, 2022

Benchmark Result

Benchmark diff with base branch
name                                    old time/op    new time/op    delta
pkg:github.com/swaggest/rest/jsonschema goos:linux goarch:amd64
RequestValidator_ValidateRequestData-2    1.44µs ±23%    1.35µs ± 4%    ~     (p=0.690 n=5+5)
pkg:github.com/swaggest/rest/request goos:linux goarch:amd64
Decoder_Decode-2                           682ns ± 0%     686ns ± 0%  +0.68%  (p=0.016 n=5+4)
DecoderFunc_Decode-2                      2.04µs ± 1%    2.05µs ± 1%    ~     (p=0.690 n=5+5)
Decoder_Decode_json-2                     22.0µs ± 3%    22.0µs ± 0%    ~     (p=0.548 n=5+5)
Decoder_Decode_queryObject-2              4.81µs ± 5%    4.74µs ± 0%    ~     (p=0.460 n=5+5)
Decoder_Decode_jsonParam-2                1.79µs ± 1%    1.79µs ± 0%    ~     (p=0.810 n=5+5)
DecoderFactory_SetDecoderFunc-2           1.67µs ± 1%    1.67µs ± 1%    ~     (p=0.270 n=5+5)
pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64
Middleware-2                              11.2µs ± 0%    11.1µs ± 0%  -0.89%  (p=0.008 n=5+5)
Middleware_control-2                      3.24µs ± 3%    3.22µs ± 4%    ~     (p=0.310 n=5+5)

name                                    old alloc/op   new alloc/op   delta
pkg:github.com/swaggest/rest/jsonschema goos:linux goarch:amd64
RequestValidator_ValidateRequestData-2    2.46kB ± 0%    2.46kB ± 0%    ~     (all equal)
pkg:github.com/swaggest/rest/request goos:linux goarch:amd64
Decoder_Decode-2                            440B ± 0%      440B ± 0%    ~     (all equal)
DecoderFunc_Decode-2                      1.51kB ± 0%    1.51kB ± 0%    ~     (all equal)
Decoder_Decode_json-2                     12.2kB ± 0%    12.2kB ± 0%    ~     (all equal)
Decoder_Decode_queryObject-2              2.00kB ± 0%    2.00kB ± 0%    ~     (all equal)
Decoder_Decode_jsonParam-2                  736B ± 0%      736B ± 0%    ~     (all equal)
DecoderFactory_SetDecoderFunc-2           1.02kB ± 0%    1.02kB ± 0%    ~     (all equal)
pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64
Middleware-2                              1.19kB ± 2%    1.15kB ± 3%    ~     (p=0.111 n=5+5)
Middleware_control-2                      11.2kB ± 0%    11.2kB ± 0%    ~     (all equal)

name                                    old allocs/op  new allocs/op  delta
pkg:github.com/swaggest/rest/jsonschema goos:linux goarch:amd64
RequestValidator_ValidateRequestData-2      8.00 ± 0%      8.00 ± 0%    ~     (all equal)
pkg:github.com/swaggest/rest/request goos:linux goarch:amd64
Decoder_Decode-2                            4.00 ± 0%      4.00 ± 0%    ~     (all equal)
DecoderFunc_Decode-2                        12.0 ± 0%      12.0 ± 0%    ~     (all equal)
Decoder_Decode_json-2                        177 ± 0%       177 ± 0%    ~     (all equal)
Decoder_Decode_queryObject-2                36.0 ± 0%      36.0 ± 0%    ~     (all equal)
Decoder_Decode_jsonParam-2                  13.0 ± 0%      13.0 ± 0%    ~     (all equal)
DecoderFactory_SetDecoderFunc-2             16.0 ± 0%      16.0 ± 0%    ~     (all equal)
pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64
Middleware-2                                11.0 ± 0%      11.0 ± 0%    ~     (all equal)
Middleware_control-2                        9.00 ± 0%      9.00 ± 0%    ~     (all equal)
Benchmark result
name                                    time/op
pkg:github.com/swaggest/rest/jsonschema goos:linux goarch:amd64
RequestValidator_ValidateRequestData-2  1.35µs ± 4%
pkg:github.com/swaggest/rest/request goos:linux goarch:amd64
Decoder_Decode-2                         686ns ± 0%
DecoderFunc_Decode-2                    2.05µs ± 1%
Decoder_Decode_json-2                   22.0µs ± 0%
Decoder_Decode_queryObject-2            4.74µs ± 0%
Decoder_Decode_jsonParam-2              1.79µs ± 0%
DecoderFactory_SetDecoderFunc-2         1.67µs ± 1%
pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64
Middleware-2                            11.1µs ± 0%
Middleware_control-2                    3.22µs ± 4%

name                                    alloc/op
pkg:github.com/swaggest/rest/jsonschema goos:linux goarch:amd64
RequestValidator_ValidateRequestData-2  2.46kB ± 0%
pkg:github.com/swaggest/rest/request goos:linux goarch:amd64
Decoder_Decode-2                          440B ± 0%
DecoderFunc_Decode-2                    1.51kB ± 0%
Decoder_Decode_json-2                   12.2kB ± 0%
Decoder_Decode_queryObject-2            2.00kB ± 0%
Decoder_Decode_jsonParam-2                736B ± 0%
DecoderFactory_SetDecoderFunc-2         1.02kB ± 0%
pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64
Middleware-2                            1.15kB ± 3%
Middleware_control-2                    11.2kB ± 0%

name                                    allocs/op
pkg:github.com/swaggest/rest/jsonschema goos:linux goarch:amd64
RequestValidator_ValidateRequestData-2    8.00 ± 0%
pkg:github.com/swaggest/rest/request goos:linux goarch:amd64
Decoder_Decode-2                          4.00 ± 0%
DecoderFunc_Decode-2                      12.0 ± 0%
Decoder_Decode_json-2                      177 ± 0%
Decoder_Decode_queryObject-2              36.0 ± 0%
Decoder_Decode_jsonParam-2                13.0 ± 0%
DecoderFactory_SetDecoderFunc-2           16.0 ± 0%
pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64
Middleware-2                              11.0 ± 0%
Middleware_control-2                      9.00 ± 0%

@github-actions
Copy link

github-actions bot commented Feb 7, 2022

Examples Benchmark Result

Benchmark diff with base branch
name                       old time/op    new time/op    delta
pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64
_directGzip-2                22.0µs ± 7%    21.3µs ± 1%     ~     (p=1.000 n=5+4)
_directGzipHead-2            21.8µs ±15%    21.4µs ± 1%     ~     (p=0.151 n=5+5)
_noDirectGzip-2               117µs ± 3%     120µs ± 2%     ~     (p=0.095 n=5+5)
_directGzip_decode-2          436µs ± 9%     403µs ± 4%   -7.60%  (p=0.016 n=5+5)
_noDirectGzip_decode-2        126µs ± 3%     120µs ± 2%   -4.98%  (p=0.008 n=5+5)
_jsonBody-2                  40.3µs ± 2%    38.1µs ± 3%   -5.42%  (p=0.008 n=5+5)
_jsonBodyValidation-2        43.0µs ± 2%    44.8µs ± 8%     ~     (p=0.056 n=5+5)
_outputHeaders-2             20.6µs ± 1%    22.6µs ± 3%   +9.91%  (p=0.008 n=5+5)
_requestResponseMapping-2    37.2µs ± 1%    41.3µs ± 1%  +10.84%  (p=0.008 n=5+5)
_validation-2                39.6µs ± 1%    41.5µs ± 4%   +4.94%  (p=0.008 n=5+5)
_noValidation-2              26.3µs ± 1%    26.9µs ± 1%   +2.07%  (p=0.008 n=5+5)
pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64
_directGzip-2                22.4µs ± 7%    22.2µs ± 9%     ~     (p=0.841 n=5+5)
_directGzipHead-2            23.6µs ±10%    21.5µs ± 3%   -8.90%  (p=0.008 n=5+5)
_noDirectGzip-2               129µs ± 4%     121µs ± 6%     ~     (p=0.056 n=5+5)
_directGzip_decode-2          409µs ± 3%     399µs ± 2%     ~     (p=0.095 n=5+5)
_noDirectGzip_decode-2        118µs ± 2%     117µs ± 3%     ~     (p=0.222 n=5+5)
_jsonBody-2                  39.0µs ± 3%    38.2µs ± 1%     ~     (p=0.238 n=5+5)
_jsonBodyValidation-2        47.7µs ± 2%    44.2µs ± 1%   -7.32%  (p=0.016 n=4+5)
_outputHeaders-2             21.0µs ± 1%    20.7µs ± 1%     ~     (p=0.056 n=5+5)
_requestResponseMapping-2    38.7µs ± 4%    41.0µs ± 2%   +6.06%  (p=0.008 n=5+5)
_validation-2                42.6µs ± 7%    41.2µs ± 3%     ~     (p=0.310 n=5+5)
_noValidation-2              41.0µs ± 2%    41.4µs ± 2%     ~     (p=0.421 n=5+5)
pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64
_notFoundSrv-2               24.9µs ± 2%    24.4µs ± 1%     ~     (p=0.286 n=5+4)
_ok-2                        25.1µs ± 3%    25.5µs ± 2%     ~     (p=0.095 n=5+5)
_invalidBody-2               34.9µs ± 1%    37.7µs ±18%   +8.08%  (p=0.032 n=5+5)

name                       old B:rcvd/op  new B:rcvd/op  delta
pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64
_directGzip-2                   639 ± 0%       639 ± 0%     ~     (all equal)
_directGzipHead-2               183 ± 0%       183 ± 0%     ~     (all equal)
_noDirectGzip-2               1.04k ± 0%     1.04k ± 0%     ~     (all equal)
_directGzip_decode-2            639 ± 0%       639 ± 0%     ~     (all equal)
_noDirectGzip_decode-2        1.04k ± 0%     1.04k ± 0%     ~     (all equal)
_jsonBody-2                     208 ± 0%       208 ± 0%     ~     (all equal)
_jsonBodyValidation-2           194 ± 0%       194 ± 0%     ~     (all equal)
_outputHeaders-2                155 ± 0%       155 ± 0%     ~     (all equal)
_requestResponseMapping-2      94.0 ± 0%      94.0 ± 0%     ~     (all equal)
_validation-2                   177 ± 0%       177 ± 0%     ~     (all equal)
_noValidation-2                 177 ± 0%       177 ± 0%     ~     (all equal)
pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64
_directGzip-2                   639 ± 0%       639 ± 0%     ~     (all equal)
_directGzipHead-2               183 ± 0%       183 ± 0%     ~     (all equal)
_noDirectGzip-2               1.04k ± 0%     1.04k ± 0%     ~     (all equal)
_directGzip_decode-2            639 ± 0%       639 ± 0%     ~     (all equal)
_noDirectGzip_decode-2        1.04k ± 0%     1.04k ± 0%     ~     (all equal)
_jsonBody-2                     208 ± 0%       208 ± 0%     ~     (all equal)
_jsonBodyValidation-2           194 ± 0%       194 ± 0%     ~     (all equal)
_outputHeaders-2                155 ± 0%       155 ± 0%     ~     (all equal)
_requestResponseMapping-2      94.0 ± 0%      94.0 ± 0%     ~     (all equal)
_validation-2                   177 ± 0%       177 ± 0%     ~     (all equal)
_noValidation-2                 177 ± 0%       177 ± 0%     ~     (all equal)
pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64
_notFoundSrv-2                  337 ± 0%       337 ± 0%     ~     (all equal)
_ok-2                           359 ± 0%       359 ± 0%     ~     (all equal)
_invalidBody-2                  435 ± 0%       435 ± 0%     ~     (all equal)

name                       old B:sent/op  new B:sent/op  delta
pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64
_directGzip-2                   103 ± 0%       103 ± 0%     ~     (all equal)
_directGzipHead-2               104 ± 0%       104 ± 0%     ~     (all equal)
_noDirectGzip-2                 117 ± 0%       117 ± 0%     ~     (all equal)
_directGzip_decode-2            116 ± 0%       116 ± 0%     ~     (all equal)
_noDirectGzip_decode-2          130 ± 0%       130 ± 0%     ~     (all equal)
_jsonBody-2                     188 ± 0%       188 ± 0%     ~     (all equal)
_jsonBodyValidation-2           192 ± 0%       192 ± 0%     ~     (all equal)
_outputHeaders-2               77.0 ± 0%      77.0 ± 0%     ~     (all equal)
_requestResponseMapping-2       169 ± 0%       169 ± 0%     ~     (all equal)
_validation-2                   170 ± 0%       170 ± 0%     ~     (all equal)
_noValidation-2                 173 ± 0%       173 ± 0%     ~     (all equal)
pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64
_directGzip-2                   103 ± 0%       103 ± 0%     ~     (all equal)
_directGzipHead-2               104 ± 0%       104 ± 0%     ~     (all equal)
_noDirectGzip-2                 117 ± 0%       117 ± 0%     ~     (all equal)
_directGzip_decode-2            116 ± 0%       116 ± 0%     ~     (all equal)
_noDirectGzip_decode-2          130 ± 0%       130 ± 0%     ~     (all equal)
_jsonBody-2                     188 ± 0%       188 ± 0%     ~     (all equal)
_jsonBodyValidation-2           192 ± 0%       192 ± 0%     ~     (all equal)
_outputHeaders-2               77.0 ± 0%      77.0 ± 0%     ~     (all equal)
_requestResponseMapping-2       169 ± 0%       169 ± 0%     ~     (all equal)
_validation-2                   170 ± 0%       170 ± 0%     ~     (all equal)
_noValidation-2                 173 ± 0%       173 ± 0%     ~     (all equal)
pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64
_notFoundSrv-2                 74.0 ± 0%      74.0 ± 0%     ~     (all equal)
_ok-2                          74.0 ± 0%      74.0 ± 0%     ~     (all equal)
_invalidBody-2                  137 ± 0%       137 ± 0%     ~     (all equal)

name                       old rps        new rps        delta
pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64
_directGzip-2                 45.6k ± 7%     46.9k ± 1%     ~     (p=1.000 n=5+4)
_directGzipHead-2             46.1k ±13%     46.7k ± 1%     ~     (p=0.151 n=5+5)
_noDirectGzip-2               8.52k ± 3%     8.33k ± 2%     ~     (p=0.095 n=5+5)
_directGzip_decode-2          2.30k ± 8%     2.48k ± 4%   +8.00%  (p=0.016 n=5+5)
_noDirectGzip_decode-2        7.92k ± 3%     8.34k ± 2%   +5.23%  (p=0.008 n=5+5)
_jsonBody-2                   24.8k ± 2%     26.3k ± 3%   +5.76%  (p=0.008 n=5+5)
_jsonBodyValidation-2         23.2k ± 2%     22.3k ± 7%     ~     (p=0.056 n=5+5)
_outputHeaders-2              48.6k ± 1%     44.2k ± 3%   -8.99%  (p=0.008 n=5+5)
_requestResponseMapping-2     26.9k ± 1%     24.2k ± 2%   -9.78%  (p=0.008 n=5+5)
_validation-2                 25.3k ± 1%     24.1k ± 4%   -4.62%  (p=0.008 n=5+5)
_noValidation-2               38.0k ± 1%     37.2k ± 1%   -2.03%  (p=0.008 n=5+5)
pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64
_directGzip-2                 44.7k ± 7%     45.2k ± 8%     ~     (p=0.841 n=5+5)
_directGzipHead-2             42.6k ±10%     46.6k ± 3%   +9.52%  (p=0.008 n=5+5)
_noDirectGzip-2               7.74k ± 4%     8.26k ± 6%     ~     (p=0.056 n=5+5)
_directGzip_decode-2          2.44k ± 3%     2.50k ± 2%     ~     (p=0.095 n=5+5)
_noDirectGzip_decode-2        8.44k ± 2%     8.52k ± 3%     ~     (p=0.222 n=5+5)
_jsonBody-2                   25.7k ± 3%     26.2k ± 1%     ~     (p=0.222 n=5+5)
_jsonBodyValidation-2         21.0k ± 2%     22.6k ± 1%   +7.89%  (p=0.016 n=4+5)
_outputHeaders-2              47.7k ± 1%     48.3k ± 1%     ~     (p=0.056 n=5+5)
_requestResponseMapping-2     25.8k ± 4%     24.4k ± 2%   -5.75%  (p=0.008 n=5+5)
_validation-2                 23.5k ± 7%     24.3k ± 3%     ~     (p=0.310 n=5+5)
_noValidation-2               24.4k ± 2%     24.2k ± 2%     ~     (p=0.421 n=5+5)
pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64
_notFoundSrv-2                40.1k ± 2%     39.8k ±11%     ~     (p=0.690 n=5+5)
_ok-2                         39.9k ± 3%     39.3k ± 2%     ~     (p=0.095 n=5+5)
_invalidBody-2                28.7k ± 1%     26.7k ±16%   -6.72%  (p=0.032 n=5+5)

name                       old alloc/op   new alloc/op   delta
pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64
_directGzip-2                3.92kB ± 0%    3.92kB ± 0%     ~     (p=0.381 n=5+5)
_directGzipHead-2            3.92kB ± 0%    3.92kB ± 0%     ~     (p=1.000 n=5+5)
_noDirectGzip-2              5.97kB ±21%    6.16kB ±27%     ~     (p=0.841 n=5+5)
_directGzip_decode-2          402kB ± 0%     402kB ± 0%     ~     (p=0.151 n=5+5)
_noDirectGzip_decode-2       5.32kB ± 7%    5.55kB ±11%     ~     (p=0.310 n=5+5)
_jsonBody-2                  13.2kB ± 0%    13.2kB ± 0%     ~     (p=0.881 n=5+5)
_jsonBodyValidation-2        19.0kB ± 0%    19.0kB ± 0%     ~     (p=0.278 n=5+5)
_outputHeaders-2             3.70kB ± 0%    3.71kB ± 0%     ~     (p=0.381 n=4+5)
_requestResponseMapping-2    16.6kB ± 0%    16.6kB ± 0%     ~     (p=0.651 n=5+5)
_validation-2                16.5kB ± 0%    16.5kB ± 0%     ~     (p=0.659 n=5+5)
_noValidation-2              6.13kB ± 0%    6.12kB ± 0%     ~     (p=0.524 n=5+5)
pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64
_directGzip-2                3.93kB ± 0%    3.93kB ± 0%     ~     (p=1.000 n=5+5)
_directGzipHead-2            3.93kB ± 0%    3.93kB ± 0%     ~     (p=0.492 n=5+5)
_noDirectGzip-2              6.16kB ±18%    5.94kB ±16%     ~     (p=0.841 n=5+5)
_directGzip_decode-2          402kB ± 0%     402kB ± 0%     ~     (p=0.794 n=5+5)
_noDirectGzip_decode-2       5.37kB ±12%    5.29kB ± 7%     ~     (p=0.841 n=5+5)
_jsonBody-2                  13.3kB ± 0%    13.3kB ± 0%     ~     (p=0.603 n=5+5)
_jsonBodyValidation-2        19.0kB ± 0%    19.0kB ± 0%     ~     (p=1.000 n=5+5)
_outputHeaders-2             3.70kB ± 0%    3.70kB ± 0%     ~     (p=0.794 n=5+5)
_requestResponseMapping-2    16.7kB ± 0%    16.7kB ± 0%     ~     (p=0.198 n=5+5)
_validation-2                16.6kB ± 0%    16.6kB ± 0%     ~     (p=0.571 n=5+5)
_noValidation-2              16.6kB ± 0%    16.6kB ± 0%     ~     (p=0.873 n=5+5)
pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64
_notFoundSrv-2               4.88kB ± 0%    4.88kB ± 0%     ~     (p=0.762 n=5+5)
_ok-2                        4.78kB ± 0%    4.78kB ± 0%     ~     (p=0.556 n=5+4)
_invalidBody-2               8.67kB ± 0%    8.67kB ± 0%     ~     (p=0.771 n=4+4)

name                       old allocs/op  new allocs/op  delta
pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64
_directGzip-2                  42.0 ± 0%      42.0 ± 0%     ~     (all equal)
_directGzipHead-2              42.0 ± 0%      42.0 ± 0%     ~     (all equal)
_noDirectGzip-2                49.2 ± 4%      49.4 ± 3%     ~     (p=1.000 n=5+5)
_directGzip_decode-2            500 ± 0%       500 ± 0%     ~     (all equal)
_noDirectGzip_decode-2         50.0 ± 0%      50.0 ± 0%     ~     (all equal)
_jsonBody-2                     127 ± 0%       127 ± 0%     ~     (all equal)
_jsonBodyValidation-2           183 ± 0%       183 ± 0%     ~     (all equal)
_outputHeaders-2               37.0 ± 0%      37.0 ± 0%     ~     (all equal)
_requestResponseMapping-2       123 ± 0%       123 ± 0%     ~     (all equal)
_validation-2                   152 ± 0%       152 ± 0%     ~     (all equal)
_noValidation-2                72.0 ± 0%      72.0 ± 0%     ~     (all equal)
pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64
_directGzip-2                  43.0 ± 0%      43.0 ± 0%     ~     (all equal)
_directGzipHead-2              43.0 ± 0%      43.0 ± 0%     ~     (all equal)
_noDirectGzip-2                50.6 ± 3%      50.2 ± 4%     ~     (p=1.000 n=5+5)
_directGzip_decode-2            500 ± 0%       501 ± 0%     ~     (p=0.238 n=5+4)
_noDirectGzip_decode-2         51.0 ± 0%      51.0 ± 0%     ~     (all equal)
_jsonBody-2                     128 ± 0%       128 ± 0%     ~     (all equal)
_jsonBodyValidation-2           184 ± 0%       184 ± 0%     ~     (all equal)
_outputHeaders-2               37.0 ± 0%      37.0 ± 0%     ~     (all equal)
_requestResponseMapping-2       124 ± 0%       124 ± 0%     ~     (all equal)
_validation-2                   153 ± 0%       153 ± 0%     ~     (all equal)
_noValidation-2                 153 ± 0%       153 ± 0%     ~     (all equal)
pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64
_notFoundSrv-2                 54.0 ± 0%      54.0 ± 0%     ~     (all equal)
_ok-2                          50.0 ± 0%      50.0 ± 0%     ~     (all equal)
_invalidBody-2                  100 ± 0%       100 ± 0%     ~     (all equal)

@vearutop vearutop merged commit 8066f6e into master Feb 7, 2022
@vearutop vearutop deleted the web-service branch February 7, 2022 23:43
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.

1 participant