swaggest / rest

Web services with OpenAPI and JSON Schema done quick in Go
https://pkg.go.dev/github.com/swaggest/rest
MIT License
335 stars 17 forks source link

Update deps #199

Closed vearutop closed 3 months ago

github-actions[bot] commented 3 months ago

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
github-actions[bot] commented 3 months ago

Go API Changes

# summary
Inferred base version: v0.2.65
Suggested version: v0.2.66
github-actions[bot] commented 3 months ago

Unit Test Coverage

total: (statements) 81.2%

Coverage of changed lines No changes in testable statements.
Coverage diff with base branch No changes in coverage.
codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 76.10%. Comparing base (45ef3c6) to head (f6da460).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #199 +/- ## ======================================= Coverage 76.10% 76.10% ======================================= Files 30 30 Lines 1724 1724 ======================================= Hits 1312 1312 Misses 297 297 Partials 115 115 ``` | [Flag](https://app.codecov.io/gh/swaggest/rest/pull/199/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=swaggest) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/swaggest/rest/pull/199/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=swaggest) | `76.10% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=swaggest#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 3 months ago

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.11µs ± 1% 1.11µs ± 1% ~ (p=0.957 n=5+6) pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-4 495ns ± 4% 497ns ± 0% ~ (p=0.429 n=6+5) DecoderFunc_Decode-4 1.46µs ± 1% 1.48µs ± 1% +1.46% (p=0.011 n=6+6) Decoder_Decode_json-4 18.7µs ± 1% 18.6µs ± 1% -0.71% (p=0.041 n=6+6) Decoder_Decode_queryObject-4 3.93µs ± 0% 3.93µs ± 1% ~ (p=0.738 n=6+6) Decoder_Decode_jsonParam-4 1.52µs ± 0% 1.51µs ± 1% ~ (p=0.095 n=6+6) DecoderFactory_SetDecoderFunc-4 1.28µs ± 0% 1.30µs ± 0% +2.22% (p=0.002 n=6+6) pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-4 8.47µs ± 1% 8.48µs ± 0% ~ (p=0.690 n=5+5) Middleware_control-4 2.79µs ± 0% 2.80µs ± 1% +0.47% (p=0.048 n=5+6) 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.51kB ± 0% 1.51kB ± 0% ~ (all equal) Decoder_Decode_json-4 12.3kB ± 0% 12.3kB ± 0% ~ (all equal) Decoder_Decode_queryObject-4 2.00kB ± 0% 2.00kB ± 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.31kB ± 3% 1.29kB ± 3% ~ (p=0.485 n=6+6) Middleware_control-4 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-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 36.0 ± 0% 36.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 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-4 1.11µs ± 1% pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-4 497ns ± 0% DecoderFunc_Decode-4 1.48µs ± 1% Decoder_Decode_json-4 18.6µs ± 1% Decoder_Decode_queryObject-4 3.93µs ± 1% Decoder_Decode_jsonParam-4 1.51µs ± 1% DecoderFactory_SetDecoderFunc-4 1.30µs ± 0% pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-4 8.48µs ± 0% Middleware_control-4 2.80µs ± 1% 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.51kB ± 0% Decoder_Decode_json-4 12.3kB ± 0% Decoder_Decode_queryObject-4 2.00kB ± 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.29kB ± 3% Middleware_control-4 11.2kB ± 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 36.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 9.00 ± 0% ```
github-actions[bot] commented 3 months ago

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.1µs ± 0% 16.4µs ± 1% +1.29% (p=0.029 n=4+4) _directGzipHead-4 16.0µs ± 1% 16.1µs ± 1% ~ (p=0.548 n=5+5) _noDirectGzip-4 91.7µs ± 1% 92.5µs ± 2% ~ (p=0.310 n=5+5) _directGzip_decode-4 324µs ± 1% 327µs ± 1% ~ (p=0.151 n=5+5) _noDirectGzip_decode-4 91.7µs ± 1% 92.1µs ± 0% ~ (p=0.095 n=5+5) _jsonBody-4 34.9µs ± 1% 35.3µs ± 1% ~ (p=0.222 n=5+5) _jsonBodyValidation-4 40.4µs ± 2% 40.5µs ± 2% ~ (p=0.841 n=5+5) _outputHeaders-4 16.9µs ± 1% 17.0µs ± 1% +1.11% (p=0.032 n=5+5) _requestResponseMapping-4 34.6µs ± 2% 35.1µs ± 1% ~ (p=0.095 n=5+5) _validation-4 37.3µs ± 2% 37.9µs ± 5% ~ (p=0.421 n=5+5) _noValidation-4 26.4µs ± 1% 25.9µs ± 1% -2.12% (p=0.008 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64 _directGzip-4 16.9µs ± 1% 16.7µs ± 3% ~ (p=0.190 n=4+5) _directGzipHead-4 16.8µs ± 0% 16.9µs ±10% ~ (p=0.190 n=4+5) _noDirectGzip-4 93.2µs ± 1% 93.4µs ± 1% ~ (p=0.690 n=5+5) _directGzip_decode-4 333µs ± 1% 330µs ± 3% ~ (p=0.222 n=5+5) _noDirectGzip_decode-4 93.2µs ± 1% 93.3µs ± 1% ~ (p=0.841 n=5+5) _htmlResponse-4 30.3µs ± 1% 29.6µs ± 1% -2.39% (p=0.008 n=5+5) _jsonBodyManual-4 21.2µs ± 3% 20.5µs ± 1% -3.18% (p=0.008 n=5+5) _jsonBody-4 31.9µs ± 1% 30.9µs ± 1% -3.14% (p=0.008 n=5+5) _jsonBodyValidation-4 42.0µs ± 2% 40.2µs ± 1% -4.30% (p=0.008 n=5+5) _outputHeaders-4 29.8µs ± 2% 29.0µs ± 1% -2.72% (p=0.008 n=5+5) _requestResponseMapping-4 35.1µs ± 1% 34.7µs ± 2% ~ (p=0.222 n=5+5) _validation-4 37.6µs ± 1% 36.8µs ± 2% -2.27% (p=0.016 n=5+5) _noValidation-4 26.7µs ± 1% 26.1µs ± 1% -2.20% (p=0.008 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-4 18.6µs ± 1% 18.3µs ± 1% -1.82% (p=0.016 n=5+4) _ok-4 18.4µs ± 0% 18.3µs ± 1% ~ (p=0.556 n=4+5) _invalidBody-4 27.8µs ± 3% 27.2µs ± 4% ~ (p=0.151 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.72 ±10% 0.73 ± 9% ~ (p=0.548 n=5+5) _directGzipHead-4 0.70 ± 6% 0.70 ± 4% ~ (p=0.841 n=5+5) _noDirectGzip-4 4.36 ± 3% 4.14 ± 6% ~ (p=0.056 n=5+5) _directGzip_decode-4 10.1 ± 8% 10.8 ±10% ~ (p=0.206 n=5+5) _noDirectGzip_decode-4 4.27 ± 5% 4.23 ± 6% ~ (p=0.548 n=5+5) _jsonBody-4 1.45 ± 5% 1.45 ± 5% ~ (p=0.690 n=5+5) _jsonBodyValidation-4 1.64 ± 5% 1.64 ± 4% ~ (p=1.000 n=5+5) _outputHeaders-4 0.77 ± 4% 0.74 ± 5% ~ (p=0.151 n=5+5) _requestResponseMapping-4 1.40 ± 2% 1.45 ± 2% +3.17% (p=0.016 n=5+5) _validation-4 1.57 ± 8% 1.57 ± 5% ~ (p=0.873 n=5+5) _noValidation-4 1.08 ± 4% 1.10 ± 5% ~ (p=0.238 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64 _directGzip-4 0.76 ±12% 0.72 ± 6% ~ (p=0.151 n=5+5) _directGzipHead-4 0.74 ± 5% 0.72 ± 3% ~ (p=0.421 n=5+5) _noDirectGzip-4 4.13 ± 5% 4.24 ± 6% ~ (p=0.341 n=5+5) _directGzip_decode-4 11.9 ± 5% 11.0 ± 4% -7.59% (p=0.008 n=5+5) _noDirectGzip_decode-4 4.24 ± 3% 4.25 ± 4% ~ (p=0.841 n=5+5) _htmlResponse-4 1.30 ± 6% 1.30 ± 5% ~ (p=1.000 n=5+5) _jsonBodyManual-4 0.92 ± 7% 0.88 ± 6% ~ (p=0.095 n=5+5) _jsonBody-4 1.35 ± 6% 1.28 ± 6% -5.29% (p=0.048 n=5+5) _jsonBodyValidation-4 1.72 ± 8% 1.69 ± 5% ~ (p=0.548 n=5+5) _outputHeaders-4 1.23 ± 5% 1.17 ± 4% ~ (p=0.095 n=5+5) _requestResponseMapping-4 1.43 ± 7% 1.44 ± 6% ~ (p=0.841 n=5+5) _validation-4 1.54 ± 1% 1.48 ± 2% -4.33% (p=0.008 n=5+5) _noValidation-4 1.12 ± 6% 1.09 ± 8% ~ (p=0.095 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-4 0.85 ± 5% 0.84 ± 8% ~ (p=0.690 n=5+5) _ok-4 0.81 ± 4% 0.79 ± 2% ~ (p=0.222 n=5+5) _invalidBody-4 1.12 ± 5% 1.12 ± 6% ~ (p=1.000 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.50 ± 0% 1.55 ± 8% ~ (p=0.159 n=4+5) _directGzipHead-4 1.40 ± 2% 1.45 ± 7% ~ (p=0.222 n=5+5) _noDirectGzip-4 8.56 ± 4% 8.66 ± 5% ~ (p=0.548 n=5+5) _directGzip_decode-4 32.7 ±11% 32.0 ± 3% ~ (p=0.841 n=5+5) _noDirectGzip_decode-4 8.68 ± 5% 8.77 ± 3% ~ (p=0.841 n=5+5) _jsonBody-4 3.16 ± 2% 3.24 ± 7% ~ (p=0.222 n=5+5) _jsonBodyValidation-4 3.59 ± 6% 3.70 ± 3% ~ (p=0.095 n=5+5) _outputHeaders-4 1.52 ± 5% 1.54 ± 7% ~ (p=0.690 n=5+5) _requestResponseMapping-4 3.15 ± 3% 3.20 ± 4% ~ (p=0.548 n=5+5) _validation-4 3.44 ± 2% 3.47 ± 6% ~ (p=0.841 n=5+5) _noValidation-4 2.54 ± 5% 2.45 ± 6% ~ (p=0.095 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64 _directGzip-4 1.57 ± 7% 1.49 ± 4% ~ (p=0.095 n=5+5) _directGzipHead-4 1.56 ± 7% 1.53 ± 8% ~ (p=0.690 n=5+5) _noDirectGzip-4 8.88 ± 4% 8.77 ± 2% ~ (p=0.421 n=5+5) _directGzip_decode-4 31.5 ± 4% 32.0 ± 4% ~ (p=0.548 n=5+5) _noDirectGzip_decode-4 8.80 ± 6% 8.87 ± 4% ~ (p=0.421 n=5+5) _htmlResponse-4 2.81 ± 4% 2.70 ± 3% ~ (p=0.095 n=5+5) _jsonBodyManual-4 1.89 ± 2% 1.86 ± 2% ~ (p=0.151 n=5+5) _jsonBody-4 3.01 ± 6% 2.87 ± 5% ~ (p=0.151 n=5+5) _jsonBodyValidation-4 3.83 ± 3% 3.64 ± 5% ~ (p=0.056 n=5+5) _outputHeaders-4 2.84 ± 3% 2.79 ± 5% ~ (p=0.310 n=5+5) _requestResponseMapping-4 3.29 ± 5% 3.27 ± 2% ~ (p=1.000 n=5+5) _validation-4 3.49 ± 4% 3.40 ± 5% ~ (p=0.310 n=5+5) _noValidation-4 2.58 ± 7% 2.42 ± 3% -6.19% (p=0.016 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-4 1.70 ± 5% 1.68 ± 6% ~ (p=0.548 n=5+5) _ok-4 1.67 ±12% 1.66 ± 4% ~ (p=0.794 n=5+5) _invalidBody-4 2.66 ± 7% 2.60 ±12% ~ (p=0.222 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.53 ±26% 2.55 ±11% ~ (p=0.310 n=5+5) _directGzipHead-4 2.36 ± 5% 2.45 ± 2% ~ (p=0.056 n=5+5) _noDirectGzip-4 13.3 ± 7% 13.6 ± 6% ~ (p=0.310 n=5+5) _directGzip_decode-4 65.5 ± 9% 60.7 ± 3% ~ (p=0.095 n=5+5) _noDirectGzip_decode-4 13.3 ± 6% 13.3 ± 3% ~ (p=1.000 n=5+5) _jsonBody-4 5.34 ± 8% 5.35 ±13% ~ (p=1.000 n=5+5) _jsonBodyValidation-4 6.59 ± 6% 6.58 ± 5% ~ (p=1.000 n=5+5) _outputHeaders-4 2.70 ± 4% 2.64 ± 6% ~ (p=0.310 n=5+5) _requestResponseMapping-4 5.28 ± 3% 5.10 ± 5% ~ (p=0.222 n=5+5) _validation-4 5.73 ±11% 5.92 ±17% ~ (p=0.421 n=5+5) _noValidation-4 4.22 ± 7% 4.04 ± 9% ~ (p=0.310 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64 _directGzip-4 2.59 ± 4% 2.52 ± 6% ~ (p=0.190 n=4+5) _directGzipHead-4 2.84 ±10% 2.68 ±24% ~ (p=0.222 n=5+5) _noDirectGzip-4 14.0 ±10% 13.7 ± 9% ~ (p=1.000 n=5+5) _directGzip_decode-4 57.8 ±11% 61.5 ± 2% ~ (p=0.151 n=5+5) _noDirectGzip_decode-4 13.8 ± 3% 14.1 ±11% ~ (p=0.460 n=5+5) _htmlResponse-4 4.60 ± 6% 5.02 ± 8% +8.98% (p=0.032 n=5+5) _jsonBodyManual-4 3.17 ± 5% 3.22 ± 6% ~ (p=0.548 n=5+5) _jsonBody-4 4.82 ± 7% 5.03 ± 7% ~ (p=0.222 n=5+5) _jsonBodyValidation-4 6.62 ±10% 6.24 ± 3% ~ (p=0.151 n=5+5) _outputHeaders-4 4.66 ± 8% 4.50 ± 5% ~ (p=0.421 n=5+5) _requestResponseMapping-4 5.37 ± 6% 5.35 ± 9% ~ (p=1.000 n=5+5) _validation-4 5.72 ± 5% 5.54 ± 4% ~ (p=0.421 n=5+5) _noValidation-4 4.20 ± 3% 4.16 ± 4% ~ (p=0.841 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-4 2.77 ± 5% 2.73 ±16% ~ (p=0.222 n=5+5) _ok-4 2.93 ±22% 2.61 ± 8% ~ (p=0.056 n=5+5) _invalidBody-4 5.28 ± 9% 4.77 ± 3% -9.68% (p=0.032 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.12 ± 7% 5.36 ±62% ~ (p=0.111 n=4+5) _directGzipHead-4 4.49 ±24% 5.03 ±18% ~ (p=0.310 n=5+5) _noDirectGzip-4 18.0 ±12% 18.1 ±19% ~ (p=1.000 n=5+5) _directGzip_decode-4 90.6 ± 1% 86.1 ±11% ~ (p=0.190 n=4+5) _noDirectGzip_decode-4 17.6 ± 8% 17.5 ±12% ~ (p=0.968 n=5+5) _jsonBody-4 9.14 ± 9% 8.34 ±16% ~ (p=0.095 n=5+5) _jsonBodyValidation-4 9.63 ±19% 10.12 ± 7% ~ (p=0.310 n=5+5) _outputHeaders-4 6.44 ±25% 5.20 ±24% ~ (p=0.151 n=5+5) _requestResponseMapping-4 8.81 ± 6% 8.07 ± 9% ~ (p=0.056 n=5+5) _validation-4 8.83 ±23% 10.60 ±85% ~ (p=1.000 n=5+5) _noValidation-4 6.93 ±11% 6.53 ±11% ~ (p=0.421 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64 _directGzip-4 6.43 ±68% 5.01 ±28% ~ (p=0.421 n=5+5) _directGzipHead-4 6.47 ±11% 5.99 ±67% ~ (p=0.222 n=5+5) _noDirectGzip-4 19.7 ±21% 18.1 ±12% ~ (p=0.421 n=5+5) _directGzip_decode-4 81.5 ±13% 86.9 ±15% ~ (p=0.222 n=5+5) _noDirectGzip_decode-4 18.4 ±10% 19.9 ±20% ~ (p=0.151 n=5+5) _htmlResponse-4 7.30 ±22% 8.09 ±15% ~ (p=0.095 n=5+5) _jsonBodyManual-4 5.95 ±47% 6.40 ±21% ~ (p=0.222 n=5+5) _jsonBody-4 6.63 ± 4% 8.28 ±11% +25.00% (p=0.016 n=4+5) _jsonBodyValidation-4 10.0 ±25% 9.4 ± 3% ~ (p=0.548 n=5+5) _outputHeaders-4 7.16 ±12% 6.67 ± 5% ~ (p=0.310 n=5+5) _requestResponseMapping-4 8.72 ± 7% 9.06 ±21% ~ (p=0.841 n=5+5) _validation-4 8.99 ± 5% 8.91 ±11% ~ (p=0.690 n=5+5) _noValidation-4 6.63 ±27% 6.81 ±27% ~ (p=0.548 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-4 5.33 ±21% 5.12 ±88% ~ (p=0.310 n=5+5) _ok-4 5.46 ± 7% 4.65 ±33% ~ (p=0.190 n=4+5) _invalidBody-4 9.55 ±25% 7.55 ±12% ~ (p=0.095 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 _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) _directGzip_decode-4 638 ± 0% 638 ± 0% ~ (all equal) _noDirectGzip_decode-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 _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) _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 61.9k ± 0% 60.3k ± 6% -2.66% (p=0.016 n=4+5) _directGzipHead-4 62.4k ± 1% 62.1k ± 1% ~ (p=0.548 n=5+5) _noDirectGzip-4 10.9k ± 1% 10.8k ± 2% ~ (p=0.310 n=5+5) _directGzip_decode-4 3.08k ± 1% 3.06k ± 1% ~ (p=0.167 n=5+5) _noDirectGzip_decode-4 10.9k ± 1% 10.9k ± 0% ~ (p=0.095 n=5+5) _jsonBody-4 28.7k ± 1% 28.4k ± 1% ~ (p=0.222 n=5+5) _jsonBodyValidation-4 24.8k ± 2% 24.7k ± 2% ~ (p=1.000 n=5+5) _outputHeaders-4 59.3k ± 1% 58.7k ± 1% -1.10% (p=0.032 n=5+5) _requestResponseMapping-4 28.9k ± 2% 28.5k ± 1% ~ (p=0.095 n=5+5) _validation-4 26.8k ± 2% 26.4k ± 5% ~ (p=0.421 n=5+5) _noValidation-4 37.8k ± 1% 38.6k ± 1% +2.17% (p=0.008 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64 _directGzip-4 59.0k ± 1% 60.1k ± 2% ~ (p=0.190 n=4+5) _directGzipHead-4 59.4k ± 0% 59.5k ±10% ~ (p=0.190 n=4+5) _noDirectGzip-4 10.7k ± 1% 10.7k ± 1% ~ (p=0.690 n=5+5) _directGzip_decode-4 3.01k ± 1% 3.03k ± 3% ~ (p=0.222 n=5+5) _noDirectGzip_decode-4 10.7k ± 1% 10.7k ± 1% ~ (p=1.000 n=5+5) _htmlResponse-4 33.0k ± 1% 33.8k ± 1% +2.45% (p=0.008 n=5+5) _jsonBodyManual-4 47.2k ± 3% 48.7k ± 1% +3.26% (p=0.008 n=5+5) _jsonBody-4 31.3k ± 1% 32.3k ± 1% +3.24% (p=0.008 n=5+5) _jsonBodyValidation-4 23.8k ± 2% 24.9k ± 1% +4.49% (p=0.008 n=5+5) _outputHeaders-4 33.6k ± 2% 34.5k ± 1% +2.78% (p=0.008 n=5+5) _requestResponseMapping-4 28.5k ± 1% 28.8k ± 2% ~ (p=0.222 n=5+5) _validation-4 26.6k ± 1% 27.2k ± 2% +2.32% (p=0.016 n=5+5) _noValidation-4 37.4k ± 1% 38.3k ± 1% +2.24% (p=0.008 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-4 53.7k ± 1% 53.5k ± 9% ~ (p=0.151 n=5+5) _ok-4 54.3k ± 0% 54.5k ± 1% ~ (p=0.556 n=4+5) _invalidBody-4 36.0k ± 3% 36.8k ± 4% ~ (p=0.151 n=5+5) name old alloc/op new alloc/op delta pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64 _directGzip-4 3.86kB ± 0% 3.86kB ± 0% ~ (p=1.000 n=5+5) _directGzipHead-4 3.85kB ± 0% 3.85kB ± 0% ~ (p=0.095 n=4+5) _noDirectGzip-4 6.86kB ±31% 6.59kB ±20% ~ (p=0.841 n=5+5) _directGzip_decode-4 404kB ± 0% 404kB ± 0% ~ (p=0.421 n=5+5) _noDirectGzip_decode-4 6.01kB ±10% 5.82kB ± 8% ~ (p=0.222 n=5+5) _jsonBody-4 13.2kB ± 0% 13.2kB ± 0% ~ (p=0.206 n=5+5) _jsonBodyValidation-4 19.1kB ± 0% 19.1kB ± 0% ~ (p=0.968 n=5+5) _outputHeaders-4 3.57kB ± 0% 3.57kB ± 0% ~ (p=0.317 n=5+5) _requestResponseMapping-4 16.7kB ± 0% 16.7kB ± 0% ~ (p=0.286 n=5+5) _validation-4 16.6kB ± 0% 16.6kB ± 0% ~ (p=0.730 n=5+5) _noValidation-4 7.79kB ± 0% 7.78kB ± 0% -0.10% (p=0.048 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64 _directGzip-4 3.87kB ± 0% 3.87kB ± 0% ~ (p=0.413 n=5+5) _directGzipHead-4 3.87kB ± 0% 3.87kB ± 0% ~ (p=0.643 n=5+5) _noDirectGzip-4 6.88kB ±19% 7.18kB ±24% ~ (p=0.635 n=5+5) _directGzip_decode-4 404kB ± 0% 404kB ± 0% ~ (p=0.794 n=5+5) _noDirectGzip_decode-4 6.13kB ± 8% 6.28kB ± 5% ~ (p=0.690 n=5+5) _htmlResponse-4 8.07kB ± 0% 8.07kB ± 0% +0.04% (p=0.024 n=5+5) _jsonBodyManual-4 4.48kB ± 0% 4.48kB ± 0% ~ (p=0.175 n=5+5) _jsonBody-4 10.2kB ± 0% 10.3kB ± 0% +0.05% (p=0.032 n=5+5) _jsonBodyValidation-4 19.1kB ± 0% 19.1kB ± 0% ~ (p=0.143 n=5+5) _outputHeaders-4 10.4kB ± 0% 10.4kB ± 0% ~ (p=0.468 n=5+5) _requestResponseMapping-4 16.7kB ± 0% 16.7kB ± 0% ~ (p=0.762 n=5+5) _validation-4 16.6kB ± 0% 16.6kB ± 0% ~ (p=0.056 n=5+5) _noValidation-4 7.82kB ± 0% 7.83kB ± 0% ~ (p=0.595 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-4 4.65kB ± 0% 4.65kB ± 0% ~ (p=0.310 n=5+5) _ok-4 4.56kB ± 0% 4.56kB ± 0% ~ (p=0.800 n=4+4) _invalidBody-4 8.28kB ± 0% 8.28kB ± 0% ~ (p=0.971 n=4+4) name old allocs/op new allocs/op delta pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64 _directGzip-4 42.0 ± 0% 42.0 ± 0% ~ (all equal) _directGzipHead-4 42.0 ± 0% 42.0 ± 0% ~ (all equal) _noDirectGzip-4 49.2 ± 4% 49.2 ± 4% ~ (p=1.000 n=5+5) _directGzip_decode-4 503 ± 0% 503 ± 0% ~ (p=0.333 n=5+4) _noDirectGzip_decode-4 50.0 ± 0% 50.0 ± 0% ~ (all equal) _jsonBody-4 129 ± 0% 129 ± 0% ~ (p=1.000 n=5+5) _jsonBodyValidation-4 186 ± 0% 186 ± 0% ~ (all equal) _outputHeaders-4 36.0 ± 0% 36.0 ± 0% ~ (all equal) _requestResponseMapping-4 124 ± 0% 124 ± 0% ~ (all equal) _validation-4 155 ± 0% 155 ± 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 _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 505 ± 0% 505 ± 0% ~ (p=0.556 n=5+4) _noDirectGzip_decode-4 51.0 ± 0% 51.0 ± 0% ~ (all equal) _htmlResponse-4 144 ± 0% 144 ± 0% ~ (all equal) _jsonBodyManual-4 48.0 ± 0% 48.0 ± 0% ~ (all equal) _jsonBody-4 99.0 ± 0% 99.0 ± 0% ~ (all equal) _jsonBodyValidation-4 187 ± 0% 187 ± 0% ~ (all equal) _outputHeaders-4 112 ± 0% 112 ± 0% ~ (all equal) _requestResponseMapping-4 125 ± 0% 125 ± 0% ~ (all equal) _validation-4 155 ± 0% 155 ± 0% ~ (all equal) _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 53.0 ± 0% 53.0 ± 0% ~ (all equal) _ok-4 49.0 ± 0% 49.0 ± 0% ~ (all equal) _invalidBody-4 97.0 ± 0% 97.0 ± 0% ~ (all equal) ```