swaggest / rest

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

Update deps #208

Closed vearutop closed 1 month ago

github-actions[bot] commented 1 month ago

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go (test) 55 6681 (+1) 5125 295 1261 (+1) 188 182.4K (+1B)
YAML 10 738 (-2) 633 (-2) 46 59 0 23.1K (-76B)
github-actions[bot] commented 1 month 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.
github-actions[bot] commented 1 month ago

Go API Changes

# summary
Inferred base version: v0.2.66
Suggested version: v0.3.0
github-actions[bot] commented 1 month 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 ± 0% ~ (p=0.788 n=5+6) pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-4 520ns ± 0% 535ns ± 3% +2.91% (p=0.004 n=5+6) DecoderFunc_Decode-4 1.53µs ± 1% 1.52µs ± 2% ~ (p=0.370 n=6+6) Decoder_Decode_json-4 18.5µs ± 1% 18.3µs ± 1% -1.27% (p=0.004 n=6+6) Decoder_Decode_queryObject-4 4.04µs ± 0% 4.00µs ± 1% -0.76% (p=0.011 n=6+6) Decoder_Decode_jsonParam-4 1.50µs ± 0% 1.50µs ± 0% -0.20% (p=0.017 n=6+5) DecoderFactory_SetDecoderFunc-4 1.33µs ± 0% 1.32µs ± 1% ~ (p=0.058 n=6+6) pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-4 8.41µs ± 0% 8.37µs ± 0% ~ (p=0.052 n=6+5) Middleware_control-4 2.99µs ± 1% 2.74µs ± 1% -8.50% (p=0.004 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.53kB ± 0% 1.53kB ± 0% ~ (all equal) Decoder_Decode_json-4 12.4kB ± 0% 12.4kB ± 0% ~ (all equal) Decoder_Decode_queryObject-4 2.01kB ± 0% 2.01kB ± 0% ~ (all equal) Decoder_Decode_jsonParam-4 736B ± 0% 736B ± 0% ~ (all equal) DecoderFactory_SetDecoderFunc-4 1.02kB ± 0% 1.02kB ± 0% ~ (all equal) pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-4 1.18kB ± 4% 1.19kB ± 4% ~ (p=0.894 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 38.0 ± 0% 38.0 ± 0% ~ (all equal) Decoder_Decode_jsonParam-4 12.0 ± 0% 12.0 ± 0% ~ (all equal) DecoderFactory_SetDecoderFunc-4 16.0 ± 0% 16.0 ± 0% ~ (all equal) pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-4 11.0 ± 0% 11.0 ± 0% ~ (all equal) Middleware_control-4 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 ± 0% pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-4 535ns ± 3% DecoderFunc_Decode-4 1.52µs ± 2% Decoder_Decode_json-4 18.3µs ± 1% Decoder_Decode_queryObject-4 4.00µs ± 1% Decoder_Decode_jsonParam-4 1.50µs ± 0% DecoderFactory_SetDecoderFunc-4 1.32µs ± 1% pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-4 8.37µs ± 0% Middleware_control-4 2.74µ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.53kB ± 0% Decoder_Decode_json-4 12.4kB ± 0% Decoder_Decode_queryObject-4 2.01kB ± 0% Decoder_Decode_jsonParam-4 736B ± 0% DecoderFactory_SetDecoderFunc-4 1.02kB ± 0% pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-4 1.19kB ± 4% 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 38.0 ± 0% Decoder_Decode_jsonParam-4 12.0 ± 0% DecoderFactory_SetDecoderFunc-4 16.0 ± 0% pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-4 11.0 ± 0% Middleware_control-4 9.00 ± 0% ```
github-actions[bot] commented 1 month 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 17.4µs ± 8% 17.0µs ± 1% ~ (p=0.421 n=5+5) _directGzipHead-4 16.7µs ± 2% 17.0µs ± 2% ~ (p=0.151 n=5+5) _noDirectGzip-4 106µs ± 1% 108µs ± 4% ~ (p=0.421 n=5+5) _directGzip_decode-4 325µs ± 1% 334µs ± 1% +2.80% (p=0.008 n=5+5) _noDirectGzip_decode-4 107µs ± 1% 107µs ± 0% ~ (p=0.310 n=5+5) _jsonBody-4 36.6µs ± 1% 36.7µs ± 1% ~ (p=0.841 n=5+5) _jsonBodyValidation-4 41.4µs ± 1% 40.7µs ± 4% ~ (p=0.095 n=5+5) _outputHeaders-4 16.9µs ± 1% 17.2µs ± 2% +2.22% (p=0.008 n=5+5) _requestResponseMapping-4 34.8µs ± 2% 35.2µs ± 1% ~ (p=0.151 n=5+5) _validation-4 37.6µs ± 1% 37.8µs ± 2% ~ (p=0.548 n=5+5) _noValidation-4 26.7µs ± 1% 26.8µs ± 2% ~ (p=0.548 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64 _directGzip-4 17.5µs ± 9% 17.7µs ±10% ~ (p=0.421 n=5+5) _directGzipHead-4 16.9µs ± 2% 17.2µs ± 1% ~ (p=0.421 n=5+5) _noDirectGzip-4 107µs ± 0% 108µs ± 2% ~ (p=0.151 n=5+5) _directGzip_decode-4 327µs ± 2% 327µs ± 2% ~ (p=0.421 n=5+5) _noDirectGzip_decode-4 107µs ± 0% 107µs ± 1% ~ (p=0.310 n=5+5) _htmlResponse-4 31.0µs ± 5% 30.7µs ± 1% ~ (p=0.841 n=5+5) _jsonBodyManual-4 21.8µs ± 2% 21.4µs ± 1% -1.53% (p=0.032 n=5+5) _jsonBody-4 33.2µs ± 1% 32.7µs ± 1% -1.58% (p=0.008 n=5+5) _jsonBodyValidation-4 42.0µs ± 2% 41.4µs ± 1% ~ (p=0.095 n=5+5) _outputHeaders-4 30.1µs ± 2% 30.2µs ± 2% ~ (p=1.000 n=5+5) _requestResponseMapping-4 35.3µs ± 1% 34.6µs ± 1% -1.96% (p=0.016 n=5+4) _validation-4 38.3µs ± 2% 37.1µs ± 3% -3.12% (p=0.008 n=5+5) _noValidation-4 27.4µs ± 1% 27.0µs ± 2% ~ (p=0.095 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-4 20.7µs ±10% 19.6µs ± 1% ~ (p=0.190 n=5+4) _ok-4 20.3µs ± 2% 19.8µs ± 1% -2.45% (p=0.008 n=5+5) _invalidBody-4 29.2µs ± 5% 29.1µs ± 5% ~ (p=0.690 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.76 ± 7% 0.75 ± 7% ~ (p=0.548 n=5+5) _directGzipHead-4 0.71 ± 7% 0.74 ± 5% ~ (p=0.421 n=5+5) _noDirectGzip-4 4.90 ± 2% 4.88 ± 6% ~ (p=0.841 n=5+5) _directGzip_decode-4 10.4 ±14% 11.0 ± 8% ~ (p=0.310 n=5+5) _noDirectGzip_decode-4 4.87 ± 5% 4.97 ± 6% ~ (p=0.310 n=5+5) _jsonBody-4 1.50 ± 4% 1.55 ± 9% ~ (p=0.548 n=5+5) _jsonBodyValidation-4 1.71 ± 9% 1.75 ± 3% ~ (p=0.310 n=5+5) _outputHeaders-4 0.71 ± 4% 0.73 ± 5% ~ (p=0.548 n=5+5) _requestResponseMapping-4 1.41 ± 4% 1.41 ± 7% ~ (p=1.000 n=5+5) _validation-4 1.61 ± 7% 1.54 ± 5% ~ (p=0.421 n=5+5) _noValidation-4 1.11 ± 5% 1.14 ± 7% ~ (p=0.310 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64 _directGzip-4 0.75 ± 6% 0.73 ± 4% ~ (p=0.421 n=5+5) _directGzipHead-4 0.72 ± 2% 0.72 ± 2% ~ (p=0.222 n=5+5) _noDirectGzip-4 4.90 ± 1% 4.92 ± 4% ~ (p=1.000 n=5+5) _directGzip_decode-4 11.1 ± 9% 11.0 ± 4% ~ (p=0.794 n=5+5) _noDirectGzip_decode-4 4.90 ± 4% 4.95 ± 6% ~ (p=1.000 n=5+5) _htmlResponse-4 1.31 ± 4% 1.33 ± 4% ~ (p=0.310 n=5+5) _jsonBodyManual-4 0.96 ± 7% 0.92 ± 2% ~ (p=0.222 n=5+5) _jsonBody-4 1.37 ± 3% 1.34 ± 2% ~ (p=0.151 n=5+5) _jsonBodyValidation-4 1.70 ± 7% 1.73 ± 5% ~ (p=0.548 n=5+5) _outputHeaders-4 1.22 ± 4% 1.24 ± 5% ~ (p=0.548 n=5+5) _requestResponseMapping-4 1.43 ± 8% 1.43 ± 6% ~ (p=0.952 n=5+5) _validation-4 1.61 ± 4% 1.51 ± 3% -6.44% (p=0.016 n=5+5) _noValidation-4 1.13 ± 6% 1.12 ± 6% ~ (p=0.548 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-4 0.87 ± 4% 0.88 ±11% ~ (p=1.000 n=5+5) _ok-4 0.89 ± 3% 0.88 ± 3% ~ (p=0.310 n=5+5) _invalidBody-4 1.18 ± 5% 1.21 ± 2% ~ (p=0.310 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.60 ±10% 1.54 ± 4% ~ (p=0.310 n=5+5) _directGzipHead-4 1.53 ± 9% 1.57 ± 9% ~ (p=0.548 n=5+5) _noDirectGzip-4 10.1 ± 5% 10.2 ± 8% ~ (p=0.841 n=5+5) _directGzip_decode-4 31.4 ± 3% 33.0 ± 8% ~ (p=0.151 n=5+5) _noDirectGzip_decode-4 9.89 ± 3% 10.17 ± 6% ~ (p=0.548 n=5+5) _jsonBody-4 3.32 ± 5% 3.32 ± 3% ~ (p=0.690 n=5+5) _jsonBodyValidation-4 3.70 ± 7% 3.62 ± 7% ~ (p=0.421 n=5+5) _outputHeaders-4 1.53 ± 4% 1.61 ± 3% +5.19% (p=0.016 n=5+5) _requestResponseMapping-4 3.16 ± 4% 3.16 ± 1% ~ (p=0.421 n=5+5) _validation-4 3.39 ± 4% 3.39 ± 2% ~ (p=0.841 n=5+5) _noValidation-4 2.55 ± 3% 2.54 ± 6% ~ (p=0.841 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64 _directGzip-4 1.58 ±11% 1.60 ±11% ~ (p=0.690 n=5+5) _directGzipHead-4 1.53 ± 9% 1.57 ± 7% ~ (p=0.310 n=5+5) _noDirectGzip-4 10.4 ± 3% 10.1 ± 3% ~ (p=0.151 n=5+5) _directGzip_decode-4 32.8 ± 7% 30.8 ± 3% ~ (p=0.095 n=5+5) _noDirectGzip_decode-4 10.1 ± 4% 10.2 ± 5% ~ (p=0.690 n=5+5) _htmlResponse-4 2.86 ± 7% 2.84 ± 7% ~ (p=1.000 n=5+5) _jsonBodyManual-4 1.99 ± 3% 1.98 ± 6% ~ (p=1.000 n=5+5) _jsonBody-4 3.20 ± 6% 3.01 ± 4% -5.83% (p=0.016 n=5+5) _jsonBodyValidation-4 3.82 ± 3% 3.66 ± 2% -3.99% (p=0.008 n=5+5) _outputHeaders-4 2.88 ± 6% 2.83 ± 2% ~ (p=0.690 n=5+5) _requestResponseMapping-4 3.24 ± 4% 3.20 ± 4% ~ (p=0.548 n=5+5) _validation-4 3.55 ± 5% 3.36 ± 4% -5.38% (p=0.032 n=5+5) _noValidation-4 2.63 ± 7% 2.55 ± 4% ~ (p=0.198 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-4 1.87 ± 8% 1.81 ± 5% ~ (p=0.421 n=5+5) _ok-4 1.85 ± 5% 1.83 ± 4% ~ (p=0.690 n=5+5) _invalidBody-4 2.84 ± 9% 2.75 ± 9% ~ (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-4 2.94 ±47% 2.58 ± 9% ~ (p=0.841 n=5+5) _directGzipHead-4 2.59 ± 4% 2.74 ±12% ~ (p=0.310 n=5+5) _noDirectGzip-4 15.8 ± 7% 16.3 ±14% ~ (p=0.690 n=5+5) _directGzip_decode-4 61.2 ± 7% 60.0 ±11% ~ (p=0.690 n=5+5) _noDirectGzip_decode-4 15.5 ± 4% 15.2 ± 1% ~ (p=0.389 n=5+5) _jsonBody-4 5.19 ± 7% 5.15 ± 2% ~ (p=0.310 n=5+5) _jsonBodyValidation-4 6.21 ± 5% 5.86 ± 9% ~ (p=0.151 n=5+5) _outputHeaders-4 2.61 ± 3% 2.59 ± 8% ~ (p=0.690 n=5+5) _requestResponseMapping-4 4.94 ±10% 5.15 ± 7% ~ (p=0.151 n=5+5) _validation-4 5.38 ± 3% 5.31 ± 7% ~ (p=1.000 n=5+5) _noValidation-4 4.19 ± 5% 4.17 ± 6% ~ (p=1.000 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64 _directGzip-4 2.61 ± 3% 3.09 ±49% ~ (p=0.413 n=4+5) _directGzipHead-4 2.60 ± 7% 2.77 ± 4% ~ (p=0.151 n=5+5) _noDirectGzip-4 15.7 ± 4% 15.7 ± 7% ~ (p=1.000 n=5+5) _directGzip_decode-4 60.7 ± 9% 57.2 ± 5% ~ (p=0.095 n=5+5) _noDirectGzip_decode-4 16.0 ± 3% 16.1 ± 7% ~ (p=0.690 n=5+5) _htmlResponse-4 4.63 ±11% 4.55 ± 4% ~ (p=1.000 n=5+5) _jsonBodyManual-4 3.22 ± 6% 3.23 ± 5% ~ (p=1.000 n=5+5) _jsonBody-4 4.94 ± 3% 4.91 ± 3% ~ (p=0.421 n=5+5) _jsonBodyValidation-4 6.00 ± 8% 5.90 ± 4% ~ (p=0.690 n=5+5) _outputHeaders-4 4.47 ± 3% 4.49 ± 3% ~ (p=0.548 n=5+5) _requestResponseMapping-4 4.93 ± 2% 5.18 ±21% ~ (p=1.000 n=5+5) _validation-4 5.36 ± 4% 5.34 ± 4% ~ (p=0.841 n=5+5) _noValidation-4 4.21 ± 2% 4.20 ± 8% ~ (p=1.000 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-4 3.51 ±49% 2.74 ± 2% -22.02% (p=0.016 n=5+4) _ok-4 3.09 ±11% 2.95 ± 5% ~ (p=0.548 n=5+5) _invalidBody-4 4.97 ± 6% 4.86 ± 6% ~ (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-4 4.18 ± 8% 4.06 ±12% ~ (p=0.730 n=4+5) _directGzipHead-4 4.22 ±20% 4.40 ±14% ~ (p=0.548 n=5+5) _noDirectGzip-4 22.8 ±20% 23.3 ±10% ~ (p=0.841 n=5+5) _directGzip_decode-4 86.0 ±27% 82.2 ±18% ~ (p=0.841 n=5+5) _noDirectGzip_decode-4 19.3 ± 4% 20.1 ± 5% ~ (p=0.222 n=5+5) _jsonBody-4 7.53 ± 9% 7.79 ±12% ~ (p=0.548 n=5+5) _jsonBodyValidation-4 8.95 ±14% 8.25 ±10% ~ (p=0.310 n=5+5) _outputHeaders-4 4.30 ± 6% 4.19 ± 9% ~ (p=0.690 n=5+5) _requestResponseMapping-4 7.38 ± 2% 7.50 ± 6% ~ (p=0.421 n=5+5) _validation-4 7.77 ±11% 7.77 ± 9% ~ (p=0.841 n=5+5) _noValidation-4 6.05 ± 7% 5.77 ±18% ~ (p=0.310 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64 _directGzip-4 4.80 ±47% 4.86 ±47% ~ (p=0.802 n=5+5) _directGzipHead-4 4.48 ± 9% 4.53 ± 8% ~ (p=0.548 n=5+5) _noDirectGzip-4 21.5 ±16% 21.9 ±24% ~ (p=1.000 n=5+5) _directGzip_decode-4 84.3 ±16% 78.6 ±11% ~ (p=0.421 n=5+5) _noDirectGzip_decode-4 23.0 ±12% 22.0 ±22% ~ (p=0.690 n=5+5) _htmlResponse-4 7.07 ±28% 6.50 ±12% ~ (p=0.421 n=5+5) _jsonBodyManual-4 4.66 ± 2% 4.56 ±12% ~ (p=0.151 n=5+5) _jsonBody-4 6.82 ± 7% 7.23 ±17% ~ (p=0.548 n=5+5) _jsonBodyValidation-4 8.49 ±17% 8.36 ± 5% ~ (p=0.841 n=5+5) _outputHeaders-4 6.18 ± 6% 6.25 ± 6% ~ (p=1.000 n=5+5) _requestResponseMapping-4 6.80 ± 7% 6.96 ± 5% ~ (p=0.413 n=5+4) _validation-4 7.75 ± 5% 7.79 ±15% ~ (p=0.841 n=5+5) _noValidation-4 5.98 ±14% 5.83 ± 6% ~ (p=0.690 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-4 5.39 ±67% 3.80 ± 6% ~ (p=0.286 n=5+4) _ok-4 4.61 ±18% 4.58 ± 6% ~ (p=0.548 n=5+5) _invalidBody-4 6.83 ± 8% 6.95 ±12% ~ (p=1.000 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 57.5k ± 8% 58.9k ± 1% ~ (p=0.421 n=5+5) _directGzipHead-4 59.8k ± 2% 58.9k ± 2% ~ (p=0.151 n=5+5) _noDirectGzip-4 9.39k ± 1% 9.29k ± 4% ~ (p=0.421 n=5+5) _directGzip_decode-4 3.08k ± 1% 2.99k ± 1% -2.74% (p=0.008 n=5+5) _noDirectGzip_decode-4 9.39k ± 1% 9.35k ± 0% ~ (p=0.310 n=5+5) _jsonBody-4 27.3k ± 1% 27.3k ± 1% ~ (p=0.841 n=5+5) _jsonBodyValidation-4 24.1k ± 1% 24.6k ± 4% ~ (p=0.095 n=5+5) _outputHeaders-4 59.3k ± 1% 58.0k ± 2% -2.16% (p=0.008 n=5+5) _requestResponseMapping-4 28.7k ± 2% 28.4k ± 1% ~ (p=0.151 n=5+5) _validation-4 26.6k ± 1% 26.5k ± 2% ~ (p=0.548 n=5+5) _noValidation-4 37.5k ± 1% 37.3k ± 2% ~ (p=0.548 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64 _directGzip-4 57.4k ± 8% 56.7k ± 9% ~ (p=0.421 n=5+5) _directGzipHead-4 59.1k ± 2% 58.1k ± 1% ~ (p=0.421 n=5+5) _noDirectGzip-4 9.38k ± 0% 9.29k ± 2% ~ (p=0.151 n=5+5) _directGzip_decode-4 3.05k ± 2% 3.06k ± 2% ~ (p=0.421 n=5+5) _noDirectGzip_decode-4 9.34k ± 0% 9.30k ± 1% ~ (p=0.246 n=5+5) _htmlResponse-4 32.3k ± 5% 32.5k ± 1% ~ (p=0.841 n=5+5) _jsonBodyManual-4 46.0k ± 2% 46.7k ± 1% +1.54% (p=0.032 n=5+5) _jsonBody-4 30.1k ± 1% 30.6k ± 1% +1.60% (p=0.008 n=5+5) _jsonBodyValidation-4 23.8k ± 2% 24.2k ± 1% ~ (p=0.095 n=5+5) _outputHeaders-4 33.2k ± 2% 33.1k ± 2% ~ (p=1.000 n=5+5) _requestResponseMapping-4 28.4k ± 1% 28.5k ± 6% ~ (p=0.151 n=5+5) _validation-4 26.1k ± 2% 26.9k ± 3% +3.23% (p=0.008 n=5+5) _noValidation-4 36.5k ± 1% 37.1k ± 2% ~ (p=0.095 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-4 48.6k ±10% 50.9k ± 1% ~ (p=0.190 n=5+4) _ok-4 49.2k ± 2% 50.5k ± 1% +2.50% (p=0.008 n=5+5) _invalidBody-4 34.3k ± 4% 34.4k ± 5% ~ (p=0.690 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.99kB ± 0% 3.99kB ± 0% ~ (p=0.476 n=5+5) _directGzipHead-4 3.99kB ± 0% 3.99kB ± 0% ~ (p=0.635 n=5+5) _noDirectGzip-4 7.61kB ± 8% 7.04kB ± 9% ~ (p=0.167 n=5+5) _directGzip_decode-4 398kB ± 0% 399kB ± 0% ~ (p=0.222 n=5+5) _noDirectGzip_decode-4 7.06kB ±10% 6.31kB ± 7% ~ (p=0.056 n=5+5) _jsonBody-4 13.7kB ± 0% 13.7kB ± 0% ~ (p=0.063 n=5+5) _jsonBodyValidation-4 19.5kB ± 0% 19.5kB ± 0% ~ (p=0.087 n=5+5) _outputHeaders-4 3.71kB ± 0% 3.71kB ± 0% ~ (p=1.000 n=5+5) _requestResponseMapping-4 16.8kB ± 0% 16.8kB ± 0% ~ (p=0.230 n=5+5) _validation-4 16.7kB ± 0% 16.7kB ± 0% ~ (p=1.000 n=5+5) _noValidation-4 7.92kB ± 0% 7.92kB ± 0% ~ (p=0.246 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic-openapi31 goos:linux goarch:amd64 _directGzip-4 4.01kB ± 0% 4.01kB ± 0% ~ (p=0.643 n=5+5) _directGzipHead-4 4.00kB ± 0% 4.00kB ± 0% ~ (p=0.571 n=5+5) _noDirectGzip-4 7.78kB ±17% 7.72kB ±17% ~ (p=1.000 n=5+5) _directGzip_decode-4 398kB ± 0% 399kB ± 0% ~ (p=0.095 n=5+5) _noDirectGzip_decode-4 6.74kB ± 5% 7.20kB ±14% ~ (p=0.548 n=5+5) _htmlResponse-4 8.54kB ± 0% 8.54kB ± 0% ~ (p=0.167 n=5+5) _jsonBodyManual-4 4.96kB ± 0% 4.96kB ± 0% ~ (p=0.889 n=5+5) _jsonBody-4 10.7kB ± 0% 10.7kB ± 0% ~ (p=0.571 n=5+4) _jsonBodyValidation-4 19.6kB ± 0% 19.6kB ± 0% ~ (p=0.984 n=5+5) _outputHeaders-4 10.5kB ± 0% 10.5kB ± 0% ~ (p=0.802 n=5+5) _requestResponseMapping-4 16.8kB ± 0% 16.8kB ± 0% ~ (p=0.175 n=5+5) _validation-4 16.7kB ± 0% 16.7kB ± 0% ~ (p=0.730 n=5+4) _noValidation-4 7.96kB ± 0% 7.96kB ± 0% ~ (p=0.222 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-4 5.22kB ± 0% 5.22kB ± 0% ~ (p=0.556 n=5+5) _ok-4 5.13kB ± 0% 5.13kB ± 0% ~ (p=0.400 n=4+4) _invalidBody-4 8.81kB ± 0% 8.81kB ± 0% ~ (p=1.000 n=4+4) name old allocs/op new allocs/op delta pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64 _directGzip-4 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 486 ± 0% 486 ± 0% ~ (p=1.000 n=5+5) _noDirectGzip_decode-4 50.0 ± 0% 50.0 ± 0% ~ (all equal) _jsonBody-4 130 ± 0% 130 ± 0% ~ (all equal) _jsonBodyValidation-4 187 ± 0% 187 ± 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 487 ± 0% 488 ± 0% ~ (p=0.079 n=5+4) _noDirectGzip_decode-4 51.0 ± 0% 51.0 ± 0% ~ (all equal) _htmlResponse-4 146 ± 0% 146 ± 0% ~ (all equal) _jsonBodyManual-4 49.0 ± 0% 49.0 ± 0% ~ (all equal) _jsonBody-4 100 ± 0% 100 ± 0% ~ (all equal) _jsonBodyValidation-4 188 ± 0% 188 ± 0% ~ (all equal) _outputHeaders-4 112 ± 0% 112 ± 0% ~ (all equal) _requestResponseMapping-4 125 ± 0% 125 ± 0% ~ (all equal) _validation-4 156 ± 0% 156 ± 0% ~ (p=0.333 n=4+5) _noValidation-4 92.0 ± 0% 92.0 ± 0% ~ (all equal) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-4 54.0 ± 0% 54.0 ± 0% ~ (all equal) _ok-4 50.0 ± 0% 50.0 ± 0% ~ (all equal) _invalidBody-4 97.0 ± 0% 97.0 ± 0% ~ (all equal) ```