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 openapi-go #167

Closed vearutop closed 11 months ago

github-actions[bot] commented 11 months ago

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go 110 (-22) 8178 (-1319) 5927 (-984) 566 (-53) 1685 (-282) 998 (-83) 198.8K (-33.1K)
Go (test) 53 (-10) 6308 (-666) 4834 (-498) 291 (-32) 1183 (-136) 186 (-37) 174K (-19.4K)
JSON 3 (-1) 1578 (-814) 1578 (-814) 0 0 0 62.3K (-36K)
github-actions[bot] commented 11 months ago

Go API Changes

# summary
Inferred base version: v0.2.55
Suggested version: v0.2.56
github-actions[bot] commented 11 months ago

Unit Test Coverage

total: (statements) 81.4%

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

Codecov Report

Merging #167 (8afb41d) into master (82f352f) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #167   +/-   ##
=======================================
  Coverage   76.62%   76.62%           
=======================================
  Files          30       30           
  Lines        1673     1673           
=======================================
  Hits         1282     1282           
  Misses        284      284           
  Partials      107      107           
Flag Coverage Δ
unittests 76.62% <ø> (ø)

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 11 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-2 1.44µs ± 2% 1.54µs ±23% ~ (p=0.835 n=5+6) pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 733ns ± 1% 728ns ± 2% ~ (p=0.329 n=6+5) DecoderFunc_Decode-2 2.09µs ± 2% 2.07µs ± 2% ~ (p=0.589 n=6+6) Decoder_Decode_json-2 23.4µs ± 1% 23.4µs ± 0% ~ (p=1.000 n=6+4) Decoder_Decode_queryObject-2 4.99µs ± 0% 5.05µs ± 1% ~ (p=0.052 n=5+6) Decoder_Decode_jsonParam-2 1.93µs ± 3% 1.92µs ± 2% ~ (p=1.000 n=6+6) DecoderFactory_SetDecoderFunc-2 1.75µs ± 1% 1.74µs ± 1% ~ (p=0.240 n=6+6) pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 11.2µs ± 1% 11.1µs ± 1% ~ (p=0.240 n=6+6) Middleware_control-2 4.02µs ± 1% 3.92µs ± 7% ~ (p=0.589 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.14kB ± 2% 1.12kB ± 3% ~ (p=0.139 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.54µs ±23% pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 728ns ± 2% DecoderFunc_Decode-2 2.07µs ± 2% Decoder_Decode_json-2 23.4µs ± 0% Decoder_Decode_queryObject-2 5.05µs ± 1% Decoder_Decode_jsonParam-2 1.92µs ± 2% DecoderFactory_SetDecoderFunc-2 1.74µs ± 1% pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 11.1µs ± 1% Middleware_control-2 3.92µs ± 7% 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.12kB ± 3% Middleware_control-2 11.2kB ± 0% name allocs/op pkg:github.com/swaggest/rest/jsonschema goos:linux goarch:amd64 RequestValidator_ValidateRequestData-2 8.00 ± 0% pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 4.00 ± 0% DecoderFunc_Decode-2 12.0 ± 0% Decoder_Decode_json-2 177 ± 0% Decoder_Decode_queryObject-2 36.0 ± 0% Decoder_Decode_jsonParam-2 13.0 ± 0% DecoderFactory_SetDecoderFunc-2 16.0 ± 0% pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 11.0 ± 0% Middleware_control-2 9.00 ± 0% ```
github-actions[bot] commented 11 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-2 23.6µs ± 1% 23.8µs ± 0% +0.85% (p=0.029 n=4+4) _directGzipHead-2 23.5µs ± 1% 23.8µs ± 2% ~ (p=0.095 n=5+5) _noDirectGzip-2 133µs ± 1% 133µs ± 1% ~ (p=0.548 n=5+5) _directGzip_decode-2 478µs ± 1% 478µs ± 0% ~ (p=0.556 n=5+4) _noDirectGzip_decode-2 134µs ± 1% 134µs ± 1% ~ (p=0.690 n=5+5) _jsonBody-2 49.5µs ± 2% 50.1µs ± 2% ~ (p=0.548 n=5+5) _jsonBodyValidation-2 56.8µs ± 3% 59.1µs ± 1% +4.00% (p=0.016 n=5+5) _outputHeaders-2 24.7µs ± 2% 25.2µs ± 2% +2.12% (p=0.032 n=5+5) _requestResponseMapping-2 50.4µs ± 3% 51.9µs ± 1% +2.91% (p=0.032 n=5+5) _validation-2 53.9µs ± 2% 54.8µs ± 2% ~ (p=0.056 n=5+5) _noValidation-2 37.0µs ± 1% 37.7µs ± 2% +2.02% (p=0.008 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64 _directGzip-2 24.7µs ± 1% 28.5µs ±17% +15.25% (p=0.008 n=5+5) _directGzipHead-2 26.5µs ±15% 27.5µs ± 6% ~ (p=0.222 n=5+5) _noDirectGzip-2 129µs ± 1% 139µs ± 4% +7.65% (p=0.008 n=5+5) _directGzip_decode-2 480µs ± 2% 517µs ± 3% +7.75% (p=0.008 n=5+5) _noDirectGzip_decode-2 130µs ± 1% 138µs ± 5% +6.21% (p=0.008 n=5+5) _htmlResponse-2 42.1µs ± 1% 45.8µs ± 3% +8.74% (p=0.008 n=5+5) _jsonBodyManual-2 30.2µs ± 1% 31.9µs ± 1% +5.42% (p=0.008 n=5+5) _jsonBody-2 44.8µs ± 3% 48.4µs ± 4% +8.11% (p=0.008 n=5+5) _jsonBodyValidation-2 59.2µs ± 2% 64.4µs ± 7% +8.84% (p=0.008 n=5+5) _outputHeaders-2 42.7µs ± 2% 45.9µs ± 5% +7.45% (p=0.008 n=5+5) _requestResponseMapping-2 50.4µs ± 2% 53.3µs ± 2% +5.74% (p=0.008 n=5+5) _validation-2 54.4µs ± 3% 58.5µs ± 7% +7.57% (p=0.008 n=5+5) _noValidation-2 38.7µs ± 2% 41.3µs ± 2% +6.64% (p=0.008 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 26.8µs ± 1% 29.6µs ±11% ~ (p=0.063 n=4+5) _ok-2 27.1µs ± 2% 28.8µs ± 2% +6.30% (p=0.008 n=5+5) _invalidBody-2 40.1µs ± 3% 42.4µs ± 4% +5.80% (p=0.008 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.16 ± 4% 1.15 ± 5% ~ (p=0.952 n=4+5) _directGzipHead-2 1.12 ± 7% 1.10 ± 4% ~ (p=0.841 n=5+5) _noDirectGzip-2 6.53 ± 4% 6.53 ± 2% ~ (p=0.548 n=5+5) _directGzip_decode-2 18.5 ± 4% 18.6 ± 5% ~ (p=0.841 n=5+5) _noDirectGzip_decode-2 6.59 ± 7% 6.49 ± 6% ~ (p=0.421 n=5+5) _jsonBody-2 2.24 ± 5% 2.22 ± 4% ~ (p=0.548 n=5+5) _jsonBodyValidation-2 2.69 ± 6% 2.78 ± 4% ~ (p=0.310 n=5+5) _outputHeaders-2 1.12 ± 4% 1.18 ± 6% ~ (p=0.151 n=5+5) _requestResponseMapping-2 2.26 ± 4% 2.32 ± 7% ~ (p=0.421 n=5+5) _validation-2 2.32 ± 3% 2.48 ± 6% +7.06% (p=0.016 n=5+5) _noValidation-2 1.72 ± 4% 1.74 ± 6% ~ (p=0.690 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64 _directGzip-2 1.16 ± 3% 1.25 ± 4% +8.11% (p=0.008 n=5+5) _directGzipHead-2 1.22 ± 7% 1.25 ± 8% ~ (p=0.548 n=5+5) _noDirectGzip-2 6.37 ± 5% 6.45 ± 4% ~ (p=0.841 n=5+5) _directGzip_decode-2 18.7 ± 7% 19.2 ±10% ~ (p=1.000 n=5+5) _noDirectGzip_decode-2 6.24 ± 4% 6.26 ± 4% ~ (p=1.000 n=5+5) _htmlResponse-2 1.96 ± 7% 1.98 ± 5% ~ (p=1.000 n=5+5) _jsonBodyManual-2 1.41 ± 3% 1.47 ±13% ~ (p=0.730 n=5+5) _jsonBody-2 2.02 ± 2% 2.11 ± 3% +4.21% (p=0.016 n=5+5) _jsonBodyValidation-2 2.74 ± 5% 2.82 ± 9% ~ (p=0.421 n=5+5) _outputHeaders-2 1.93 ± 6% 1.95 ± 9% ~ (p=1.000 n=5+5) _requestResponseMapping-2 2.21 ± 4% 2.23 ± 7% ~ (p=0.690 n=5+5) _validation-2 2.40 ± 7% 2.40 ± 7% ~ (p=1.000 n=5+5) _noValidation-2 1.71 ± 4% 1.75 ± 4% ~ (p=0.381 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 1.27 ± 2% 1.34 ± 4% +5.04% (p=0.032 n=5+5) _ok-2 1.26 ± 5% 1.31 ± 5% ~ (p=0.167 n=5+5) _invalidBody-2 1.77 ±11% 1.79 ±10% ~ (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-2 2.06 ± 4% 2.03 ± 3% ~ (p=0.556 n=4+5) _directGzipHead-2 1.97 ± 4% 2.01 ± 3% ~ (p=0.310 n=5+5) _noDirectGzip-2 11.3 ± 3% 11.5 ± 2% ~ (p=0.421 n=5+5) _directGzip_decode-2 39.6 ±10% 41.1 ± 2% ~ (p=0.310 n=5+5) _noDirectGzip_decode-2 11.6 ± 4% 11.4 ± 3% ~ (p=0.841 n=5+5) _jsonBody-2 4.37 ± 4% 4.53 ± 7% ~ (p=0.310 n=5+5) _jsonBodyValidation-2 4.77 ± 2% 5.17 ± 5% +8.27% (p=0.008 n=5+5) _outputHeaders-2 2.10 ± 6% 2.20 ± 5% ~ (p=0.222 n=5+5) _requestResponseMapping-2 4.55 ± 9% 4.69 ± 3% ~ (p=0.151 n=5+5) _validation-2 4.88 ± 7% 4.85 ± 8% ~ (p=0.548 n=5+5) _noValidation-2 3.51 ± 6% 3.52 ± 5% ~ (p=0.841 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64 _directGzip-2 2.08 ± 5% 2.18 ± 9% ~ (p=0.095 n=5+5) _directGzipHead-2 2.18 ± 7% 2.28 ± 5% ~ (p=0.222 n=5+5) _noDirectGzip-2 11.2 ± 2% 11.2 ± 3% ~ (p=0.802 n=5+5) _directGzip_decode-2 40.6 ± 4% 45.3 ± 9% +11.71% (p=0.008 n=5+5) _noDirectGzip_decode-2 11.1 ± 3% 11.4 ± 5% ~ (p=0.421 n=5+5) _htmlResponse-2 3.78 ± 4% 3.92 ± 6% ~ (p=0.310 n=5+5) _jsonBodyManual-2 2.65 ± 7% 2.69 ± 9% ~ (p=0.841 n=5+5) _jsonBody-2 4.05 ± 4% 4.52 ± 9% +11.67% (p=0.032 n=5+5) _jsonBodyValidation-2 5.15 ± 3% 5.63 ±10% ~ (p=0.056 n=5+5) _outputHeaders-2 4.09 ± 3% 4.48 ± 6% +9.44% (p=0.008 n=5+5) _requestResponseMapping-2 4.80 ± 1% 4.84 ± 8% ~ (p=0.286 n=4+5) _validation-2 5.07 ± 7% 5.35 ± 6% ~ (p=0.151 n=5+5) _noValidation-2 3.63 ± 4% 3.76 ± 5% ~ (p=0.167 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 2.34 ± 6% 2.35 ± 4% ~ (p=1.000 n=5+5) _ok-2 2.34 ± 6% 2.36 ± 5% ~ (p=1.000 n=5+5) _invalidBody-2 3.77 ± 6% 3.94 ± 6% ~ (p=0.151 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.29 ± 5% 3.46 ± 9% ~ (p=0.190 n=4+5) _directGzipHead-2 3.37 ± 7% 3.55 ±13% ~ (p=0.421 n=5+5) _noDirectGzip-2 15.2 ± 5% 15.8 ± 7% ~ (p=0.222 n=5+5) _directGzip_decode-2 66.4 ± 7% 73.1 ±11% ~ (p=0.222 n=5+5) _noDirectGzip_decode-2 15.6 ± 5% 15.6 ± 8% ~ (p=1.000 n=5+5) _jsonBody-2 7.43 ±37% 7.20 ±32% ~ (p=0.690 n=5+5) _jsonBodyValidation-2 7.30 ±29% 8.29 ±14% ~ (p=0.095 n=5+5) _outputHeaders-2 4.02 ± 9% 4.23 ±23% ~ (p=0.690 n=5+5) _requestResponseMapping-2 8.47 ±16% 8.47 ± 8% ~ (p=0.841 n=5+5) _validation-2 9.81 ±20% 8.58 ±37% ~ (p=0.310 n=5+5) _noValidation-2 5.88 ±12% 5.77 ± 6% ~ (p=0.690 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64 _directGzip-2 3.52 ± 6% 6.75 ±116% +91.84% (p=0.008 n=5+5) _directGzipHead-2 5.42 ±88% 5.59 ±32% ~ (p=0.690 n=5+5) _noDirectGzip-2 15.3 ± 5% 28.4 ±60% +85.52% (p=0.008 n=5+5) _directGzip_decode-2 69.9 ± 7% 86.7 ±13% +23.99% (p=0.008 n=5+5) _noDirectGzip_decode-2 15.5 ± 5% 25.0 ±42% +61.66% (p=0.008 n=5+5) _htmlResponse-2 6.20 ± 7% 8.38 ±20% +35.20% (p=0.008 n=5+5) _jsonBodyManual-2 4.74 ± 8% 5.46 ± 9% +15.22% (p=0.016 n=5+5) _jsonBody-2 6.68 ±11% 9.02 ±31% +34.99% (p=0.016 n=5+5) _jsonBodyValidation-2 7.48 ± 9% 9.11 ±10% +21.83% (p=0.008 n=5+5) _outputHeaders-2 6.84 ±12% 8.50 ±13% +24.16% (p=0.008 n=5+5) _requestResponseMapping-2 6.98 ±13% 9.26 ±19% +32.67% (p=0.032 n=5+5) _validation-2 8.20 ±15% 10.58 ±22% +29.10% (p=0.032 n=5+5) _noValidation-2 6.33 ± 9% 7.46 ± 9% +17.82% (p=0.016 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 3.58 ± 3% 3.98 ± 5% +11.36% (p=0.029 n=4+4) _ok-2 3.86 ±12% 4.26 ± 6% ~ (p=0.056 n=5+5) _invalidBody-2 6.60 ±14% 7.27 ±10% ~ (p=0.151 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.3 ±114% 5.5 ±17% ~ (p=0.310 n=5+5) _directGzipHead-2 7.42 ±64% 7.83 ±43% ~ (p=1.000 n=5+5) _noDirectGzip-2 19.0 ±11% 20.7 ±10% ~ (p=0.310 n=5+5) _directGzip_decode-2 83.2 ±10% 92.9 ±22% ~ (p=0.310 n=5+5) _noDirectGzip_decode-2 20.2 ±19% 21.5 ±41% ~ (p=1.000 n=5+5) _jsonBody-2 13.1 ±37% 13.1 ±31% ~ (p=0.841 n=5+5) _jsonBodyValidation-2 12.4 ±61% 14.8 ±33% ~ (p=0.222 n=5+5) _outputHeaders-2 8.78 ±23% 9.19 ±31% ~ (p=0.690 n=5+5) _requestResponseMapping-2 14.0 ± 4% 14.0 ±10% ~ (p=0.548 n=5+5) _validation-2 14.7 ±27% 15.1 ± 7% ~ (p=0.952 n=5+5) _noValidation-2 10.2 ±23% 12.0 ±43% ~ (p=0.421 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64 _directGzip-2 6.72 ±29% 34.61 ±66% +415.11% (p=0.008 n=5+5) _directGzipHead-2 11.6 ±56% 29.6 ±46% +155.72% (p=0.008 n=5+5) _noDirectGzip-2 19.7 ±17% 77.6 ±55% +293.06% (p=0.008 n=5+5) _directGzip_decode-2 95.5 ±12% 113.0 ±20% ~ (p=0.095 n=5+5) _noDirectGzip_decode-2 21.1 ±21% 71.2 ±56% +236.62% (p=0.008 n=5+5) _htmlResponse-2 12.2 ±47% 36.3 ±33% +197.60% (p=0.008 n=5+5) _jsonBodyManual-2 9.85 ±26% 26.76 ±10% +171.75% (p=0.008 n=5+5) _jsonBody-2 11.9 ±20% 42.6 ±25% +259.01% (p=0.008 n=5+5) _jsonBodyValidation-2 13.3 ±38% 57.7 ±44% +333.83% (p=0.008 n=5+5) _outputHeaders-2 12.3 ±61% 51.5 ±88% +319.55% (p=0.008 n=5+5) _requestResponseMapping-2 12.3 ±18% 28.7 ±55% +134.02% (p=0.032 n=5+5) _validation-2 15.1 ±24% 46.2 ±46% +206.77% (p=0.008 n=5+5) _noValidation-2 10.5 ±55% 43.5 ±63% +314.75% (p=0.008 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 9.21 ±149% 29.65 ±92% +222.12% (p=0.032 n=5+5) _ok-2 7.62 ±22% 26.77 ±66% +251.50% (p=0.016 n=5+5) _invalidBody-2 10.6 ±26% 44.6 ±36% +320.09% (p=0.008 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-openapi31 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-openapi31 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 42.4k ± 1% 42.1k ± 0% -0.85% (p=0.029 n=4+4) _directGzipHead-2 42.6k ± 1% 42.0k ± 2% ~ (p=0.095 n=5+5) _noDirectGzip-2 7.54k ± 1% 7.52k ± 1% ~ (p=0.548 n=5+5) _directGzip_decode-2 2.09k ± 1% 2.09k ± 0% ~ (p=0.714 n=5+4) _noDirectGzip_decode-2 7.46k ± 1% 7.48k ± 1% ~ (p=0.690 n=5+5) _jsonBody-2 20.2k ± 2% 20.0k ± 2% ~ (p=0.548 n=5+5) _jsonBodyValidation-2 17.6k ± 3% 16.9k ± 1% -3.88% (p=0.016 n=5+5) _outputHeaders-2 40.5k ± 2% 39.7k ± 2% -2.07% (p=0.032 n=5+5) _requestResponseMapping-2 19.8k ± 3% 19.3k ± 1% ~ (p=0.056 n=5+5) _validation-2 18.6k ± 2% 18.2k ± 2% ~ (p=0.056 n=5+5) _noValidation-2 27.1k ± 1% 26.5k ± 2% -1.97% (p=0.008 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64 _directGzip-2 40.5k ± 1% 35.4k ±15% -12.54% (p=0.008 n=5+5) _directGzipHead-2 38.0k ±13% 36.5k ± 6% ~ (p=0.222 n=5+5) _noDirectGzip-2 7.76k ± 1% 7.21k ± 4% -7.04% (p=0.008 n=5+5) _directGzip_decode-2 2.08k ± 2% 1.93k ± 3% -7.17% (p=0.008 n=5+5) _noDirectGzip_decode-2 7.71k ± 1% 7.26k ± 4% -5.75% (p=0.008 n=5+5) _htmlResponse-2 23.7k ± 1% 21.8k ± 3% -8.02% (p=0.008 n=5+5) _jsonBodyManual-2 33.1k ± 1% 31.4k ± 1% -5.14% (p=0.008 n=5+5) _jsonBody-2 22.3k ± 3% 20.7k ± 4% -7.50% (p=0.008 n=5+5) _jsonBodyValidation-2 16.9k ± 2% 15.5k ± 6% -7.92% (p=0.008 n=5+5) _outputHeaders-2 23.4k ± 2% 21.8k ± 5% -6.86% (p=0.008 n=5+5) _requestResponseMapping-2 19.8k ± 2% 18.8k ± 2% -5.42% (p=0.008 n=5+5) _validation-2 18.4k ± 3% 17.1k ± 6% -6.96% (p=0.008 n=5+5) _noValidation-2 25.8k ± 2% 24.2k ± 2% -6.22% (p=0.008 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 37.3k ± 1% 33.9k ±10% ~ (p=0.063 n=4+5) _ok-2 36.9k ± 2% 34.7k ± 3% -5.91% (p=0.008 n=5+5) _invalidBody-2 25.0k ± 3% 23.6k ± 4% -5.43% (p=0.008 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.85kB ± 0% 3.85kB ± 0% ~ (p=0.333 n=5+5) _directGzipHead-2 3.84kB ± 0% 3.84kB ± 0% ~ (p=0.476 n=5+5) _noDirectGzip-2 6.67kB ±14% 6.55kB ±16% ~ (p=0.841 n=5+5) _directGzip_decode-2 403kB ± 0% 403kB ± 0% ~ (p=0.841 n=5+5) _noDirectGzip_decode-2 5.59kB ±11% 5.80kB ±13% ~ (p=0.841 n=5+5) _jsonBody-2 13.1kB ± 0% 13.1kB ± 0% ~ (p=0.690 n=5+5) _jsonBodyValidation-2 18.9kB ± 0% 18.9kB ± 0% ~ (p=1.000 n=5+5) _outputHeaders-2 3.56kB ± 0% 3.56kB ± 0% ~ (p=0.960 n=5+5) _requestResponseMapping-2 16.6kB ± 0% 16.6kB ± 0% ~ (p=1.000 n=5+5) _validation-2 16.5kB ± 0% 16.5kB ± 0% ~ (p=0.810 n=5+5) _noValidation-2 7.75kB ± 0% 7.75kB ± 0% ~ (p=0.635 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64 _directGzip-2 3.88kB ± 0% 3.88kB ± 0% ~ (p=0.230 n=5+5) _directGzipHead-2 3.88kB ± 0% 3.88kB ± 0% ~ (p=0.905 n=5+5) _noDirectGzip-2 6.67kB ±19% 6.77kB ±13% ~ (p=1.000 n=5+5) _directGzip_decode-2 403kB ± 0% 403kB ± 0% ~ (p=0.548 n=5+5) _noDirectGzip_decode-2 5.68kB ± 3% 5.81kB ± 7% ~ (p=0.841 n=5+5) _htmlResponse-2 8.06kB ± 0% 8.05kB ± 0% ~ (p=0.746 n=5+5) _jsonBodyManual-2 4.48kB ± 0% 4.49kB ± 0% ~ (p=0.286 n=5+5) _jsonBody-2 10.2kB ± 0% 10.2kB ± 0% ~ (p=0.310 n=5+5) _jsonBodyValidation-2 19.0kB ± 0% 19.0kB ± 0% +0.04% (p=0.048 n=5+5) _outputHeaders-2 10.4kB ± 0% 10.4kB ± 0% ~ (p=0.444 n=5+5) _requestResponseMapping-2 16.6kB ± 0% 16.6kB ± 0% ~ (p=0.937 n=4+5) _validation-2 16.5kB ± 0% 16.5kB ± 0% ~ (p=0.516 n=5+5) _noValidation-2 7.81kB ± 0% 7.81kB ± 0% ~ (p=0.444 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.214 n=5+5) _ok-2 4.54kB ± 0% 4.54kB ± 0% ~ (p=0.314 n=4+4) _invalidBody-2 8.25kB ± 0% 8.24kB ± 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-2 42.0 ± 0% 42.0 ± 0% ~ (all equal) _directGzipHead-2 42.0 ± 0% 42.0 ± 0% ~ (all equal) _noDirectGzip-2 49.6 ± 3% 49.6 ± 3% ~ (p=1.000 n=5+5) _directGzip_decode-2 504 ± 0% 503 ± 0% ~ (p=0.722 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-openapi31 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.8 ± 3% ~ (p=1.000 n=5+5) _directGzip_decode-2 505 ± 0% 505 ± 0% ~ (p=0.643 n=5+5) _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) ```