swaggest / rest

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

Update dependencies #100

Closed vearutop closed 1 year ago

vearutop commented 1 year ago

Fixes #99.

github-actions[bot] commented 1 year ago

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
JSON 3 1440 1440 0 0 0 58.7K (-64B)
github-actions[bot] commented 1 year ago

Go API Changes

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

Unit Test Coverage

total: (statements) 83.9%

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.35µs ± 2% 1.34µs ± 1% ~ (p=0.841 n=5+5) pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 682ns ± 0% 678ns ± 0% -0.53% (p=0.032 n=5+5) DecoderFunc_Decode-2 1.97µs ± 2% 1.95µs ± 2% ~ (p=0.222 n=5+5) Decoder_Decode_json-2 22.6µs ± 0% 22.7µs ± 1% +0.76% (p=0.016 n=4+5) Decoder_Decode_queryObject-2 5.14µs ± 3% 4.92µs ± 1% -4.28% (p=0.008 n=5+5) Decoder_Decode_jsonParam-2 1.95µs ± 2% 1.95µs ± 0% ~ (p=0.460 n=5+5) DecoderFactory_SetDecoderFunc-2 1.67µs ± 1% 1.66µs ± 1% -0.80% (p=0.048 n=5+5) pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 11.4µs ± 2% 11.4µs ± 2% ~ (p=0.690 n=5+5) Middleware_control-2 3.23µs ± 0% 3.22µs ± 2% ~ (p=0.452 n=5+5) 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 ± 3% 1.15kB ± 7% ~ (p=0.810 n=5+5) 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.34µs ± 1% pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 678ns ± 0% DecoderFunc_Decode-2 1.95µs ± 2% Decoder_Decode_json-2 22.7µs ± 1% Decoder_Decode_queryObject-2 4.92µs ± 1% Decoder_Decode_jsonParam-2 1.95µs ± 0% DecoderFactory_SetDecoderFunc-2 1.66µs ± 1% pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 11.4µs ± 2% Middleware_control-2 3.22µs ± 2% 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 ± 7% 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 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 28.7µs ± 1% 30.2µs ± 8% +5.31% (p=0.008 n=5+5) _directGzipHead-2 30.0µs ±15% 30.3µs ±21% ~ (p=0.690 n=5+5) _noDirectGzip-2 154µs ± 4% 155µs ± 4% ~ (p=0.841 n=5+5) _directGzip_decode-2 564µs ± 4% 566µs ± 4% ~ (p=0.841 n=5+5) _noDirectGzip_decode-2 154µs ± 1% 153µs ± 1% ~ (p=0.310 n=5+5) _jsonBody-2 53.7µs ± 2% 53.8µs ± 3% ~ (p=0.841 n=5+5) _jsonBodyValidation-2 61.9µs ± 2% 63.2µs ± 5% ~ (p=0.421 n=5+5) _outputHeaders-2 28.1µs ± 2% 27.8µs ± 2% ~ (p=0.222 n=5+5) _requestResponseMapping-2 52.8µs ± 2% 53.1µs ± 3% ~ (p=1.000 n=5+5) _validation-2 56.0µs ± 3% 57.9µs ± 3% ~ (p=0.056 n=5+5) _noValidation-2 40.8µs ± 4% 40.6µs ± 2% ~ (p=0.548 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 29.8µs ±15% 29.9µs ± 3% ~ (p=0.151 n=5+5) _directGzipHead-2 29.9µs ± 4% 30.6µs ±15% ~ (p=0.841 n=5+5) _noDirectGzip-2 155µs ± 1% 158µs ± 2% ~ (p=0.095 n=5+5) _directGzip_decode-2 582µs ± 1% 587µs ± 4% ~ (p=0.310 n=5+5) _noDirectGzip_decode-2 155µs ± 1% 158µs ± 1% +1.64% (p=0.016 n=5+5) _htmlResponse-2 47.8µs ± 5% 48.1µs ± 4% ~ (p=0.841 n=5+5) _jsonBodyManual-2 34.7µs ± 3% 35.0µs ± 3% ~ (p=0.690 n=5+5) _jsonBody-2 47.4µs ± 2% 50.3µs ± 2% +6.08% (p=0.008 n=5+5) _jsonBodyValidation-2 63.4µs ± 5% 66.5µs ± 5% ~ (p=0.151 n=5+5) _outputHeaders-2 29.3µs ± 2% 29.0µs ± 3% ~ (p=0.690 n=5+5) _requestResponseMapping-2 52.1µs ± 1% 55.0µs ± 4% +5.57% (p=0.008 n=5+5) _validation-2 58.4µs ± 4% 58.7µs ± 4% ~ (p=1.000 n=5+5) _noValidation-2 41.5µs ± 5% 42.2µs ± 4% ~ (p=0.421 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 32.3µs ± 5% 32.8µs ± 3% ~ (p=0.548 n=5+5) _ok-2 32.4µs ± 1% 34.2µs ± 2% +5.67% (p=0.016 n=4+5) _invalidBody-2 46.5µs ± 2% 48.8µs ± 4% +5.08% (p=0.016 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.39 ± 6% 1.42 ± 8% ~ (p=0.690 n=5+5) _directGzipHead-2 1.36 ± 7% 1.36 ± 3% ~ (p=0.841 n=5+5) _noDirectGzip-2 7.52 ± 3% 7.33 ± 3% ~ (p=0.222 n=5+5) _directGzip_decode-2 22.4 ± 8% 22.4 ± 8% ~ (p=0.690 n=5+5) _noDirectGzip_decode-2 7.41 ± 7% 7.41 ± 3% ~ (p=0.690 n=5+5) _jsonBody-2 2.34 ± 6% 2.45 ± 4% ~ (p=0.056 n=5+5) _jsonBodyValidation-2 2.73 ± 5% 2.76 ± 4% ~ (p=0.841 n=5+5) _outputHeaders-2 1.33 ± 3% 1.27 ± 8% ~ (p=0.056 n=5+5) _requestResponseMapping-2 2.31 ± 7% 2.27 ± 9% ~ (p=0.548 n=5+5) _validation-2 2.48 ± 5% 2.56 ± 9% ~ (p=0.421 n=5+5) _noValidation-2 1.81 ± 1% 1.83 ± 6% ~ (p=0.730 n=4+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 1.41 ± 7% 1.44 ± 7% ~ (p=0.690 n=5+5) _directGzipHead-2 1.37 ± 3% 1.39 ± 6% ~ (p=0.690 n=5+5) _noDirectGzip-2 7.26 ± 6% 7.48 ± 4% ~ (p=0.222 n=5+5) _directGzip_decode-2 23.1 ± 2% 23.6 ± 6% ~ (p=0.421 n=5+5) _noDirectGzip_decode-2 7.42 ± 1% 7.47 ± 5% ~ (p=0.952 n=5+5) _htmlResponse-2 2.14 ± 8% 2.20 ± 4% ~ (p=0.421 n=5+5) _jsonBodyManual-2 1.55 ± 5% 1.65 ± 6% ~ (p=0.151 n=5+5) _jsonBody-2 2.13 ± 5% 2.28 ± 6% +6.89% (p=0.032 n=5+5) _jsonBodyValidation-2 2.77 ± 3% 2.90 ± 5% ~ (p=0.103 n=5+5) _outputHeaders-2 1.34 ± 7% 1.35 ± 7% ~ (p=1.000 n=5+5) _requestResponseMapping-2 2.22 ± 6% 2.30 ± 4% ~ (p=0.222 n=5+5) _validation-2 2.49 ± 6% 2.54 ± 6% ~ (p=0.421 n=5+5) _noValidation-2 1.83 ± 7% 1.90 ± 4% ~ (p=0.222 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 1.53 ± 6% 1.50 ± 3% ~ (p=1.000 n=5+5) _ok-2 1.55 ± 7% 1.60 ± 3% ~ (p=0.222 n=5+5) _invalidBody-2 2.05 ± 5% 2.15 ± 7% ~ (p=0.151 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.43 ± 5% 2.49 ± 7% ~ (p=0.548 n=5+5) _directGzipHead-2 2.54 ±13% 2.49 ±15% ~ (p=0.690 n=5+5) _noDirectGzip-2 13.3 ± 6% 13.4 ± 9% ~ (p=1.000 n=5+5) _directGzip_decode-2 48.4 ± 8% 48.5 ± 7% ~ (p=1.000 n=5+5) _noDirectGzip_decode-2 13.1 ± 2% 13.1 ± 5% ~ (p=0.841 n=5+5) _jsonBody-2 4.93 ± 4% 5.04 ± 4% ~ (p=0.095 n=5+5) _jsonBodyValidation-2 5.65 ± 4% 5.91 ± 5% ~ (p=0.056 n=5+5) _outputHeaders-2 2.34 ± 4% 2.25 ± 3% ~ (p=0.095 n=5+5) _requestResponseMapping-2 4.98 ± 3% 4.94 ± 5% ~ (p=0.548 n=5+5) _validation-2 5.18 ± 4% 5.31 ± 4% ~ (p=0.310 n=5+5) _noValidation-2 3.64 ± 4% 3.64 ± 7% ~ (p=0.690 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 2.45 ± 9% 2.49 ± 5% ~ (p=0.222 n=5+5) _directGzipHead-2 2.54 ± 7% 2.52 ± 8% ~ (p=1.000 n=5+5) _noDirectGzip-2 13.0 ± 4% 13.6 ± 7% ~ (p=0.095 n=5+5) _directGzip_decode-2 48.9 ± 4% 49.0 ± 9% ~ (p=0.952 n=5+5) _noDirectGzip_decode-2 13.0 ± 1% 13.5 ± 3% +4.38% (p=0.008 n=5+5) _htmlResponse-2 4.30 ±13% 4.37 ± 5% ~ (p=0.841 n=5+5) _jsonBodyManual-2 2.98 ± 9% 2.94 ± 5% ~ (p=0.548 n=5+5) _jsonBody-2 4.35 ± 3% 4.69 ± 5% +7.82% (p=0.008 n=5+5) _jsonBodyValidation-2 5.73 ± 4% 6.22 ± 4% +8.54% (p=0.008 n=5+5) _outputHeaders-2 2.41 ± 6% 2.40 ± 8% ~ (p=0.841 n=5+5) _requestResponseMapping-2 5.04 ± 5% 5.35 ± 8% ~ (p=0.151 n=5+5) _validation-2 5.56 ± 5% 5.54 ± 9% ~ (p=0.548 n=5+5) _noValidation-2 3.65 ± 8% 3.73 ± 4% ~ (p=0.310 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 2.81 ± 8% 2.82 ± 6% ~ (p=1.000 n=5+5) _ok-2 2.84 ± 3% 3.00 ± 4% +5.49% (p=0.032 n=5+5) _invalidBody-2 4.20 ± 6% 4.39 ± 4% ~ (p=0.310 n=5+5) name old 99%:ms new 99%:ms delta pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64 _directGzip-2 4.29 ± 4% 5.81 ±42% +35.24% (p=0.008 n=5+5) _directGzipHead-2 5.60 ±84% 6.45 ±111% ~ (p=0.548 n=5+5) _noDirectGzip-2 20.4 ± 7% 20.6 ± 3% ~ (p=0.548 n=5+5) _directGzip_decode-2 76.3 ±11% 77.3 ± 6% ~ (p=0.548 n=5+5) _noDirectGzip_decode-2 20.2 ± 6% 19.5 ± 8% ~ (p=0.841 n=5+5) _jsonBody-2 8.50 ±27% 7.72 ± 6% ~ (p=0.421 n=5+5) _jsonBodyValidation-2 8.99 ± 7% 9.70 ±15% ~ (p=0.421 n=5+5) _outputHeaders-2 4.65 ± 4% 4.83 ±14% ~ (p=0.548 n=5+5) _requestResponseMapping-2 8.29 ±12% 7.94 ± 7% ~ (p=0.548 n=5+5) _validation-2 8.30 ±13% 9.54 ±14% ~ (p=0.056 n=5+5) _noValidation-2 7.03 ±21% 6.69 ±11% ~ (p=0.841 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 4.19 ± 7% 4.34 ± 2% ~ (p=0.886 n=4+4) _directGzipHead-2 4.66 ±12% 4.39 ± 8% ~ (p=0.413 n=5+4) _noDirectGzip-2 20.3 ± 7% 20.6 ± 5% ~ (p=0.841 n=5+5) _directGzip_decode-2 79.2 ± 8% 79.5 ±15% ~ (p=0.548 n=5+5) _noDirectGzip_decode-2 19.8 ± 3% 20.6 ± 6% ~ (p=0.222 n=5+5) _htmlResponse-2 8.01 ±17% 7.71 ±14% ~ (p=0.690 n=5+5) _jsonBodyManual-2 5.96 ±13% 5.63 ±10% ~ (p=0.310 n=5+5) _jsonBody-2 7.18 ±15% 7.78 ± 7% ~ (p=0.095 n=5+5) _jsonBodyValidation-2 9.53 ±23% 9.15 ± 9% ~ (p=0.690 n=5+5) _outputHeaders-2 5.33 ± 9% 4.99 ± 8% ~ (p=0.095 n=5+5) _requestResponseMapping-2 7.75 ± 8% 8.49 ± 7% +9.67% (p=0.032 n=5+5) _validation-2 9.83 ±11% 8.69 ±19% ~ (p=0.151 n=5+5) _noValidation-2 7.14 ±12% 7.25 ±10% ~ (p=1.000 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 4.66 ±17% 4.63 ± 2% ~ (p=0.690 n=5+5) _ok-2 4.63 ± 4% 5.23 ±13% ~ (p=0.063 n=4+5) _invalidBody-2 8.21 ±12% 8.70 ±13% ~ (p=0.421 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 7.21 ±29% 11.93 ±25% +65.56% (p=0.008 n=5+5) _directGzipHead-2 8.94 ±81% 11.08 ±104% ~ (p=1.000 n=5+5) _noDirectGzip-2 23.1 ± 4% 23.8 ±10% ~ (p=0.413 n=4+5) _directGzip_decode-2 100 ± 7% 111 ±14% +10.43% (p=0.016 n=5+5) _noDirectGzip_decode-2 25.1 ±15% 24.7 ±29% ~ (p=0.421 n=5+5) _jsonBody-2 12.5 ±40% 12.0 ±41% ~ (p=1.000 n=5+5) _jsonBodyValidation-2 15.0 ±20% 16.1 ±25% ~ (p=0.548 n=5+5) _outputHeaders-2 8.51 ±31% 9.44 ±42% ~ (p=0.548 n=5+5) _requestResponseMapping-2 15.7 ±10% 13.5 ±19% -14.47% (p=0.032 n=5+5) _validation-2 14.0 ±34% 15.1 ±37% ~ (p=0.548 n=5+5) _noValidation-2 12.4 ±47% 11.3 ±25% ~ (p=1.000 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 7.70 ±100% 9.09 ±25% ~ (p=0.222 n=5+5) _directGzipHead-2 9.32 ±29% 10.60 ±80% ~ (p=1.000 n=5+5) _noDirectGzip-2 23.1 ± 4% 24.5 ± 5% ~ (p=0.056 n=5+5) _directGzip_decode-2 98.4 ±15% 111.2 ±20% ~ (p=0.151 n=5+5) _noDirectGzip_decode-2 22.0 ± 1% 25.4 ±17% ~ (p=0.063 n=4+5) _htmlResponse-2 12.8 ±26% 12.9 ±30% ~ (p=1.000 n=5+5) _jsonBodyManual-2 12.5 ±47% 10.7 ±37% ~ (p=0.421 n=5+5) _jsonBody-2 11.7 ±23% 12.4 ±31% ~ (p=1.000 n=5+5) _jsonBodyValidation-2 15.2 ±48% 14.3 ±30% ~ (p=1.000 n=5+5) _outputHeaders-2 10.7 ±40% 9.4 ±35% ~ (p=0.841 n=5+5) _requestResponseMapping-2 12.5 ±25% 13.1 ±13% ~ (p=0.690 n=5+5) _validation-2 14.1 ± 7% 13.8 ±63% ~ (p=0.286 n=4+5) _noValidation-2 13.2 ±34% 12.1 ±31% ~ (p=0.548 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 8.38 ±51% 8.98 ±27% ~ (p=0.548 n=5+5) _ok-2 10.0 ±79% 10.6 ±49% ~ (p=0.841 n=5+5) _invalidBody-2 13.8 ±43% 12.3 ±33% ~ (p=0.690 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 639 ± 0% 639 ± 0% ~ (all equal) _directGzipHead-2 183 ± 0% 183 ± 0% ~ (all equal) _noDirectGzip-2 1.04k ± 0% 1.04k ± 0% ~ (all equal) _directGzip_decode-2 639 ± 0% 639 ± 0% ~ (all equal) _noDirectGzip_decode-2 1.04k ± 0% 1.04k ± 0% ~ (all equal) _jsonBody-2 208 ± 0% 208 ± 0% ~ (all equal) _jsonBodyValidation-2 194 ± 0% 194 ± 0% ~ (all equal) _outputHeaders-2 155 ± 0% 155 ± 0% ~ (all equal) _requestResponseMapping-2 94.0 ± 0% 94.0 ± 0% ~ (all equal) _validation-2 177 ± 0% 177 ± 0% ~ (all equal) _noValidation-2 177 ± 0% 177 ± 0% ~ (all equal) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 653 ± 0% 653 ± 0% ~ (all equal) _directGzipHead-2 197 ± 0% 197 ± 0% ~ (all equal) _noDirectGzip-2 1.06k ± 0% 1.06k ± 0% ~ (all equal) _directGzip_decode-2 653 ± 0% 653 ± 0% ~ (all equal) _noDirectGzip_decode-2 1.06k ± 0% 1.06k ± 0% ~ (all equal) _htmlResponse-2 370 ± 0% 370 ± 0% ~ (all equal) _jsonBodyManual-2 222 ± 0% 222 ± 0% ~ (all equal) _jsonBody-2 222 ± 0% 222 ± 0% ~ (all equal) _jsonBodyValidation-2 208 ± 0% 208 ± 0% ~ (all equal) _outputHeaders-2 169 ± 0% 169 ± 0% ~ (all equal) _requestResponseMapping-2 108 ± 0% 108 ± 0% ~ (all equal) _validation-2 191 ± 0% 191 ± 0% ~ (all equal) _noValidation-2 191 ± 0% 191 ± 0% ~ (all equal) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 337 ± 0% 337 ± 0% ~ (all equal) _ok-2 359 ± 0% 359 ± 0% ~ (p=0.556 n=5+4) _invalidBody-2 435 ± 0% 435 ± 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 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/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 34.9k ± 1% 33.2k ± 8% -4.89% (p=0.008 n=5+5) _directGzipHead-2 33.5k ±13% 33.3k ±18% ~ (p=0.690 n=5+5) _noDirectGzip-2 6.49k ± 3% 6.46k ± 4% ~ (p=0.841 n=5+5) _directGzip_decode-2 1.78k ± 4% 1.77k ± 4% ~ (p=0.841 n=5+5) _noDirectGzip_decode-2 6.47k ± 1% 6.53k ± 1% ~ (p=0.310 n=5+5) _jsonBody-2 18.6k ± 2% 18.6k ± 3% ~ (p=0.841 n=5+5) _jsonBodyValidation-2 16.2k ± 2% 15.8k ± 5% ~ (p=0.421 n=5+5) _outputHeaders-2 35.6k ± 2% 36.0k ± 2% ~ (p=0.222 n=5+5) _requestResponseMapping-2 18.9k ± 2% 18.8k ± 3% ~ (p=1.000 n=5+5) _validation-2 17.8k ± 3% 17.3k ± 3% ~ (p=0.056 n=5+5) _noValidation-2 24.5k ± 4% 24.6k ± 2% ~ (p=0.548 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 33.7k ±13% 33.4k ± 3% ~ (p=0.151 n=5+5) _directGzipHead-2 33.5k ± 4% 32.8k ±14% ~ (p=0.841 n=5+5) _noDirectGzip-2 6.45k ± 1% 6.33k ± 2% ~ (p=0.095 n=5+5) _directGzip_decode-2 1.72k ± 1% 1.70k ± 4% ~ (p=0.310 n=5+5) _noDirectGzip_decode-2 6.45k ± 1% 6.34k ± 1% -1.61% (p=0.016 n=5+5) _htmlResponse-2 20.9k ± 5% 20.8k ± 4% ~ (p=0.841 n=5+5) _jsonBodyManual-2 28.9k ± 3% 28.6k ± 3% ~ (p=0.690 n=5+5) _jsonBody-2 21.1k ± 2% 19.9k ± 2% -5.74% (p=0.008 n=5+5) _jsonBodyValidation-2 15.8k ± 5% 15.0k ± 5% ~ (p=0.111 n=5+5) _outputHeaders-2 34.2k ± 2% 34.5k ± 3% ~ (p=0.690 n=5+5) _requestResponseMapping-2 19.2k ± 1% 18.2k ± 4% -5.26% (p=0.008 n=5+5) _validation-2 17.1k ± 4% 17.0k ± 4% ~ (p=1.000 n=5+5) _noValidation-2 24.1k ± 5% 23.7k ± 4% ~ (p=0.421 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 31.0k ± 5% 30.5k ± 3% ~ (p=0.548 n=5+5) _ok-2 30.9k ± 1% 29.2k ± 2% -5.36% (p=0.016 n=4+5) _invalidBody-2 21.5k ± 2% 20.5k ± 4% -4.77% (p=0.016 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.93kB ± 0% 3.93kB ± 0% ~ (p=0.333 n=5+5) _directGzipHead-2 3.93kB ± 0% 3.93kB ± 0% ~ (p=0.651 n=5+5) _noDirectGzip-2 6.93kB ±23% 6.87kB ±23% ~ (p=1.000 n=5+5) _directGzip_decode-2 403kB ± 0% 403kB ± 0% ~ (p=1.000 n=5+5) _noDirectGzip_decode-2 6.25kB ±10% 6.19kB ± 5% ~ (p=1.000 n=5+5) _jsonBody-2 13.2kB ± 0% 13.3kB ± 0% ~ (p=0.508 n=5+5) _jsonBodyValidation-2 19.0kB ± 0% 19.0kB ± 0% ~ (p=0.952 n=5+5) _outputHeaders-2 3.72kB ± 0% 3.72kB ± 0% ~ (p=0.460 n=5+5) _requestResponseMapping-2 16.7kB ± 0% 16.7kB ± 0% ~ (p=0.143 n=5+5) _validation-2 16.6kB ± 0% 16.6kB ± 0% ~ (p=1.000 n=5+5) _noValidation-2 7.89kB ± 0% 7.89kB ± 0% ~ (p=0.786 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 3.98kB ± 0% 3.98kB ± 0% +0.04% (p=0.048 n=5+5) _directGzipHead-2 3.98kB ± 0% 3.98kB ± 0% ~ (p=0.444 n=5+5) _noDirectGzip-2 7.01kB ±19% 7.29kB ±22% ~ (p=0.548 n=5+5) _directGzip_decode-2 403kB ± 0% 403kB ± 0% ~ (p=0.548 n=5+5) _noDirectGzip_decode-2 5.85kB ± 1% 5.93kB ± 6% ~ (p=0.548 n=5+5) _htmlResponse-2 8.26kB ± 0% 8.26kB ± 0% ~ (p=0.278 n=5+5) _jsonBodyManual-2 4.66kB ± 0% 4.66kB ± 0% ~ (p=0.619 n=5+5) _jsonBody-2 10.4kB ± 0% 10.4kB ± 0% ~ (p=0.246 n=5+5) _jsonBodyValidation-2 19.1kB ± 0% 19.1kB ± 0% ~ (p=0.825 n=5+5) _outputHeaders-2 3.75kB ± 0% 3.75kB ± 0% ~ (p=1.000 n=4+5) _requestResponseMapping-2 16.8kB ± 0% 16.8kB ± 0% ~ (p=0.198 n=5+5) _validation-2 16.7kB ± 0% 16.7kB ± 0% +0.03% (p=0.016 n=5+5) _noValidation-2 7.96kB ± 0% 7.96kB ± 0% ~ (p=0.143 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 4.89kB ± 0% 4.89kB ± 0% ~ (p=0.056 n=5+5) _ok-2 4.79kB ± 0% 4.79kB ± 0% ~ (p=0.257 n=4+4) _invalidBody-2 8.64kB ± 0% 8.64kB ± 0% ~ (p=0.743 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.8 ± 4% 49.8 ± 4% ~ (p=1.000 n=5+5) _directGzip_decode-2 503 ± 0% 502 ± 0% ~ (p=0.484 n=5+5) _noDirectGzip_decode-2 50.0 ± 0% 50.0 ± 0% ~ (all equal) _jsonBody-2 130 ± 0% 130 ± 0% ~ (all equal) _jsonBodyValidation-2 186 ± 0% 186 ± 0% ~ (all equal) _outputHeaders-2 37.0 ± 0% 37.0 ± 0% ~ (all equal) _requestResponseMapping-2 126 ± 0% 126 ± 0% ~ (all equal) _validation-2 155 ± 0% 155 ± 0% ~ (all equal) _noValidation-2 92.0 ± 0% 92.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.8 ± 3% 51.8 ± 3% ~ (p=1.000 n=5+5) _directGzip_decode-2 505 ± 0% 504 ± 0% ~ (p=0.254 n=5+4) _noDirectGzip_decode-2 52.0 ± 0% 52.0 ± 0% ~ (all equal) _htmlResponse-2 145 ± 0% 145 ± 0% ~ (all equal) _jsonBodyManual-2 51.0 ± 0% 51.0 ± 0% ~ (all equal) _jsonBody-2 102 ± 0% 102 ± 0% ~ (all equal) _jsonBodyValidation-2 188 ± 0% 188 ± 0% ~ (all equal) _outputHeaders-2 38.0 ± 0% 38.0 ± 0% ~ (all equal) _requestResponseMapping-2 128 ± 0% 128 ± 0% ~ (all equal) _validation-2 157 ± 0% 157 ± 0% ~ (all equal) _noValidation-2 94.0 ± 0% 94.0 ± 0% ~ (all equal) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 54.0 ± 0% 54.0 ± 0% ~ (all equal) _ok-2 50.0 ± 0% 50.0 ± 0% ~ (all equal) _invalidBody-2 99.0 ± 0% 99.0 ± 0% ~ (all equal) ```