Skip to content

Conversation

vearutop
Copy link
Member

No description provided.

Copy link

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes

Copy link

Go API Changes

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

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 only contains version updates and formatting changes

Technical Context:

Version and formatting changes detected, which include:

  • Package version updates
  • Dependency version changes
  • Code formatting adjustments
  • Whitespace modifications
  • Structural formatting changes

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

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.13µs ± 1%    1.13µs ± 2%    ~     (p=0.556 n=5+5)
pkg:github.com/swaggest/rest/request goos:linux goarch:amd64
Decoder_Decode-4                           579ns ± 1%     585ns ± 0%  +1.16%  (p=0.016 n=5+4)
DecoderFunc_Decode-4                      1.64µs ± 1%    1.65µs ± 0%    ~     (p=0.056 n=5+5)
Decoder_Decode_json-4                     18.7µs ± 1%    18.7µs ± 1%    ~     (p=0.548 n=5+5)
Decoder_Decode_queryObject-4              3.99µs ± 1%    3.97µs ± 0%  -0.49%  (p=0.032 n=5+4)
Decoder_Decode_jsonParam-4                1.53µs ± 0%    1.53µs ± 0%    ~     (p=0.222 n=5+5)
DecoderFactory_SetDecoderFunc-4           1.34µs ± 0%    1.34µs ± 0%  -0.52%  (p=0.040 n=5+5)
pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64
Middleware-4                              11.3µs ± 2%    11.3µs ± 1%    ~     (p=0.310 n=5+5)
Middleware_control-4                      2.73µs ± 1%    2.77µs ± 4%    ~     (p=0.421 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.17kB ± 1%    1.16kB ± 4%    ~     (p=0.897 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.13µs ± 2%
pkg:github.com/swaggest/rest/request goos:linux goarch:amd64
Decoder_Decode-4                         585ns ± 0%
DecoderFunc_Decode-4                    1.65µs ± 0%
Decoder_Decode_json-4                   18.7µs ± 1%
Decoder_Decode_queryObject-4            3.97µs ± 0%
Decoder_Decode_jsonParam-4              1.53µs ± 0%
DecoderFactory_SetDecoderFunc-4         1.34µs ± 0%
pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64
Middleware-4                            11.3µs ± 1%
Middleware_control-4                    2.77µs ± 4%

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.16kB ± 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%

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                17.5µs ± 9%    16.8µs ± 1%    ~     (p=0.286 n=5+4)
_directGzipHead-4            16.7µs ± 2%    16.6µs ± 1%    ~     (p=0.421 n=5+5)
_noDirectGzip-4              93.8µs ± 1%    93.4µs ± 1%    ~     (p=0.310 n=5+5)
_directGzip_decode-4          318µs ± 2%     322µs ± 2%    ~     (p=0.151 n=5+5)
_noDirectGzip_decode-4       93.9µs ± 1%    93.9µs ± 1%    ~     (p=1.000 n=5+5)
_jsonBody-4                  35.5µs ± 0%    35.5µs ± 1%    ~     (p=1.000 n=5+5)
_jsonBodyValidation-4        39.8µs ± 1%    40.3µs ± 0%  +1.30%  (p=0.008 n=5+5)
_outputHeaders-4             16.7µs ± 1%    16.8µs ± 0%    ~     (p=0.222 n=5+5)
_requestResponseMapping-4    33.5µs ± 3%    33.8µs ± 1%    ~     (p=0.841 n=5+5)
_validation-4                36.2µs ± 1%    36.3µs ± 0%    ~     (p=0.222 n=5+5)
_noValidation-4              25.9µs ± 2%    26.1µs ± 2%    ~     (p=0.548 n=5+5)
pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64
_formOrJSON/form-4           19.6µs ± 0%    20.4µs ± 9%  +3.91%  (p=0.008 n=5+5)
_formOrJSON/json-4           22.7µs ± 1%    23.1µs ± 1%  +1.64%  (p=0.016 n=4+5)
_directGzip-4                16.8µs ± 0%    16.9µs ± 1%  +0.72%  (p=0.008 n=5+5)
_directGzipHead-4            17.0µs ± 3%    17.1µs ± 3%    ~     (p=1.000 n=5+5)
_noDirectGzip-4               106µs ± 1%     107µs ± 0%    ~     (p=0.056 n=5+5)
_htmlResponse-4              30.6µs ± 1%    30.6µs ± 1%    ~     (p=0.310 n=5+5)
_jsonBodyManual-4            21.7µs ± 0%    21.7µs ± 0%    ~     (p=0.310 n=5+5)
_jsonBody-4                  32.8µs ± 1%    32.6µs ± 1%    ~     (p=0.690 n=5+5)
_jsonBodyValidation-4        40.6µs ± 1%    40.9µs ± 0%    ~     (p=0.095 n=5+5)
_outputHeaders-4             29.5µs ± 2%    29.6µs ± 1%    ~     (p=0.548 n=5+5)
_requestResponseMapping-4    33.9µs ± 1%    34.4µs ± 1%  +1.68%  (p=0.008 n=5+5)
_validation-4                37.9µs ± 1%    36.9µs ± 2%  -2.71%  (p=0.008 n=5+5)
_noValidation-4              26.9µs ± 2%    26.5µs ± 1%    ~     (p=0.222 n=5+5)
pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64
_notFoundSrv-4               19.6µs ± 1%    19.5µs ± 0%    ~     (p=0.905 n=5+4)
_ok-4                        19.6µs ± 1%    19.6µs ± 1%    ~     (p=0.579 n=5+5)
_invalidBody-4               28.3µs ± 6%    28.0µs ± 4%    ~     (p=1.000 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.75 ± 6%      0.74 ± 3%    ~     (p=0.889 n=5+5)
_directGzipHead-4              0.72 ± 4%      0.74 ± 6%    ~     (p=0.310 n=5+5)
_noDirectGzip-4                4.26 ± 5%      4.14 ± 1%    ~     (p=0.151 n=5+5)
_directGzip_decode-4           10.2 ± 8%      10.0 ±11%    ~     (p=0.841 n=5+5)
_noDirectGzip_decode-4         4.27 ± 3%      4.40 ± 6%    ~     (p=0.254 n=5+5)
_jsonBody-4                    1.50 ± 6%      1.47 ± 5%    ~     (p=0.151 n=5+5)
_jsonBodyValidation-4          1.65 ± 2%      1.68 ± 4%    ~     (p=0.167 n=5+5)
_outputHeaders-4               0.74 ± 7%      0.71 ± 2%    ~     (p=0.151 n=5+5)
_requestResponseMapping-4      1.40 ± 4%      1.37 ± 4%    ~     (p=0.389 n=5+5)
_validation-4                  1.51 ± 5%      1.50 ± 6%    ~     (p=0.841 n=5+5)
_noValidation-4                1.08 ± 1%      1.07 ± 5%    ~     (p=0.421 n=5+5)
pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64
_formOrJSON/form-4             0.84 ± 3%      0.88 ± 7%    ~     (p=0.056 n=5+5)
_formOrJSON/json-4             0.99 ±11%      0.99 ± 6%    ~     (p=1.000 n=5+5)
_directGzip-4                  0.72 ± 5%      0.75 ± 6%    ~     (p=0.421 n=5+5)
_directGzipHead-4              0.75 ± 1%      0.76 ± 3%    ~     (p=0.056 n=5+5)
_noDirectGzip-4                4.67 ± 3%      4.81 ± 6%    ~     (p=0.095 n=5+5)
_htmlResponse-4                1.26 ± 3%      1.26 ± 1%    ~     (p=0.730 n=5+4)
_jsonBodyManual-4              0.92 ± 2%      0.93 ± 3%    ~     (p=0.548 n=5+5)
_jsonBody-4                    1.39 ± 5%      1.40 ± 3%    ~     (p=0.841 n=5+5)
_jsonBodyValidation-4          1.69 ± 5%      1.71 ± 8%    ~     (p=1.000 n=5+5)
_outputHeaders-4               1.21 ± 5%      1.23 ± 5%    ~     (p=0.286 n=5+5)
_requestResponseMapping-4      1.37 ± 7%      1.41 ± 7%    ~     (p=0.421 n=5+5)
_validation-4                  1.59 ± 5%      1.54 ± 8%    ~     (p=0.310 n=5+5)
_noValidation-4                1.14 ± 5%      1.09 ± 5%    ~     (p=0.095 n=5+5)
pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64
_notFoundSrv-4                 0.89 ± 4%      0.87 ±10%    ~     (p=0.310 n=5+5)
_ok-4                          0.85 ± 6%      0.88 ± 3%    ~     (p=0.222 n=5+5)
_invalidBody-4                 1.16 ± 8%      1.17 ± 4%    ~     (p=0.690 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.58 ± 9%      1.55 ± 4%    ~     (p=1.000 n=5+5)
_directGzipHead-4              1.52 ± 5%      1.49 ± 5%    ~     (p=0.310 n=5+5)
_noDirectGzip-4                8.82 ± 3%      8.82 ± 5%    ~     (p=1.000 n=5+5)
_directGzip_decode-4           31.2 ± 4%      32.4 ± 5%    ~     (p=0.095 n=5+5)
_noDirectGzip_decode-4         8.72 ± 3%      8.82 ± 3%    ~     (p=0.222 n=5+5)
_jsonBody-4                    3.21 ± 4%      3.23 ± 4%    ~     (p=1.000 n=5+5)
_jsonBodyValidation-4          3.53 ± 2%      3.66 ± 4%    ~     (p=0.056 n=5+5)
_outputHeaders-4               1.49 ± 5%      1.50 ± 4%    ~     (p=0.841 n=5+5)
_requestResponseMapping-4      3.05 ± 6%      3.06 ± 4%    ~     (p=1.000 n=5+5)
_validation-4                  3.30 ± 3%      3.34 ± 5%    ~     (p=0.690 n=5+5)
_noValidation-4                2.39 ± 5%      2.45 ± 3%    ~     (p=0.310 n=5+5)
pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64
_formOrJSON/form-4             1.77 ± 3%      1.86 ±12%    ~     (p=0.175 n=5+5)
_formOrJSON/json-4             2.16 ±18%      2.09 ± 2%    ~     (p=0.889 n=5+5)
_directGzip-4                  1.52 ± 7%      1.51 ± 4%    ~     (p=1.000 n=5+5)
_directGzipHead-4              1.53 ± 7%      1.52 ± 3%    ~     (p=1.000 n=5+5)
_noDirectGzip-4                10.2 ± 3%      10.1 ± 3%    ~     (p=0.841 n=5+5)
_htmlResponse-4                2.87 ± 5%      2.77 ± 2%    ~     (p=0.310 n=5+5)
_jsonBodyManual-4              1.98 ± 6%      1.97 ± 4%    ~     (p=1.000 n=5+5)
_jsonBody-4                    3.08 ± 3%      3.04 ± 5%    ~     (p=0.421 n=5+5)
_jsonBodyValidation-4          3.62 ± 5%      3.70 ± 4%    ~     (p=0.310 n=5+5)
_outputHeaders-4               2.83 ± 5%      2.76 ± 2%    ~     (p=0.222 n=5+5)
_requestResponseMapping-4      3.12 ± 4%      3.21 ± 5%    ~     (p=0.222 n=5+5)
_validation-4                  3.46 ± 3%      3.35 ± 3%    ~     (p=0.087 n=5+5)
_noValidation-4                2.52 ± 7%      2.48 ± 5%    ~     (p=0.690 n=5+5)
pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64
_notFoundSrv-4                 1.77 ± 2%      1.83 ±14%    ~     (p=0.722 n=5+5)
_ok-4                          1.76 ± 5%      1.81 ± 5%    ~     (p=0.222 n=5+5)
_invalidBody-4                 2.77 ±16%      2.66 ± 7%    ~     (p=0.690 n=5+5)

name                       old 99%:ms     new 99%:ms     delta
pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64
_directGzip-4                  3.00 ±54%      2.76 ±45%    ~     (p=0.690 n=5+5)
_directGzipHead-4              2.47 ± 7%      2.44 ± 4%    ~     (p=0.738 n=5+5)
_noDirectGzip-4                14.1 ± 7%      13.8 ± 6%    ~     (p=0.548 n=5+5)
_directGzip_decode-4           59.6 ±11%      62.4 ± 4%    ~     (p=0.151 n=5+5)
_noDirectGzip_decode-4         13.4 ± 4%      13.5 ± 4%    ~     (p=0.690 n=5+5)
_jsonBody-4                    5.09 ± 6%      5.08 ± 8%    ~     (p=1.000 n=5+5)
_jsonBodyValidation-4          5.93 ± 6%      5.95 ± 3%    ~     (p=1.000 n=5+5)
_outputHeaders-4               2.67 ± 5%      2.51 ± 5%    ~     (p=0.056 n=5+5)
_requestResponseMapping-4      5.03 ± 4%      5.01 ± 3%    ~     (p=1.000 n=5+5)
_validation-4                  5.42 ± 5%      5.30 ± 9%    ~     (p=0.548 n=5+5)
_noValidation-4                4.00 ± 5%      4.00 ± 5%    ~     (p=1.000 n=5+5)
pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64
_formOrJSON/form-4             2.88 ± 4%      3.26 ±47%    ~     (p=1.000 n=5+5)
_formOrJSON/json-4             3.46 ± 3%      3.42 ± 4%    ~     (p=0.905 n=4+5)
_directGzip-4                  2.51 ± 4%      2.58 ± 3%    ~     (p=0.222 n=5+5)
_directGzipHead-4              2.55 ± 5%      2.55 ± 7%    ~     (p=1.000 n=5+5)
_noDirectGzip-4                15.8 ± 4%      15.9 ± 3%    ~     (p=1.000 n=5+5)
_htmlResponse-4                4.57 ± 4%      4.58 ± 3%    ~     (p=1.000 n=5+5)
_jsonBodyManual-4              3.28 ± 5%      3.35 ± 3%    ~     (p=0.310 n=5+5)
_jsonBody-4                    4.96 ± 6%      4.81 ± 7%    ~     (p=0.254 n=5+5)
_jsonBodyValidation-4          5.78 ± 5%      5.90 ± 6%    ~     (p=0.548 n=5+5)
_outputHeaders-4               4.56 ±16%      4.40 ± 5%    ~     (p=0.802 n=5+5)
_requestResponseMapping-4      5.00 ± 8%      4.91 ±10%    ~     (p=0.421 n=5+5)
_validation-4                  5.51 ± 5%      5.33 ± 3%    ~     (p=0.056 n=5+5)
_noValidation-4                4.16 ± 4%      4.12 ± 7%    ~     (p=0.548 n=5+5)
pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64
_notFoundSrv-4                 2.84 ± 3%      2.68 ± 2%  -5.76%  (p=0.016 n=5+4)
_ok-4                          2.75 ± 5%      2.80 ± 3%    ~     (p=0.548 n=5+5)
_invalidBody-4                 4.59 ±10%      4.48 ± 7%    ~     (p=0.690 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                  5.33 ±35%      4.46 ±41%    ~     (p=0.310 n=5+5)
_directGzipHead-4              4.12 ±21%      3.83 ± 7%    ~     (p=0.690 n=5+5)
_noDirectGzip-4                20.7 ±23%      18.8 ±12%    ~     (p=0.421 n=5+5)
_directGzip_decode-4           82.7 ± 9%      83.0 ±17%    ~     (p=1.000 n=5+5)
_noDirectGzip_decode-4         17.2 ± 8%      17.7 ± 5%    ~     (p=0.690 n=5+5)
_jsonBody-4                    7.43 ±11%      7.24 ±11%    ~     (p=0.690 n=5+5)
_jsonBodyValidation-4          8.26 ± 7%      8.65 ± 9%    ~     (p=0.222 n=5+5)
_outputHeaders-4               4.74 ±11%      4.43 ± 8%    ~     (p=0.151 n=5+5)
_requestResponseMapping-4      7.73 ±18%      7.11 ± 4%    ~     (p=0.151 n=5+5)
_validation-4                  7.73 ± 8%      7.69 ±14%    ~     (p=0.548 n=5+5)
_noValidation-4                5.78 ± 4%      6.23 ±13%    ~     (p=0.738 n=5+5)
pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64
_formOrJSON/form-4             3.87 ± 6%      4.68 ±44%    ~     (p=0.135 n=5+5)
_formOrJSON/json-4             5.37 ±48%      4.62 ±13%    ~     (p=0.310 n=5+5)
_directGzip-4                  4.20 ±15%      3.81 ± 1%    ~     (p=0.190 n=5+4)
_directGzipHead-4              4.17 ±10%      3.82 ±12%    ~     (p=0.151 n=5+5)
_noDirectGzip-4                22.0 ± 7%      20.5 ± 8%    ~     (p=0.421 n=5+5)
_htmlResponse-4                7.07 ±13%      6.88 ±13%    ~     (p=1.000 n=5+5)
_jsonBodyManual-4              4.78 ± 6%      4.75 ± 8%    ~     (p=0.690 n=5+5)
_jsonBody-4                    6.90 ± 9%      6.29 ± 8%  -8.83%  (p=0.032 n=5+5)
_jsonBodyValidation-4          8.08 ± 5%      8.17 ± 5%    ~     (p=0.690 n=5+5)
_outputHeaders-4               6.62 ±30%      5.98 ±10%    ~     (p=0.310 n=5+5)
_requestResponseMapping-4      7.09 ±15%      7.38 ± 9%    ~     (p=0.310 n=5+5)
_validation-4                  8.13 ±11%      7.81 ±11%    ~     (p=0.690 n=5+5)
_noValidation-4                6.09 ± 6%      5.88 ± 6%    ~     (p=0.222 n=5+5)
pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64
_notFoundSrv-4                 4.12 ±25%      3.69 ± 5%    ~     (p=0.111 n=5+4)
_ok-4                          3.91 ±17%      4.07 ±12%    ~     (p=0.690 n=5+5)
_invalidBody-4                 6.42 ±15%      6.08 ±10%    ~     (p=0.548 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                 57.4k ± 9%     59.6k ± 1%    ~     (p=0.190 n=5+4)
_directGzipHead-4             60.0k ± 2%     60.3k ± 1%    ~     (p=0.421 n=5+5)
_noDirectGzip-4               10.7k ± 1%     10.7k ± 1%    ~     (p=0.310 n=5+5)
_directGzip_decode-4          3.14k ± 2%     3.11k ± 2%    ~     (p=0.151 n=5+5)
_noDirectGzip_decode-4        10.6k ± 1%     10.7k ± 1%    ~     (p=1.000 n=5+5)
_jsonBody-4                   28.2k ± 0%     28.2k ± 1%    ~     (p=1.000 n=5+5)
_jsonBodyValidation-4         25.2k ± 1%     24.8k ± 0%  -1.28%  (p=0.008 n=5+5)
_outputHeaders-4              59.9k ± 1%     59.5k ± 0%    ~     (p=0.222 n=5+5)
_requestResponseMapping-4     29.8k ± 3%     29.6k ± 1%    ~     (p=0.841 n=5+5)
_validation-4                 27.6k ± 1%     27.5k ± 0%    ~     (p=0.222 n=5+5)
_noValidation-4               38.6k ± 2%     38.3k ± 2%    ~     (p=0.548 n=5+5)
pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64
_formOrJSON/form-4            50.9k ± 0%     49.1k ± 9%  -3.56%  (p=0.008 n=5+5)
_formOrJSON/json-4            44.0k ± 1%     43.3k ± 1%  -1.61%  (p=0.016 n=4+5)
_directGzip-4                 59.6k ± 0%     59.1k ± 1%  -0.71%  (p=0.008 n=5+5)
_directGzipHead-4             58.8k ± 3%     58.6k ± 3%    ~     (p=1.000 n=5+5)
_noDirectGzip-4               9.41k ± 1%     9.36k ± 0%    ~     (p=0.056 n=5+5)
_htmlResponse-4               32.7k ± 1%     32.6k ± 1%    ~     (p=0.310 n=5+5)
_jsonBodyManual-4             46.0k ± 0%     46.2k ± 0%    ~     (p=0.310 n=5+5)
_jsonBody-4                   30.5k ± 1%     30.6k ± 1%    ~     (p=0.690 n=5+5)
_jsonBodyValidation-4         24.6k ± 1%     24.5k ± 0%    ~     (p=0.095 n=5+5)
_outputHeaders-4              33.9k ± 2%     33.8k ± 1%    ~     (p=0.548 n=5+5)
_requestResponseMapping-4     29.5k ± 1%     29.0k ± 1%  -1.65%  (p=0.008 n=5+5)
_validation-4                 26.4k ± 1%     27.1k ± 2%  +2.80%  (p=0.008 n=5+5)
_noValidation-4               37.2k ± 2%     37.7k ± 1%    ~     (p=0.222 n=5+5)
pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64
_notFoundSrv-4                50.9k ± 1%     51.2k ± 0%    ~     (p=0.905 n=5+4)
_ok-4                         51.1k ± 1%     50.9k ± 1%    ~     (p=0.548 n=5+5)
_invalidBody-4                35.4k ± 6%     35.7k ± 3%    ~     (p=1.000 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=0.881 n=5+5)
_directGzipHead-4            4.04kB ± 0%    4.04kB ± 0%    ~     (p=1.000 n=5+5)
_noDirectGzip-4              7.42kB ±21%    7.54kB ±18%    ~     (p=0.841 n=5+5)
_directGzip_decode-4          399kB ± 0%     399kB ± 0%    ~     (p=0.690 n=5+5)
_noDirectGzip_decode-4       6.96kB ±16%    6.43kB ±10%    ~     (p=0.310 n=5+5)
_jsonBody-4                  13.7kB ± 0%    13.7kB ± 0%    ~     (p=0.651 n=5+5)
_jsonBodyValidation-4        19.3kB ± 0%    19.3kB ± 0%    ~     (p=0.889 n=5+5)
_outputHeaders-4             3.70kB ± 0%    3.71kB ± 0%  +0.10%  (p=0.048 n=5+5)
_requestResponseMapping-4    16.7kB ± 0%    16.7kB ± 0%    ~     (p=0.730 n=5+4)
_validation-4                16.6kB ± 0%    16.6kB ± 0%    ~     (p=0.841 n=5+5)
_noValidation-4              7.92kB ± 0%    7.92kB ± 0%    ~     (p=0.127 n=5+5)
pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64
_formOrJSON/form-4           6.24kB ± 0%    6.24kB ± 0%    ~     (p=0.651 n=5+5)
_formOrJSON/json-4           6.63kB ± 0%    6.64kB ± 0%    ~     (p=0.508 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.881 n=5+5)
_noDirectGzip-4              7.54kB ±17%    7.84kB ±22%    ~     (p=0.548 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.333 n=5+5)
_jsonBody-4                  10.8kB ± 0%    10.8kB ± 0%    ~     (p=0.587 n=5+4)
_jsonBodyValidation-4        19.3kB ± 0%    19.3kB ± 0%    ~     (p=0.246 n=5+5)
_outputHeaders-4             10.4kB ± 0%    10.4kB ± 0%    ~     (p=0.968 n=5+5)
_requestResponseMapping-4    16.7kB ± 0%    16.7kB ± 0%    ~     (p=0.381 n=5+5)
_validation-4                16.6kB ± 0%    16.6kB ± 0%    ~     (p=0.405 n=5+5)
_noValidation-4              7.96kB ± 0%    7.96kB ± 0%    ~     (p=0.159 n=4+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=0.579 n=5+5)
_ok-4                        5.22kB ± 0%    5.22kB ± 0%    ~     (p=0.762 n=5+4)
_invalidBody-4               8.92kB ± 0%    8.92kB ± 0%    ~     (p=1.000 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            487 ± 0%       488 ± 0%    ~     (p=0.683 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                   154 ± 0%       153 ± 0%    ~     (p=0.095 n=5+4)
_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)

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