Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@vearutop
Copy link
Member

No description provided.

@github-actions
Copy link

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
JSON 3 2160 (-4) 2160 (-4) 0 0 0 82.9K (-74B)

@github-actions
Copy link

Go API Changes

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

@github-actions
Copy link

Unit Test Coverage

total: (statements) 80.6%

Coverage of changed lines

No changes in testable statements.

Coverage diff with base branch

No changes in coverage.

Copy link

@llamapreview llamapreview bot left a comment

Choose a reason for hiding this comment

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

Auto Pull Request Review from LlamaPReview

Review Status: Automated Review Skipped

Dear contributor,

Thank you for your Pull Request. LlamaPReview has analyzed your changes and determined that this PR does not require an automated code review.

Analysis Result:

PR contains only dependency version updates and generated files, requiring no automated code review

We're continuously improving our PR analysis capabilities. Have thoughts on when and how LlamaPReview should perform automated reviews? Share your insights in our GitHub Discussions.

Best regards,
LlamaPReview Team

@github-actions
Copy link

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-4    1.14µs ± 0%    1.16µs ± 3%  +2.09%  (p=0.008 n=5+5)
pkg:github.com/swaggest/rest/request goos:linux goarch:amd64
Decoder_Decode-4                           602ns ± 3%     603ns ± 2%    ~     (p=0.690 n=5+5)
DecoderFunc_Decode-4                      1.67µs ± 2%    1.66µs ± 0%    ~     (p=0.937 n=5+4)
Decoder_Decode_json-4                     18.4µs ± 1%    18.3µs ± 0%    ~     (p=0.056 n=5+5)
Decoder_Decode_queryObject-4              3.95µs ± 0%    3.99µs ± 1%  +0.84%  (p=0.032 n=5+5)
Decoder_Decode_jsonParam-4                1.52µs ± 0%    1.52µs ± 1%    ~     (p=0.897 n=5+5)
DecoderFactory_SetDecoderFunc-4           1.36µs ± 0%    1.35µs ± 1%    ~     (p=0.111 n=5+5)
pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64
Middleware-4                              8.55µs ± 0%    8.71µs ± 2%  +1.96%  (p=0.016 n=4+5)
Middleware_control-4                      2.69µs ± 1%    2.70µs ± 3%    ~     (p=0.841 n=5+5)

name                                    old alloc/op   new alloc/op   delta
pkg:github.com/swaggest/rest/jsonschema goos:linux goarch:amd64
RequestValidator_ValidateRequestData-4    2.46kB ± 0%    2.46kB ± 0%    ~     (all equal)
pkg:github.com/swaggest/rest/request goos:linux goarch:amd64
Decoder_Decode-4                            440B ± 0%      440B ± 0%    ~     (all equal)
DecoderFunc_Decode-4                      1.53kB ± 0%    1.53kB ± 0%    ~     (all equal)
Decoder_Decode_json-4                     12.4kB ± 0%    12.4kB ± 0%    ~     (all equal)
Decoder_Decode_queryObject-4              2.01kB ± 0%    2.01kB ± 0%    ~     (all equal)
Decoder_Decode_jsonParam-4                  736B ± 0%      736B ± 0%    ~     (all equal)
DecoderFactory_SetDecoderFunc-4           1.02kB ± 0%    1.02kB ± 0%    ~     (all equal)
pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64
Middleware-4                              1.19kB ± 6%    1.19kB ± 4%    ~     (p=0.690 n=5+5)
Middleware_control-4                      11.1kB ± 0%    11.1kB ± 0%    ~     (all equal)

name                                    old allocs/op  new allocs/op  delta
pkg:github.com/swaggest/rest/jsonschema goos:linux goarch:amd64
RequestValidator_ValidateRequestData-4      8.00 ± 0%      8.00 ± 0%    ~     (all equal)
pkg:github.com/swaggest/rest/request goos:linux goarch:amd64
Decoder_Decode-4                            4.00 ± 0%      4.00 ± 0%    ~     (all equal)
DecoderFunc_Decode-4                        12.0 ± 0%      12.0 ± 0%    ~     (all equal)
Decoder_Decode_json-4                        177 ± 0%       177 ± 0%    ~     (all equal)
Decoder_Decode_queryObject-4                38.0 ± 0%      38.0 ± 0%    ~     (all equal)
Decoder_Decode_jsonParam-4                  12.0 ± 0%      12.0 ± 0%    ~     (all equal)
DecoderFactory_SetDecoderFunc-4             16.0 ± 0%      16.0 ± 0%    ~     (all equal)
pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64
Middleware-4                                11.0 ± 0%      11.0 ± 0%    ~     (all equal)
Middleware_control-4                        8.00 ± 0%      8.00 ± 0%    ~     (all equal)
Benchmark result
name                                    time/op
pkg:github.com/swaggest/rest/jsonschema goos:linux goarch:amd64
RequestValidator_ValidateRequestData-4  1.16µs ± 3%
pkg:github.com/swaggest/rest/request goos:linux goarch:amd64
Decoder_Decode-4                         603ns ± 2%
DecoderFunc_Decode-4                    1.66µs ± 0%
Decoder_Decode_json-4                   18.3µs ± 0%
Decoder_Decode_queryObject-4            3.99µs ± 1%
Decoder_Decode_jsonParam-4              1.52µs ± 1%
DecoderFactory_SetDecoderFunc-4         1.35µs ± 1%
pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64
Middleware-4                            8.71µs ± 2%
Middleware_control-4                    2.70µs ± 3%

name                                    alloc/op
pkg:github.com/swaggest/rest/jsonschema goos:linux goarch:amd64
RequestValidator_ValidateRequestData-4  2.46kB ± 0%
pkg:github.com/swaggest/rest/request goos:linux goarch:amd64
Decoder_Decode-4                          440B ± 0%
DecoderFunc_Decode-4                    1.53kB ± 0%
Decoder_Decode_json-4                   12.4kB ± 0%
Decoder_Decode_queryObject-4            2.01kB ± 0%
Decoder_Decode_jsonParam-4                736B ± 0%
DecoderFactory_SetDecoderFunc-4         1.02kB ± 0%
pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64
Middleware-4                            1.19kB ± 4%
Middleware_control-4                    11.1kB ± 0%

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

@github-actions
Copy link

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-4                16.7µs ± 0%    17.1µs ± 7%   +2.58%  (p=0.032 n=4+5)
_directGzipHead-4            16.9µs ± 3%    16.9µs ± 2%     ~     (p=1.000 n=5+5)
_noDirectGzip-4               106µs ± 1%     108µs ± 2%     ~     (p=0.095 n=5+5)
_directGzip_decode-4          339µs ± 2%     341µs ± 2%     ~     (p=0.310 n=5+5)
_noDirectGzip_decode-4        106µs ± 1%     107µs ± 0%     ~     (p=0.222 n=5+5)
_jsonBody-4                  36.3µs ± 1%    36.0µs ± 1%     ~     (p=0.310 n=5+5)
_jsonBodyValidation-4        40.1µs ± 2%    40.6µs ± 1%     ~     (p=0.151 n=5+5)
_outputHeaders-4             16.7µs ± 1%    17.0µs ± 1%   +1.45%  (p=0.016 n=5+5)
_requestResponseMapping-4    33.9µs ± 1%    33.6µs ± 2%     ~     (p=0.690 n=5+5)
_validation-4                36.2µs ± 1%    36.8µs ± 2%     ~     (p=0.056 n=5+5)
_noValidation-4              25.9µs ± 1%    26.1µs ± 1%     ~     (p=0.421 n=5+5)
pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64
_formOrJSON/form-4           19.7µs ± 1%    20.3µs ± 6%   +3.26%  (p=0.016 n=5+5)
_formOrJSON/json-4           23.3µs ± 5%    23.1µs ± 0%     ~     (p=1.000 n=5+5)
_directGzip-4                16.7µs ± 1%    17.2µs ± 1%   +2.67%  (p=0.008 n=5+5)
_directGzipHead-4            17.1µs ± 2%    17.6µs ± 4%   +2.94%  (p=0.032 n=5+5)
_noDirectGzip-4              94.7µs ± 0%    95.5µs ± 0%   +0.78%  (p=0.016 n=5+5)
_htmlResponse-4              29.9µs ± 1%    30.1µs ± 1%     ~     (p=0.095 n=5+5)
_jsonBodyManual-4            20.9µs ± 1%    21.2µs ± 1%   +1.49%  (p=0.016 n=5+5)
_jsonBody-4                  31.8µs ± 1%    32.0µs ± 1%     ~     (p=0.222 n=5+5)
_jsonBodyValidation-4        39.7µs ± 1%    40.4µs ± 3%     ~     (p=0.151 n=5+5)
_outputHeaders-4             28.8µs ± 2%    29.7µs ± 1%   +3.19%  (p=0.008 n=5+5)
_requestResponseMapping-4    33.3µs ± 3%    34.9µs ± 0%   +4.82%  (p=0.016 n=5+4)
_validation-4                36.3µs ± 1%    37.7µs ± 2%   +3.96%  (p=0.008 n=5+5)
_noValidation-4              26.0µs ± 1%    26.9µs ± 1%   +3.26%  (p=0.008 n=5+5)
pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64
_notFoundSrv-4               19.3µs ± 1%    20.0µs ±10%     ~     (p=0.151 n=5+5)
_ok-4                        19.9µs ±10%    19.6µs ± 1%     ~     (p=0.548 n=5+5)
_invalidBody-4               28.3µs ± 4%    28.4µs ± 5%     ~     (p=0.841 n=5+5)

name                       old 50%:ms     new 50%:ms     delta
pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64
_directGzip-4                  0.73 ± 5%      0.74 ± 5%     ~     (p=0.690 n=5+5)
_directGzipHead-4              0.72 ± 6%      0.74 ± 8%     ~     (p=0.421 n=5+5)
_noDirectGzip-4                4.84 ± 4%      4.84 ± 5%     ~     (p=1.000 n=5+5)
_directGzip_decode-4           11.1 ± 6%      11.5 ± 8%     ~     (p=0.222 n=5+5)
_noDirectGzip_decode-4         4.73 ± 5%      4.87 ± 3%     ~     (p=0.151 n=5+5)
_jsonBody-4                    1.51 ± 6%      1.48 ± 6%     ~     (p=0.341 n=5+5)
_jsonBodyValidation-4          1.64 ± 1%      1.70 ± 3%   +3.42%  (p=0.016 n=5+5)
_outputHeaders-4               0.73 ± 2%      0.72 ± 3%     ~     (p=0.841 n=5+5)
_requestResponseMapping-4      1.38 ± 9%      1.41 ± 9%     ~     (p=0.421 n=5+5)
_validation-4                  1.51 ± 6%      1.48 ± 3%     ~     (p=0.841 n=5+5)
_noValidation-4                1.07 ± 4%      1.07 ± 5%     ~     (p=1.000 n=5+5)
pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64
_formOrJSON/form-4             0.86 ± 5%      0.88 ± 7%     ~     (p=0.548 n=5+5)
_formOrJSON/json-4             0.97 ± 4%      1.01 ± 1%     ~     (p=0.056 n=5+5)
_directGzip-4                  0.72 ± 9%      0.75 ± 7%     ~     (p=0.151 n=5+5)
_directGzipHead-4              0.75 ± 6%      0.78 ± 3%     ~     (p=0.421 n=5+5)
_noDirectGzip-4                4.34 ± 5%      4.34 ± 2%     ~     (p=1.000 n=5+5)
_htmlResponse-4                1.28 ± 5%      1.28 ± 6%     ~     (p=0.841 n=5+5)
_jsonBodyManual-4              0.94 ± 3%      0.93 ±10%     ~     (p=0.151 n=5+5)
_jsonBody-4                    1.33 ± 3%      1.36 ± 4%     ~     (p=0.167 n=5+5)
_jsonBodyValidation-4          1.68 ± 7%      1.68 ± 7%     ~     (p=0.841 n=5+5)
_outputHeaders-4               1.16 ± 7%      1.25 ± 4%   +7.16%  (p=0.032 n=5+5)
_requestResponseMapping-4      1.34 ± 7%      1.45 ± 4%   +8.07%  (p=0.032 n=5+5)
_validation-4                  1.52 ± 4%      1.58 ± 4%     ~     (p=0.095 n=5+5)
_noValidation-4                1.12 ± 5%      1.11 ± 5%     ~     (p=1.000 n=5+5)
pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64
_notFoundSrv-4                 0.84 ± 5%      0.84 ± 5%     ~     (p=0.841 n=5+5)
_ok-4                          0.85 ± 5%      0.85 ± 6%     ~     (p=1.000 n=5+5)
_invalidBody-4                 1.17 ± 5%      1.16 ±11%     ~     (p=0.310 n=5+5)

name                       old 90%:ms     new 90%:ms     delta
pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64
_directGzip-4                  1.54 ± 6%      1.51 ± 6%     ~     (p=0.548 n=5+5)
_directGzipHead-4              1.54 ± 8%      1.50 ± 3%     ~     (p=0.643 n=5+5)
_noDirectGzip-4                10.0 ± 5%      10.4 ± 6%     ~     (p=0.151 n=5+5)
_directGzip_decode-4           33.4 ± 4%      33.7 ± 6%     ~     (p=1.000 n=5+5)
_noDirectGzip_decode-4         10.1 ± 6%      10.1 ± 4%     ~     (p=0.690 n=5+5)
_jsonBody-4                    3.29 ± 3%      3.22 ± 3%     ~     (p=0.310 n=5+5)
_jsonBodyValidation-4          3.54 ± 5%      3.69 ± 6%     ~     (p=0.151 n=5+5)
_outputHeaders-4               1.51 ± 2%      1.53 ± 2%     ~     (p=0.421 n=5+5)
_requestResponseMapping-4      3.11 ± 4%      3.08 ± 4%     ~     (p=0.548 n=5+5)
_validation-4                  3.31 ± 5%      3.34 ± 6%     ~     (p=0.841 n=5+5)
_noValidation-4                2.38 ± 3%      2.42 ± 3%     ~     (p=0.421 n=5+5)
pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64
_formOrJSON/form-4             1.78 ± 3%      1.83 ± 8%     ~     (p=0.571 n=5+5)
_formOrJSON/json-4             2.18 ± 5%      2.14 ± 3%     ~     (p=0.690 n=5+5)
_directGzip-4                  1.54 ± 5%      1.56 ± 5%     ~     (p=0.421 n=5+5)
_directGzipHead-4              1.56 ± 3%      1.56 ± 2%     ~     (p=1.000 n=5+5)
_noDirectGzip-4                8.94 ± 3%      9.05 ± 3%     ~     (p=0.421 n=5+5)
_htmlResponse-4                2.78 ± 3%      2.78 ± 2%     ~     (p=0.841 n=5+5)
_jsonBodyManual-4              1.93 ± 2%      1.91 ± 3%     ~     (p=1.000 n=5+5)
_jsonBody-4                    2.92 ± 3%      2.99 ± 5%     ~     (p=0.421 n=5+5)
_jsonBodyValidation-4          3.64 ± 3%      3.67 ± 7%     ~     (p=1.000 n=5+5)
_outputHeaders-4               2.74 ± 3%      2.80 ± 7%     ~     (p=0.841 n=5+5)
_requestResponseMapping-4      3.09 ± 3%      3.16 ± 4%     ~     (p=0.198 n=5+5)
_validation-4                  3.35 ± 4%      3.62 ± 5%   +8.18%  (p=0.008 n=5+5)
_noValidation-4                2.46 ± 3%      2.51 ± 4%     ~     (p=0.310 n=5+5)
pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64
_notFoundSrv-4                 1.71 ± 5%      1.81 ± 4%     ~     (p=0.095 n=5+5)
_ok-4                          1.80 ± 6%      1.79 ± 2%     ~     (p=0.841 n=5+5)
_invalidBody-4                 2.69 ± 5%      2.72 ± 8%     ~     (p=1.000 n=5+5)

name                       old 99%:ms     new 99%:ms     delta
pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64
_directGzip-4                  2.51 ± 5%      2.61 ±33%     ~     (p=0.556 n=4+5)
_directGzipHead-4              2.71 ±15%      2.59 ± 6%     ~     (p=0.841 n=5+5)
_noDirectGzip-4                15.7 ± 4%      16.1 ±14%     ~     (p=1.000 n=5+5)
_directGzip_decode-4           61.8 ±11%      61.7 ± 5%     ~     (p=0.690 n=5+5)
_noDirectGzip_decode-4         15.5 ± 4%      15.5 ± 6%     ~     (p=0.841 n=5+5)
_jsonBody-4                    5.07 ± 5%      5.11 ± 5%     ~     (p=0.548 n=5+5)
_jsonBodyValidation-4          5.87 ± 7%      5.89 ± 3%     ~     (p=0.548 n=5+5)
_outputHeaders-4               2.61 ± 4%      2.54 ± 4%     ~     (p=0.095 n=5+5)
_requestResponseMapping-4      4.93 ± 4%      4.79 ± 5%     ~     (p=0.056 n=5+5)
_validation-4                  5.16 ± 4%      5.51 ± 4%   +6.73%  (p=0.016 n=5+5)
_noValidation-4                3.88 ± 3%      3.97 ± 3%     ~     (p=0.135 n=5+5)
pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64
_formOrJSON/form-4             2.86 ± 4%      2.82 ± 4%     ~     (p=1.000 n=5+4)
_formOrJSON/json-4             3.71 ±27%      3.40 ± 4%     ~     (p=0.095 n=5+5)
_directGzip-4                  2.54 ± 4%      2.55 ± 6%     ~     (p=0.841 n=5+5)
_directGzipHead-4              2.63 ± 5%      2.73 ± 3%     ~     (p=0.095 n=5+5)
_noDirectGzip-4                13.7 ± 3%      14.0 ± 4%     ~     (p=0.135 n=5+5)
_htmlResponse-4                4.33 ± 4%      4.52 ± 7%     ~     (p=0.151 n=5+5)
_jsonBodyManual-4              3.10 ± 4%      3.14 ± 4%     ~     (p=0.548 n=5+5)
_jsonBody-4                    4.59 ± 6%      4.71 ± 7%     ~     (p=0.310 n=5+5)
_jsonBodyValidation-4          5.66 ± 4%      5.79 ±10%     ~     (p=0.690 n=5+5)
_outputHeaders-4               4.31 ± 6%      4.39 ± 5%     ~     (p=0.421 n=5+5)
_requestResponseMapping-4      4.78 ± 4%      4.79 ± 4%     ~     (p=1.000 n=5+5)
_validation-4                  5.00 ± 5%      5.23 ± 6%     ~     (p=0.222 n=5+5)
_noValidation-4                4.02 ± 4%      4.24 ± 4%   +5.37%  (p=0.008 n=5+5)
pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64
_notFoundSrv-4                 2.76 ± 3%      2.74 ± 4%     ~     (p=0.556 n=5+4)
_ok-4                          2.77 ± 2%      2.86 ± 7%     ~     (p=0.413 n=4+5)
_invalidBody-4                 4.72 ± 3%      4.67 ± 7%     ~     (p=1.000 n=5+5)

name                       old 99.9%:ms   new 99.9%:ms   delta
pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64
_directGzip-4                  4.53 ±56%      4.11 ±42%     ~     (p=0.421 n=5+5)
_directGzipHead-4              4.18 ±18%      4.64 ±29%     ~     (p=0.548 n=5+5)
_noDirectGzip-4                20.5 ± 9%      20.1 ± 3%     ~     (p=0.905 n=5+4)
_directGzip_decode-4           90.8 ±20%      86.5 ± 5%     ~     (p=0.548 n=5+5)
_noDirectGzip_decode-4         20.9 ±13%      20.0 ± 2%     ~     (p=0.730 n=5+4)
_jsonBody-4                    7.55 ±10%      7.39 ± 4%     ~     (p=0.841 n=5+5)
_jsonBodyValidation-4          8.40 ±11%      8.66 ± 7%     ~     (p=0.421 n=5+5)
_outputHeaders-4               3.96 ±18%      3.92 ±19%     ~     (p=0.690 n=5+5)
_requestResponseMapping-4      7.12 ± 5%      6.78 ±11%     ~     (p=0.222 n=5+5)
_validation-4                  7.48 ±11%      7.80 ±20%     ~     (p=0.841 n=5+5)
_noValidation-4                5.72 ± 9%      5.51 ± 9%     ~     (p=0.421 n=5+5)
pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64
_formOrJSON/form-4             3.95 ± 9%      3.85 ± 6%     ~     (p=0.905 n=5+4)
_formOrJSON/json-4             5.01 ±38%      4.61 ± 3%     ~     (p=0.643 n=5+5)
_directGzip-4                  3.95 ± 2%      3.92 ±15%     ~     (p=0.683 n=4+5)
_directGzipHead-4              4.04 ±18%      4.51 ± 6%     ~     (p=0.095 n=5+5)
_noDirectGzip-4                19.9 ± 9%      20.5 ±14%     ~     (p=0.690 n=5+5)
_htmlResponse-4                6.17 ± 7%      6.19 ± 5%     ~     (p=0.651 n=5+5)
_jsonBodyManual-4              4.52 ± 9%      4.77 ± 3%     ~     (p=0.095 n=5+5)
_jsonBody-4                    6.09 ± 4%      6.38 ± 5%   +4.69%  (p=0.032 n=5+5)
_jsonBodyValidation-4          8.19 ±11%      8.17 ± 8%     ~     (p=0.937 n=5+5)
_outputHeaders-4               6.13 ±11%      6.26 ± 6%     ~     (p=1.000 n=5+5)
_requestResponseMapping-4      6.65 ±11%      7.48 ±10%     ~     (p=0.151 n=5+5)
_validation-4                  6.83 ± 7%      7.70 ±18%  +12.88%  (p=0.032 n=5+5)
_noValidation-4                5.70 ± 9%      6.06 ±10%     ~     (p=0.310 n=5+5)
pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64
_notFoundSrv-4                 4.09 ±11%      3.86 ± 1%     ~     (p=0.413 n=5+4)
_ok-4                          4.54 ±39%      4.02 ± 7%     ~     (p=0.421 n=5+5)
_invalidBody-4                 6.60 ± 5%      6.58 ±19%     ~     (p=0.841 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-4                   630 ± 0%       630 ± 0%     ~     (all equal)
_directGzipHead-4               174 ± 0%       174 ± 0%     ~     (all equal)
_noDirectGzip-4               1.03k ± 0%     1.03k ± 0%     ~     (all equal)
_directGzip_decode-4            630 ± 0%       630 ± 0%     ~     (all equal)
_noDirectGzip_decode-4        1.03k ± 0%     1.03k ± 0%     ~     (all equal)
_jsonBody-4                     199 ± 0%       199 ± 0%     ~     (all equal)
_jsonBodyValidation-4           185 ± 0%       185 ± 0%     ~     (all equal)
_outputHeaders-4                146 ± 0%       146 ± 0%     ~     (all equal)
_requestResponseMapping-4      94.0 ± 0%      94.0 ± 0%     ~     (all equal)
_validation-4                   168 ± 0%       168 ± 0%     ~     (all equal)
_noValidation-4                 168 ± 0%       168 ± 0%     ~     (all equal)
pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64
_formOrJSON/form-4              155 ± 0%       155 ± 0%     ~     (all equal)
_formOrJSON/json-4              156 ± 0%       156 ± 0%     ~     (all equal)
_directGzip-4                   638 ± 0%       638 ± 0%     ~     (all equal)
_directGzipHead-4               182 ± 0%       182 ± 0%     ~     (all equal)
_noDirectGzip-4               1.04k ± 0%     1.04k ± 0%     ~     (all equal)
_htmlResponse-4                 355 ± 0%       355 ± 0%     ~     (all equal)
_jsonBodyManual-4               207 ± 0%       207 ± 0%     ~     (all equal)
_jsonBody-4                     207 ± 0%       207 ± 0%     ~     (all equal)
_jsonBodyValidation-4           193 ± 0%       193 ± 0%     ~     (all equal)
_outputHeaders-4                214 ± 0%       214 ± 0%     ~     (all equal)
_requestResponseMapping-4       108 ± 0%       108 ± 0%     ~     (all equal)
_validation-4                   176 ± 0%       176 ± 0%     ~     (all equal)
_noValidation-4                 176 ± 0%       176 ± 0%     ~     (all equal)
pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64
_notFoundSrv-4                  322 ± 0%       322 ± 0%     ~     (all equal)
_ok-4                           344 ± 0%       344 ± 0%     ~     (all equal)
_invalidBody-4                  420 ± 0%       420 ± 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-4                   103 ± 0%       103 ± 0%     ~     (all equal)
_directGzipHead-4               104 ± 0%       104 ± 0%     ~     (all equal)
_noDirectGzip-4                 117 ± 0%       117 ± 0%     ~     (all equal)
_directGzip_decode-4            116 ± 0%       116 ± 0%     ~     (all equal)
_noDirectGzip_decode-4          130 ± 0%       130 ± 0%     ~     (all equal)
_jsonBody-4                     188 ± 0%       188 ± 0%     ~     (all equal)
_jsonBodyValidation-4           192 ± 0%       192 ± 0%     ~     (all equal)
_outputHeaders-4               77.0 ± 0%      77.0 ± 0%     ~     (all equal)
_requestResponseMapping-4       169 ± 0%       169 ± 0%     ~     (all equal)
_validation-4                   170 ± 0%       170 ± 0%     ~     (all equal)
_noValidation-4                 173 ± 0%       173 ± 0%     ~     (all equal)
pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64
_formOrJSON/form-4              170 ± 0%       170 ± 0%     ~     (all equal)
_formOrJSON/json-4              162 ± 0%       162 ± 0%     ~     (all equal)
_directGzip-4                   103 ± 0%       103 ± 0%     ~     (all equal)
_directGzipHead-4               104 ± 0%       104 ± 0%     ~     (all equal)
_noDirectGzip-4                 117 ± 0%       117 ± 0%     ~     (all equal)
_htmlResponse-4                 108 ± 0%       108 ± 0%     ~     (all equal)
_jsonBodyManual-4               195 ± 0%       195 ± 0%     ~     (all equal)
_jsonBody-4                     188 ± 0%       188 ± 0%     ~     (all equal)
_jsonBodyValidation-4           192 ± 0%       192 ± 0%     ~     (all equal)
_outputHeaders-4               88.0 ± 0%      88.0 ± 0%     ~     (all equal)
_requestResponseMapping-4       169 ± 0%       169 ± 0%     ~     (all equal)
_validation-4                   170 ± 0%       170 ± 0%     ~     (all equal)
_noValidation-4                 173 ± 0%       173 ± 0%     ~     (all equal)
pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64
_notFoundSrv-4                 74.0 ± 0%      74.0 ± 0%     ~     (all equal)
_ok-4                          74.0 ± 0%      74.0 ± 0%     ~     (all equal)
_invalidBody-4                  137 ± 0%       137 ± 0%     ~     (all equal)

name                       old rps        new rps        delta
pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64
_directGzip-4                 59.9k ± 0%     58.5k ± 7%   -2.40%  (p=0.032 n=4+5)
_directGzipHead-4             59.1k ± 3%     59.0k ± 2%     ~     (p=1.000 n=5+5)
_noDirectGzip-4               9.43k ± 1%     9.28k ± 2%     ~     (p=0.095 n=5+5)
_directGzip_decode-4          2.95k ± 2%     2.94k ± 2%     ~     (p=0.341 n=5+5)
_noDirectGzip_decode-4        9.44k ± 1%     9.39k ± 0%     ~     (p=0.222 n=5+5)
_jsonBody-4                   27.6k ± 1%     27.7k ± 1%     ~     (p=0.310 n=5+5)
_jsonBodyValidation-4         24.9k ± 2%     24.6k ± 1%     ~     (p=0.095 n=5+5)
_outputHeaders-4              59.8k ± 1%     58.9k ± 1%   -1.44%  (p=0.016 n=5+5)
_requestResponseMapping-4     29.5k ± 1%     29.8k ± 2%     ~     (p=0.690 n=5+5)
_validation-4                 27.6k ± 1%     27.2k ± 2%     ~     (p=0.056 n=5+5)
_noValidation-4               38.6k ± 1%     38.4k ± 1%     ~     (p=0.421 n=5+5)
pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64
_formOrJSON/form-4            50.8k ± 1%     49.2k ± 6%   -3.07%  (p=0.016 n=5+5)
_formOrJSON/json-4            42.9k ± 5%     43.2k ± 0%     ~     (p=1.000 n=5+5)
_directGzip-4                 59.8k ± 1%     58.3k ± 1%   -2.60%  (p=0.008 n=5+5)
_directGzipHead-4             58.5k ± 2%     56.8k ± 4%   -2.83%  (p=0.032 n=5+5)
_noDirectGzip-4               10.6k ± 0%     10.5k ± 0%   -0.77%  (p=0.016 n=5+5)
_htmlResponse-4               33.4k ± 1%     33.2k ± 1%     ~     (p=0.063 n=5+5)
_jsonBodyManual-4             47.8k ± 1%     47.1k ± 1%   -1.46%  (p=0.016 n=5+5)
_jsonBody-4                   31.4k ± 1%     31.2k ± 1%     ~     (p=0.222 n=5+5)
_jsonBodyValidation-4         25.2k ± 1%     24.8k ± 4%     ~     (p=0.151 n=5+5)
_outputHeaders-4              34.7k ± 2%     33.6k ± 1%   -3.10%  (p=0.008 n=5+5)
_requestResponseMapping-4     30.0k ± 2%     28.6k ± 0%   -4.63%  (p=0.016 n=5+4)
_validation-4                 27.6k ± 1%     26.5k ± 2%   -3.80%  (p=0.008 n=5+5)
_noValidation-4               38.4k ± 1%     37.2k ± 1%   -3.15%  (p=0.008 n=5+5)
pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64
_notFoundSrv-4                51.8k ± 1%     50.2k ± 9%     ~     (p=0.151 n=5+5)
_ok-4                         50.3k ±10%     51.1k ± 1%     ~     (p=0.548 n=5+5)
_invalidBody-4                35.3k ± 4%     35.3k ± 5%     ~     (p=0.841 n=5+5)

name                       old alloc/op   new alloc/op   delta
pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64
_directGzip-4                4.04kB ± 0%    4.04kB ± 0%     ~     (p=1.000 n=5+5)
_directGzipHead-4            4.04kB ± 0%    4.04kB ± 0%     ~     (p=0.714 n=5+5)
_noDirectGzip-4              7.68kB ±16%    7.51kB ±32%     ~     (p=0.548 n=5+5)
_directGzip_decode-4          399kB ± 0%     399kB ± 0%     ~     (p=0.548 n=5+5)
_noDirectGzip_decode-4       6.78kB ±19%    6.68kB ± 8%     ~     (p=1.000 n=5+5)
_jsonBody-4                  13.7kB ± 0%    13.7kB ± 0%     ~     (p=0.849 n=5+5)
_jsonBodyValidation-4        19.3kB ± 0%    19.3kB ± 0%   +0.08%  (p=0.024 n=5+5)
_outputHeaders-4             3.70kB ± 0%    3.71kB ± 0%     ~     (p=0.278 n=5+5)
_requestResponseMapping-4    16.7kB ± 0%    16.7kB ± 0%     ~     (p=0.198 n=5+5)
_validation-4                16.6kB ± 0%    16.6kB ± 0%     ~     (p=0.643 n=5+5)
_noValidation-4              7.92kB ± 0%    7.92kB ± 0%     ~     (p=0.333 n=5+5)
pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64
_formOrJSON/form-4           6.25kB ± 0%    6.24kB ± 0%     ~     (p=0.667 n=5+5)
_formOrJSON/json-4           6.63kB ± 0%    6.64kB ± 0%     ~     (p=0.270 n=5+5)
_directGzip-4                4.05kB ± 0%    4.05kB ± 0%     ~     (p=1.000 n=4+4)
_directGzipHead-4            4.05kB ± 0%    4.05kB ± 0%     ~     (p=0.286 n=5+5)
_noDirectGzip-4              7.66kB ±21%    7.65kB ±19%     ~     (p=1.000 n=5+5)
_htmlResponse-4              8.61kB ± 0%    8.61kB ± 0%     ~     (p=0.190 n=5+5)
_jsonBodyManual-4            4.99kB ± 0%    4.99kB ± 0%     ~     (p=0.214 n=5+5)
_jsonBody-4                  10.8kB ± 0%    10.8kB ± 0%     ~     (p=0.286 n=5+5)
_jsonBodyValidation-4        19.3kB ± 0%    19.3kB ± 0%     ~     (p=0.238 n=5+4)
_outputHeaders-4             10.4kB ± 0%    10.4kB ± 0%     ~     (p=0.214 n=5+5)
_requestResponseMapping-4    16.7kB ± 0%    16.7kB ± 0%     ~     (p=0.730 n=5+5)
_validation-4                16.6kB ± 0%    16.6kB ± 0%     ~     (p=0.405 n=5+5)
_noValidation-4              7.96kB ± 0%    7.95kB ± 0%     ~     (p=1.000 n=5+5)
pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64
_notFoundSrv-4               5.31kB ± 0%    5.31kB ± 0%     ~     (p=1.000 n=5+5)
_ok-4                        5.22kB ± 0%    5.22kB ± 0%     ~     (p=0.829 n=4+4)
_invalidBody-4               8.93kB ± 0%    8.92kB ± 0%     ~     (p=0.886 n=4+4)

name                       old allocs/op  new allocs/op  delta
pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64
_directGzip-4                  43.0 ± 0%      43.0 ± 0%     ~     (all equal)
_directGzipHead-4              43.0 ± 0%      43.0 ± 0%     ~     (all equal)
_noDirectGzip-4                50.2 ± 4%      50.2 ± 4%     ~     (p=1.000 n=5+5)
_directGzip_decode-4            488 ± 0%       488 ± 0%     ~     (p=1.000 n=5+5)
_noDirectGzip_decode-4         51.0 ± 0%      51.0 ± 0%     ~     (all equal)
_jsonBody-4                     131 ± 0%       131 ± 0%     ~     (all equal)
_jsonBodyValidation-4           184 ± 0%       184 ± 0%     ~     (all equal)
_outputHeaders-4               36.0 ± 0%      36.0 ± 0%     ~     (all equal)
_requestResponseMapping-4       122 ± 0%       122 ± 0%     ~     (all equal)
_validation-4                   153 ± 0%       153 ± 0%     ~     (all equal)
_noValidation-4                91.0 ± 0%      91.0 ± 0%     ~     (all equal)
pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64
_formOrJSON/form-4             60.0 ± 0%      60.0 ± 0%     ~     (all equal)
_formOrJSON/json-4             66.0 ± 0%      66.0 ± 0%     ~     (all equal)
_directGzip-4                  44.0 ± 0%      44.0 ± 0%     ~     (all equal)
_directGzipHead-4              44.0 ± 0%      44.0 ± 0%     ~     (all equal)
_noDirectGzip-4                51.2 ± 4%      51.2 ± 4%     ~     (p=1.000 n=5+5)
_htmlResponse-4                 143 ± 0%       143 ± 0%     ~     (all equal)
_jsonBodyManual-4              50.0 ± 0%      50.0 ± 0%     ~     (all equal)
_jsonBody-4                     101 ± 0%       101 ± 0%     ~     (all equal)
_jsonBodyValidation-4           185 ± 0%       185 ± 0%     ~     (all equal)
_outputHeaders-4                110 ± 0%       110 ± 0%     ~     (all equal)
_requestResponseMapping-4       123 ± 0%       123 ± 0%     ~     (all equal)
_validation-4                   153 ± 0%       154 ± 0%     ~     (p=1.000 n=5+5)
_noValidation-4                92.0 ± 0%      92.0 ± 0%     ~     (all equal)
pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64
_notFoundSrv-4                 54.0 ± 0%      54.0 ± 0%     ~     (all equal)
_ok-4                          50.0 ± 0%      50.0 ± 0%     ~     (all equal)
_invalidBody-4                 98.0 ± 0%      98.0 ± 0%     ~     (all equal)

@vearutop vearutop merged commit 148a25c into master Jul 22, 2025
9 checks passed
@vearutop vearutop deleted the upd-openapi branch July 22, 2025 08:31
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