swaggest / rest

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

Update deps #154

Closed vearutop closed 1 year ago

github-actions[bot] commented 1 year ago

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go 106 7658 (-9) 5568 (-9) 503 1587 941 (-2) 185.7K (-149B)
github-actions[bot] commented 1 year ago

Go API Changes

# summary
Inferred base version: v0.2.45
Suggested version: v0.3.0
github-actions[bot] commented 1 year ago

Unit Test Coverage

total: (statements) 83.4%

Coverage of changed lines No changes in testable statements.
Coverage diff with base branch No changes in coverage.
github-actions[bot] commented 1 year 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-2 1.34µs ± 0% 1.36µs ± 2% ~ (p=0.182 n=5+6) pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 684ns ± 0% 693ns ± 2% +1.32% (p=0.026 n=6+6) DecoderFunc_Decode-2 1.94µs ± 1% 1.95µs ± 1% ~ (p=0.190 n=6+5) Decoder_Decode_json-2 22.1µs ± 0% 21.9µs ± 1% -0.98% (p=0.004 n=5+6) Decoder_Decode_queryObject-2 4.78µs ± 0% 4.80µs ± 1% +0.53% (p=0.041 n=6+6) Decoder_Decode_jsonParam-2 1.83µs ± 0% 1.84µs ± 0% +0.37% (p=0.032 n=5+5) DecoderFactory_SetDecoderFunc-2 1.63µs ± 0% 1.64µs ± 1% +0.99% (p=0.004 n=6+6) pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 10.9µs ± 1% 10.9µs ± 0% ~ (p=0.792 n=6+5) Middleware_control-2 3.50µs ± 3% 3.55µs ± 3% ~ (p=0.260 n=6+6) 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.13kB ± 3% 1.15kB ± 2% ~ (p=0.513 n=6+6) 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.36µs ± 2% pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 693ns ± 2% DecoderFunc_Decode-2 1.95µs ± 1% Decoder_Decode_json-2 21.9µs ± 1% Decoder_Decode_queryObject-2 4.80µs ± 1% Decoder_Decode_jsonParam-2 1.84µs ± 0% DecoderFactory_SetDecoderFunc-2 1.64µs ± 1% pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 10.9µs ± 0% Middleware_control-2 3.55µs ± 3% 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 ± 2% 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% ```
codecov[bot] commented 1 year ago

Codecov Report

Merging #154 (95fbc7c) into master (fe58e78) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #154   +/-   ##
=======================================
  Coverage   77.68%   77.68%           
=======================================
  Files          28       28           
  Lines        1600     1600           
=======================================
  Hits         1243     1243           
  Misses        235      235           
  Partials      122      122           
Flag Coverage Δ
unittests 77.68% <ø> (ø)

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

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

github-actions[bot] commented 1 year 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-2 22.0µs ±11% 21.5µs ± 1% ~ (p=1.000 n=5+4) _directGzipHead-2 21.1µs ± 1% 21.2µs ± 1% ~ (p=0.143 n=5+5) _noDirectGzip-2 122µs ± 2% 121µs ± 1% ~ (p=0.841 n=5+5) _directGzip_decode-2 460µs ± 7% 457µs ± 1% ~ (p=0.421 n=5+5) _noDirectGzip_decode-2 125µs ± 8% 123µs ± 1% ~ (p=0.690 n=5+5) _jsonBody-2 44.1µs ± 2% 44.4µs ± 4% ~ (p=0.841 n=5+5) _jsonBodyValidation-2 53.6µs ± 3% 53.0µs ± 1% ~ (p=0.310 n=5+5) _outputHeaders-2 22.4µs ± 2% 22.1µs ± 1% ~ (p=0.310 n=5+5) _requestResponseMapping-2 47.6µs ± 4% 47.5µs ± 3% ~ (p=1.000 n=5+5) _validation-2 50.3µs ± 2% 50.2µs ± 2% ~ (p=1.000 n=5+5) _noValidation-2 33.9µs ± 2% 34.5µs ± 5% ~ (p=0.421 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 22.2µs ± 1% 22.1µs ± 1% ~ (p=0.905 n=4+5) _directGzipHead-2 22.1µs ± 1% 21.9µs ± 1% ~ (p=0.190 n=5+4) _noDirectGzip-2 134µs ± 1% 132µs ± 1% -1.51% (p=0.032 n=5+5) _directGzip_decode-2 486µs ± 1% 483µs ± 2% ~ (p=0.548 n=5+5) _noDirectGzip_decode-2 135µs ± 3% 133µs ± 2% ~ (p=0.095 n=5+5) _htmlResponse-2 40.1µs ± 2% 38.7µs ± 2% -3.53% (p=0.016 n=5+5) _jsonBodyManual-2 28.7µs ± 5% 26.7µs ± 2% -7.07% (p=0.008 n=5+5) _jsonBody-2 41.4µs ± 3% 41.2µs ± 3% ~ (p=0.690 n=5+5) _jsonBodyValidation-2 54.9µs ± 1% 55.6µs ± 2% ~ (p=0.310 n=5+5) _outputHeaders-2 38.7µs ± 2% 38.3µs ± 2% ~ (p=0.421 n=5+5) _requestResponseMapping-2 45.9µs ± 1% 46.1µs ± 1% ~ (p=0.690 n=5+5) _validation-2 50.3µs ± 4% 48.8µs ± 1% -2.98% (p=0.032 n=5+5) _noValidation-2 34.5µs ± 2% 34.6µs ± 2% ~ (p=1.000 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 25.3µs ±15% 24.5µs ± 1% ~ (p=0.690 n=5+5) _ok-2 24.2µs ± 1% 24.4µs ± 1% ~ (p=0.413 n=5+4) _invalidBody-2 36.0µs ± 3% 35.9µs ± 2% ~ (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-2 1.03 ± 3% 1.05 ± 6% ~ (p=0.635 n=5+5) _directGzipHead-2 1.02 ± 7% 1.02 ± 6% ~ (p=0.841 n=5+5) _noDirectGzip-2 5.84 ± 6% 5.90 ± 3% ~ (p=0.548 n=5+5) _directGzip_decode-2 18.2 ± 3% 17.6 ± 8% ~ (p=0.286 n=5+5) _noDirectGzip_decode-2 6.05 ± 7% 5.86 ± 5% ~ (p=0.421 n=5+5) _jsonBody-2 2.03 ± 8% 2.05 ± 9% ~ (p=0.841 n=5+5) _jsonBodyValidation-2 2.55 ± 6% 2.58 ± 3% ~ (p=0.841 n=5+5) _outputHeaders-2 1.08 ± 5% 1.07 ± 4% ~ (p=0.738 n=5+5) _requestResponseMapping-2 2.07 ± 5% 2.13 ± 3% ~ (p=0.310 n=5+5) _validation-2 2.23 ± 2% 2.20 ± 5% ~ (p=0.389 n=5+5) _noValidation-2 1.48 ± 2% 1.55 ± 4% +5.00% (p=0.016 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 1.05 ± 6% 1.07 ± 6% ~ (p=0.841 n=5+5) _directGzipHead-2 1.04 ± 8% 1.04 ± 6% ~ (p=0.841 n=5+5) _noDirectGzip-2 6.63 ± 3% 6.41 ± 4% ~ (p=0.151 n=5+5) _directGzip_decode-2 19.0 ± 7% 18.5 ± 5% ~ (p=0.421 n=5+5) _noDirectGzip_decode-2 6.51 ± 4% 6.60 ± 4% ~ (p=0.690 n=5+5) _htmlResponse-2 1.85 ± 4% 1.77 ± 5% ~ (p=0.095 n=5+5) _jsonBodyManual-2 1.33 ± 5% 1.30 ± 5% ~ (p=0.222 n=5+5) _jsonBody-2 1.85 ± 5% 1.81 ± 4% ~ (p=0.548 n=5+5) _jsonBodyValidation-2 2.53 ± 2% 2.57 ± 5% ~ (p=0.548 n=5+5) _outputHeaders-2 1.65 ± 4% 1.67 ± 6% ~ (p=0.841 n=5+5) _requestResponseMapping-2 2.06 ± 3% 2.06 ± 7% ~ (p=0.690 n=5+5) _validation-2 2.17 ± 5% 2.11 ± 4% ~ (p=0.183 n=5+5) _noValidation-2 1.53 ± 5% 1.56 ± 5% ~ (p=0.548 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 1.16 ± 6% 1.17 ± 3% ~ (p=0.222 n=5+5) _ok-2 1.15 ± 8% 1.18 ± 7% ~ (p=0.333 n=5+5) _invalidBody-2 1.55 ± 7% 1.57 ± 4% ~ (p=0.651 n=5+5) name old 90%:ms new 90%:ms delta pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64 _directGzip-2 1.83 ± 6% 1.87 ± 8% ~ (p=0.841 n=5+5) _directGzipHead-2 1.82 ± 5% 1.81 ± 6% ~ (p=1.000 n=5+5) _noDirectGzip-2 10.5 ± 4% 10.7 ± 2% ~ (p=0.286 n=5+5) _directGzip_decode-2 38.1 ± 1% 38.2 ± 7% ~ (p=0.556 n=4+5) _noDirectGzip_decode-2 10.9 ± 9% 10.5 ± 3% ~ (p=0.310 n=5+5) _jsonBody-2 4.05 ± 4% 4.01 ± 5% ~ (p=0.841 n=5+5) _jsonBodyValidation-2 4.74 ± 2% 4.52 ± 3% -4.67% (p=0.016 n=5+5) _outputHeaders-2 1.91 ± 3% 1.91 ± 5% ~ (p=1.000 n=5+5) _requestResponseMapping-2 4.22 ± 5% 4.22 ± 3% ~ (p=0.841 n=5+5) _validation-2 4.46 ± 2% 4.47 ± 3% ~ (p=0.841 n=5+5) _noValidation-2 3.19 ± 5% 3.22 ± 7% ~ (p=1.000 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 1.91 ± 3% 1.91 ± 6% ~ (p=0.841 n=5+5) _directGzipHead-2 1.90 ± 6% 1.88 ± 4% ~ (p=0.841 n=5+5) _noDirectGzip-2 11.4 ± 3% 11.4 ± 6% ~ (p=0.690 n=5+5) _directGzip_decode-2 41.6 ± 5% 41.9 ± 5% ~ (p=0.841 n=5+5) _noDirectGzip_decode-2 11.6 ± 6% 11.4 ± 2% ~ (p=0.548 n=5+5) _htmlResponse-2 3.69 ± 5% 3.54 ± 6% ~ (p=0.095 n=5+5) _jsonBodyManual-2 2.44 ± 8% 2.27 ± 4% -6.99% (p=0.032 n=5+5) _jsonBody-2 3.91 ± 3% 3.86 ± 6% ~ (p=0.690 n=5+5) _jsonBodyValidation-2 4.97 ± 5% 4.84 ± 6% ~ (p=0.222 n=5+5) _outputHeaders-2 3.63 ± 3% 3.67 ± 6% ~ (p=0.841 n=5+5) _requestResponseMapping-2 4.11 ± 7% 4.31 ± 7% ~ (p=0.222 n=5+5) _validation-2 4.64 ± 7% 4.56 ± 8% ~ (p=0.841 n=5+5) _noValidation-2 3.27 ± 5% 3.27 ± 5% ~ (p=0.952 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 2.11 ± 4% 2.19 ± 5% ~ (p=0.222 n=5+5) _ok-2 2.06 ± 3% 2.16 ± 5% ~ (p=0.095 n=5+5) _invalidBody-2 3.46 ± 9% 3.38 ± 7% ~ (p=0.579 n=5+5) name old 99%:ms new 99%:ms delta pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64 _directGzip-2 3.83 ±72% 3.12 ± 4% ~ (p=0.730 n=5+4) _directGzipHead-2 3.05 ± 4% 2.98 ± 6% ~ (p=0.310 n=5+5) _noDirectGzip-2 14.5 ±16% 14.6 ± 5% ~ (p=0.310 n=5+5) _directGzip_decode-2 65.6 ±14% 63.7 ±11% ~ (p=0.690 n=5+5) _noDirectGzip_decode-2 15.6 ±38% 14.7 ± 5% ~ (p=0.690 n=5+5) _jsonBody-2 5.95 ± 6% 5.95 ±24% ~ (p=0.310 n=5+5) _jsonBodyValidation-2 7.96 ±13% 6.74 ± 9% -15.29% (p=0.032 n=5+5) _outputHeaders-2 3.62 ±12% 3.38 ± 8% ~ (p=0.310 n=5+5) _requestResponseMapping-2 9.89 ±12% 9.38 ±15% ~ (p=0.690 n=5+5) _validation-2 10.1 ±17% 8.3 ±25% ~ (p=0.421 n=5+5) _noValidation-2 5.29 ±14% 5.75 ±24% ~ (p=0.548 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 3.17 ± 8% 3.22 ± 4% ~ (p=0.905 n=4+5) _directGzipHead-2 3.17 ± 2% 3.12 ± 3% ~ (p=0.413 n=5+4) _noDirectGzip-2 15.9 ±13% 15.2 ± 5% ~ (p=0.421 n=5+5) _directGzip_decode-2 71.7 ±13% 70.2 ±12% ~ (p=0.690 n=5+5) _noDirectGzip_decode-2 15.8 ± 4% 15.4 ± 6% ~ (p=0.310 n=5+5) _htmlResponse-2 6.83 ±23% 5.41 ± 7% -20.69% (p=0.016 n=5+5) _jsonBodyManual-2 4.58 ±17% 4.02 ± 9% -12.03% (p=0.032 n=5+5) _jsonBody-2 6.43 ±17% 8.15 ±21% +26.79% (p=0.032 n=5+5) _jsonBodyValidation-2 7.60 ± 7% 9.36 ±23% ~ (p=0.056 n=5+5) _outputHeaders-2 5.90 ± 7% 5.93 ±11% ~ (p=1.000 n=5+5) _requestResponseMapping-2 6.14 ± 6% 6.31 ± 8% ~ (p=0.841 n=5+5) _validation-2 7.13 ±11% 6.66 ±10% ~ (p=0.222 n=5+5) _noValidation-2 5.31 ± 3% 5.31 ±10% ~ (p=0.905 n=4+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 3.28 ± 5% 3.42 ± 5% ~ (p=0.286 n=4+5) _ok-2 3.43 ± 8% 3.38 ± 4% ~ (p=0.556 n=5+4) _invalidBody-2 5.71 ±15% 5.61 ± 6% ~ (p=0.841 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-2 10.7 ±55% 4.6 ±13% -57.14% (p=0.016 n=5+4) _directGzipHead-2 5.28 ±25% 5.82 ±50% ~ (p=1.000 n=5+5) _noDirectGzip-2 20.1 ±52% 18.6 ±18% ~ (p=0.841 n=5+5) _directGzip_decode-2 85.8 ±22% 79.1 ± 5% ~ (p=0.286 n=5+4) _noDirectGzip_decode-2 21.4 ±62% 19.0 ±29% ~ (p=0.889 n=5+5) _jsonBody-2 11.5 ±27% 9.9 ±37% ~ (p=0.310 n=5+5) _jsonBodyValidation-2 14.1 ±13% 10.9 ±10% -22.60% (p=0.008 n=5+5) _outputHeaders-2 11.3 ±15% 7.8 ±20% -30.78% (p=0.008 n=5+5) _requestResponseMapping-2 14.1 ± 5% 14.0 ±15% ~ (p=0.690 n=5+5) _validation-2 15.8 ± 5% 13.6 ± 9% -13.65% (p=0.008 n=5+5) _noValidation-2 11.3 ±46% 11.3 ±27% ~ (p=1.000 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 7.52 ±110% 5.17 ±17% ~ (p=0.310 n=5+5) _directGzipHead-2 5.27 ±22% 5.22 ±11% ~ (p=0.905 n=5+4) _noDirectGzip-2 22.2 ±25% 19.4 ±27% ~ (p=0.222 n=5+5) _directGzip_decode-2 92.3 ±17% 92.8 ±16% ~ (p=1.000 n=5+5) _noDirectGzip_decode-2 19.4 ± 7% 18.9 ± 8% ~ (p=0.421 n=5+5) _htmlResponse-2 13.3 ±37% 8.6 ±21% -35.00% (p=0.016 n=5+5) _jsonBodyManual-2 9.86 ±46% 8.02 ±19% ~ (p=0.548 n=5+5) _jsonBody-2 11.2 ±34% 14.0 ±24% ~ (p=0.095 n=5+5) _jsonBodyValidation-2 12.3 ±20% 14.8 ±17% ~ (p=0.056 n=5+5) _outputHeaders-2 12.7 ±35% 11.2 ±29% ~ (p=0.421 n=5+5) _requestResponseMapping-2 9.48 ±20% 11.55 ±21% ~ (p=0.095 n=5+5) _validation-2 13.4 ±22% 13.2 ±39% ~ (p=1.000 n=5+5) _noValidation-2 10.2 ±46% 10.9 ±27% ~ (p=0.690 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 9.86 ±127% 7.52 ±65% ~ (p=0.421 n=5+5) _ok-2 6.18 ±47% 8.87 ±65% ~ (p=0.222 n=5+5) _invalidBody-2 10.3 ±82% 8.0 ±22% ~ (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-2 630 ± 0% 630 ± 0% ~ (all equal) _directGzipHead-2 174 ± 0% 174 ± 0% ~ (all equal) _noDirectGzip-2 1.03k ± 0% 1.03k ± 0% ~ (all equal) _directGzip_decode-2 630 ± 0% 630 ± 0% ~ (all equal) _noDirectGzip_decode-2 1.03k ± 0% 1.03k ± 0% ~ (all equal) _jsonBody-2 199 ± 0% 199 ± 0% ~ (all equal) _jsonBodyValidation-2 185 ± 0% 185 ± 0% ~ (all equal) _outputHeaders-2 146 ± 0% 146 ± 0% ~ (all equal) _requestResponseMapping-2 94.0 ± 0% 94.0 ± 0% ~ (all equal) _validation-2 168 ± 0% 168 ± 0% ~ (all equal) _noValidation-2 168 ± 0% 168 ± 0% ~ (all equal) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 638 ± 0% 638 ± 0% ~ (all equal) _directGzipHead-2 182 ± 0% 182 ± 0% ~ (all equal) _noDirectGzip-2 1.04k ± 0% 1.04k ± 0% ~ (all equal) _directGzip_decode-2 638 ± 0% 638 ± 0% ~ (all equal) _noDirectGzip_decode-2 1.04k ± 0% 1.04k ± 0% ~ (all equal) _htmlResponse-2 355 ± 0% 355 ± 0% ~ (all equal) _jsonBodyManual-2 207 ± 0% 207 ± 0% ~ (all equal) _jsonBody-2 207 ± 0% 207 ± 0% ~ (all equal) _jsonBodyValidation-2 193 ± 0% 193 ± 0% ~ (all equal) _outputHeaders-2 214 ± 0% 214 ± 0% ~ (all equal) _requestResponseMapping-2 108 ± 0% 108 ± 0% ~ (all equal) _validation-2 176 ± 0% 176 ± 0% ~ (all equal) _noValidation-2 176 ± 0% 176 ± 0% ~ (all equal) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 322 ± 0% 322 ± 0% ~ (all equal) _ok-2 344 ± 0% 344 ± 0% ~ (all equal) _invalidBody-2 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-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) _htmlResponse-2 108 ± 0% 108 ± 0% ~ (all equal) _jsonBodyManual-2 195 ± 0% 195 ± 0% ~ (all equal) _jsonBody-2 188 ± 0% 188 ± 0% ~ (all equal) _jsonBodyValidation-2 192 ± 0% 192 ± 0% ~ (all equal) _outputHeaders-2 88.0 ± 0% 88.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 ±10% 46.5k ± 1% ~ (p=1.000 n=5+4) _directGzipHead-2 47.4k ± 1% 47.2k ± 1% ~ (p=0.151 n=5+5) _noDirectGzip-2 8.22k ± 2% 8.24k ± 1% ~ (p=0.841 n=5+5) _directGzip_decode-2 2.17k ± 6% 2.19k ± 1% ~ (p=0.421 n=5+5) _noDirectGzip_decode-2 8.02k ± 8% 8.15k ± 1% ~ (p=0.595 n=5+5) _jsonBody-2 22.7k ± 2% 22.5k ± 4% ~ (p=0.841 n=5+5) _jsonBodyValidation-2 18.7k ± 3% 18.9k ± 1% ~ (p=0.310 n=5+5) _outputHeaders-2 44.7k ± 2% 45.2k ± 1% ~ (p=0.310 n=5+5) _requestResponseMapping-2 21.0k ± 4% 21.1k ± 3% ~ (p=1.000 n=5+5) _validation-2 19.9k ± 2% 19.9k ± 2% ~ (p=1.000 n=5+5) _noValidation-2 29.5k ± 2% 29.0k ± 5% ~ (p=0.421 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 45.1k ± 1% 45.2k ± 1% ~ (p=0.905 n=4+5) _directGzipHead-2 45.3k ± 1% 45.7k ± 1% ~ (p=0.190 n=5+4) _noDirectGzip-2 7.49k ± 1% 7.60k ± 1% +1.53% (p=0.032 n=5+5) _directGzip_decode-2 2.05k ± 2% 2.07k ± 2% ~ (p=0.421 n=5+5) _noDirectGzip_decode-2 7.42k ± 3% 7.55k ± 0% +1.63% (p=0.016 n=5+4) _htmlResponse-2 24.9k ± 2% 25.8k ± 2% +3.66% (p=0.016 n=5+5) _jsonBodyManual-2 34.9k ± 5% 37.5k ± 3% +7.53% (p=0.008 n=5+5) _jsonBody-2 24.2k ± 3% 24.3k ± 2% ~ (p=0.690 n=5+5) _jsonBodyValidation-2 18.2k ± 1% 18.0k ± 2% ~ (p=0.310 n=5+5) _outputHeaders-2 25.9k ± 2% 26.1k ± 2% ~ (p=0.421 n=5+5) _requestResponseMapping-2 21.8k ± 1% 21.7k ± 1% ~ (p=0.690 n=5+5) _validation-2 19.9k ± 4% 20.5k ± 1% +3.01% (p=0.032 n=5+5) _noValidation-2 29.0k ± 2% 28.9k ± 2% ~ (p=1.000 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 39.7k ±13% 40.8k ± 1% ~ (p=0.690 n=5+5) _ok-2 41.3k ± 1% 41.1k ± 1% ~ (p=0.413 n=5+4) _invalidBody-2 27.8k ± 3% 27.9k ± 2% ~ (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-2 3.84kB ± 0% 3.84kB ± 0% ~ (p=1.000 n=5+5) _directGzipHead-2 3.84kB ± 0% 3.84kB ± 0% ~ (p=0.135 n=5+5) _noDirectGzip-2 6.38kB ±16% 6.22kB ±15% ~ (p=0.690 n=5+5) _directGzip_decode-2 403kB ± 0% 403kB ± 0% ~ (p=0.548 n=5+5) _noDirectGzip_decode-2 5.65kB ± 9% 5.46kB ± 7% ~ (p=0.222 n=5+5) _jsonBody-2 13.1kB ± 0% 13.1kB ± 0% ~ (p=0.952 n=5+5) _jsonBodyValidation-2 18.9kB ± 0% 18.9kB ± 0% ~ (p=0.421 n=5+5) _outputHeaders-2 3.56kB ± 0% 3.56kB ± 0% ~ (p=0.484 n=5+5) _requestResponseMapping-2 16.6kB ± 0% 16.6kB ± 0% ~ (p=0.413 n=5+5) _validation-2 16.5kB ± 0% 16.5kB ± 0% ~ (p=0.127 n=5+5) _noValidation-2 7.75kB ± 0% 7.75kB ± 0% ~ (p=0.659 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 3.88kB ± 0% 3.88kB ± 0% ~ (p=0.365 n=5+5) _directGzipHead-2 3.87kB ± 0% 3.87kB ± 0% ~ (p=1.000 n=5+5) _noDirectGzip-2 6.78kB ±17% 6.55kB ±19% ~ (p=0.690 n=5+5) _directGzip_decode-2 403kB ± 0% 403kB ± 0% ~ (p=0.310 n=5+5) _noDirectGzip_decode-2 5.52kB ± 5% 5.82kB ± 8% +5.50% (p=0.032 n=5+5) _htmlResponse-2 8.02kB ± 0% 8.02kB ± 0% ~ (p=0.556 n=5+5) _jsonBodyManual-2 4.48kB ± 0% 4.48kB ± 0% ~ (p=0.389 n=5+5) _jsonBody-2 10.2kB ± 0% 10.2kB ± 0% ~ (p=0.802 n=5+5) _jsonBodyValidation-2 19.0kB ± 0% 19.0kB ± 0% ~ (p=0.087 n=5+5) _outputHeaders-2 10.4kB ± 0% 10.4kB ± 0% ~ (p=0.357 n=5+5) _requestResponseMapping-2 16.6kB ± 0% 16.6kB ± 0% ~ (p=0.397 n=5+5) _validation-2 16.5kB ± 0% 16.5kB ± 0% ~ (p=0.302 n=5+5) _noValidation-2 7.81kB ± 0% 7.81kB ± 0% ~ (p=1.000 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 4.63kB ± 0% 4.63kB ± 0% ~ (p=0.762 n=5+5) _ok-2 4.53kB ± 0% 4.53kB ± 0% ~ (p=0.686 n=4+4) _invalidBody-2 8.25kB ± 0% 8.24kB ± 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-2 42.0 ± 0% 42.0 ± 0% ~ (all equal) _directGzipHead-2 42.0 ± 0% 42.0 ± 0% ~ (all equal) _noDirectGzip-2 49.4 ± 3% 49.4 ± 3% ~ (p=1.000 n=5+5) _directGzip_decode-2 503 ± 1% 503 ± 0% ~ (p=0.905 n=5+5) _noDirectGzip_decode-2 50.0 ± 0% 50.0 ± 0% ~ (all equal) _jsonBody-2 128 ± 0% 128 ± 0% ~ (all equal) _jsonBodyValidation-2 185 ± 0% 185 ± 0% ~ (all equal) _outputHeaders-2 36.0 ± 0% 36.0 ± 0% ~ (all equal) _requestResponseMapping-2 124 ± 0% 124 ± 0% ~ (all equal) _validation-2 154 ± 0% 154 ± 0% ~ (all equal) _noValidation-2 91.0 ± 0% 91.0 ± 0% ~ (all equal) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 44.0 ± 0% 44.0 ± 0% ~ (all equal) _directGzipHead-2 44.0 ± 0% 44.0 ± 0% ~ (all equal) _noDirectGzip-2 51.6 ± 3% 51.6 ± 3% ~ (p=1.000 n=5+5) _directGzip_decode-2 506 ± 0% 505 ± 0% ~ (p=0.095 n=5+4) _noDirectGzip_decode-2 52.0 ± 0% 52.0 ± 0% ~ (all equal) _htmlResponse-2 145 ± 0% 145 ± 0% ~ (all equal) _jsonBodyManual-2 49.0 ± 0% 49.0 ± 0% ~ (all equal) _jsonBody-2 100 ± 0% 100 ± 0% ~ (all equal) _jsonBodyValidation-2 187 ± 0% 187 ± 0% ~ (all equal) _outputHeaders-2 113 ± 0% 113 ± 0% ~ (all equal) _requestResponseMapping-2 126 ± 0% 126 ± 0% ~ (all equal) _validation-2 156 ± 0% 156 ± 0% ~ (all equal) _noValidation-2 93.0 ± 0% 93.0 ± 0% ~ (all equal) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 53.0 ± 0% 53.0 ± 0% ~ (all equal) _ok-2 49.0 ± 0% 49.0 ± 0% ~ (all equal) _invalidBody-2 97.0 ± 0% 97.0 ± 0% ~ (all equal) ```