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 linter #157

Closed vearutop closed 1 year ago

github-actions[bot] commented 1 year ago

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Makefile 3 127 92 (+1) 11 (-1) 24 11 4K (-1B)
github-actions[bot] commented 1 year ago

Go API Changes

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

Unit Test Coverage

total: (statements) 83.5%

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.39µs ±12% 1.35µs ± 1% ~ (p=0.831 n=6+5) pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 661ns ± 0% 661ns ± 0% ~ (p=0.690 n=5+5) DecoderFunc_Decode-2 1.95µs ± 2% 1.95µs ± 2% ~ (p=0.959 n=6+6) Decoder_Decode_json-2 22.7µs ± 0% 22.8µs ± 1% ~ (p=0.818 n=6+6) Decoder_Decode_queryObject-2 5.15µs ± 0% 5.15µs ± 1% ~ (p=0.937 n=6+6) Decoder_Decode_jsonParam-2 2.09µs ± 0% 2.08µs ± 0% -0.30% (p=0.026 n=6+5) DecoderFactory_SetDecoderFunc-2 1.68µs ± 1% 1.67µs ± 1% ~ (p=0.247 n=6+6) pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 11.5µs ± 1% 11.5µs ± 1% ~ (p=0.784 n=6+6) Middleware_control-2 3.30µs ± 1% 3.27µs ± 1% -1.08% (p=0.048 n=5+6) name old alloc/op new alloc/op delta pkg:github.com/swaggest/rest/jsonschema goos:linux goarch:amd64 RequestValidator_ValidateRequestData-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.14kB ± 3% ~ (p=0.790 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.35µs ± 1% pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 661ns ± 0% DecoderFunc_Decode-2 1.95µs ± 2% Decoder_Decode_json-2 22.8µs ± 1% Decoder_Decode_queryObject-2 5.15µs ± 1% Decoder_Decode_jsonParam-2 2.08µs ± 0% DecoderFactory_SetDecoderFunc-2 1.67µs ± 1% pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 11.5µs ± 1% Middleware_control-2 3.27µs ± 1% 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.14kB ± 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 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 34.4µs ± 1% 35.3µs ± 1% +2.57% (p=0.029 n=4+4) _directGzipHead-2 34.5µs ± 1% 34.4µs ± 2% ~ (p=1.000 n=5+5) _noDirectGzip-2 155µs ± 2% 159µs ± 2% ~ (p=0.056 n=5+5) _directGzip_decode-2 548µs ± 5% 556µs ± 3% ~ (p=0.841 n=5+5) _noDirectGzip_decode-2 160µs ± 2% 160µs ± 2% ~ (p=1.000 n=5+5) _jsonBody-2 67.2µs ± 2% 68.5µs ± 1% ~ (p=0.056 n=5+5) _jsonBodyValidation-2 75.6µs ± 2% 78.3µs ± 3% +3.53% (p=0.016 n=5+5) _outputHeaders-2 35.9µs ± 2% 36.2µs ± 3% ~ (p=0.690 n=5+5) _requestResponseMapping-2 67.6µs ± 3% 68.9µs ± 6% ~ (p=0.310 n=5+5) _validation-2 74.2µs ± 6% 73.7µs ± 2% ~ (p=0.841 n=5+5) _noValidation-2 54.5µs ± 1% 54.2µs ± 2% ~ (p=0.690 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 38.3µs ±14% 36.5µs ± 2% ~ (p=0.730 n=5+4) _directGzipHead-2 36.4µs ± 2% 36.9µs ± 6% ~ (p=1.000 n=5+5) _noDirectGzip-2 160µs ± 4% 158µs ± 2% ~ (p=0.690 n=5+5) _directGzip_decode-2 546µs ± 3% 557µs ± 2% ~ (p=0.222 n=5+5) _noDirectGzip_decode-2 160µs ± 3% 164µs ± 6% ~ (p=0.095 n=5+5) _htmlResponse-2 60.2µs ± 3% 60.5µs ± 4% ~ (p=0.841 n=5+5) _jsonBodyManual-2 44.6µs ± 2% 45.0µs ± 3% ~ (p=0.548 n=5+5) _jsonBody-2 65.0µs ± 2% 65.3µs ± 1% ~ (p=0.841 n=5+5) _jsonBodyValidation-2 80.4µs ± 2% 81.7µs ± 2% ~ (p=0.222 n=5+5) _outputHeaders-2 58.9µs ± 2% 59.4µs ± 2% ~ (p=0.310 n=5+5) _requestResponseMapping-2 69.1µs ± 2% 71.4µs ± 4% ~ (p=0.310 n=5+5) _validation-2 75.4µs ± 4% 73.6µs ± 2% ~ (p=0.222 n=5+5) _noValidation-2 54.3µs ± 1% 56.7µs ± 4% +4.45% (p=0.008 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 38.3µs ± 1% 38.9µs ± 6% ~ (p=1.000 n=4+5) _ok-2 38.4µs ± 1% 40.2µs ±15% ~ (p=0.841 n=5+5) _invalidBody-2 56.4µs ± 5% 56.9µs ± 1% ~ (p=0.310 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.73 ±12% 1.77 ± 7% ~ (p=0.421 n=5+5) _directGzipHead-2 1.66 ± 5% 1.67 ± 5% ~ (p=0.690 n=5+5) _noDirectGzip-2 7.51 ± 4% 7.63 ± 5% ~ (p=0.548 n=5+5) _directGzip_decode-2 20.5 ±12% 20.8 ± 9% ~ (p=1.000 n=5+5) _noDirectGzip_decode-2 7.63 ± 8% 7.65 ± 5% ~ (p=0.690 n=5+5) _jsonBody-2 3.13 ± 8% 3.17 ± 3% ~ (p=0.690 n=5+5) _jsonBodyValidation-2 3.57 ± 5% 3.66 ± 6% ~ (p=0.310 n=5+5) _outputHeaders-2 1.71 ± 4% 1.74 ± 7% ~ (p=0.841 n=5+5) _requestResponseMapping-2 3.06 ± 9% 3.11 ± 3% ~ (p=0.421 n=5+5) _validation-2 3.43 ± 8% 3.38 ± 5% ~ (p=0.841 n=5+5) _noValidation-2 2.47 ± 5% 2.46 ± 4% ~ (p=1.000 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 1.77 ± 4% 1.75 ± 5% ~ (p=0.421 n=5+5) _directGzipHead-2 1.75 ± 5% 1.74 ± 4% ~ (p=1.000 n=5+5) _noDirectGzip-2 7.53 ± 4% 7.69 ± 7% ~ (p=0.222 n=5+5) _directGzip_decode-2 20.7 ± 6% 21.6 ± 3% +4.38% (p=0.016 n=5+5) _noDirectGzip_decode-2 7.71 ± 6% 7.91 ± 7% ~ (p=0.548 n=5+5) _htmlResponse-2 2.75 ± 7% 2.85 ± 6% ~ (p=0.079 n=5+5) _jsonBodyManual-2 2.10 ± 5% 2.14 ± 5% ~ (p=0.548 n=5+5) _jsonBody-2 3.04 ± 5% 3.05 ± 6% ~ (p=1.000 n=5+5) _jsonBodyValidation-2 3.62 ± 7% 3.81 ± 6% ~ (p=0.151 n=5+5) _outputHeaders-2 2.78 ± 6% 2.71 ± 4% ~ (p=0.389 n=5+5) _requestResponseMapping-2 3.04 ± 6% 3.12 ± 5% ~ (p=0.167 n=5+5) _validation-2 3.45 ± 7% 3.42 ± 4% ~ (p=1.000 n=5+5) _noValidation-2 2.55 ± 7% 2.62 ± 7% ~ (p=0.548 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 1.88 ± 2% 1.88 ± 4% ~ (p=1.000 n=5+5) _ok-2 1.82 ± 3% 1.92 ± 7% ~ (p=0.222 n=5+5) _invalidBody-2 2.53 ± 5% 2.56 ±10% ~ (p=1.000 n=5+5) name old 90%:ms new 90%:ms delta pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64 _directGzip-2 3.08 ±15% 3.06 ±13% ~ (p=0.690 n=5+5) _directGzipHead-2 2.93 ± 4% 2.85 ± 3% ~ (p=0.151 n=5+5) _noDirectGzip-2 13.4 ± 2% 13.6 ± 6% ~ (p=0.690 n=5+5) _directGzip_decode-2 46.3 ±11% 47.3 ± 6% ~ (p=1.000 n=5+5) _noDirectGzip_decode-2 14.2 ± 2% 13.8 ± 2% ~ (p=0.056 n=5+5) _jsonBody-2 5.86 ± 6% 6.00 ± 6% ~ (p=0.421 n=5+5) _jsonBodyValidation-2 6.36 ± 4% 6.72 ± 1% +5.56% (p=0.008 n=5+5) _outputHeaders-2 3.07 ± 3% 3.02 ± 3% ~ (p=0.310 n=5+5) _requestResponseMapping-2 5.85 ± 5% 5.97 ± 3% ~ (p=0.548 n=5+5) _validation-2 6.41 ± 5% 6.36 ± 3% ~ (p=0.841 n=5+5) _noValidation-2 4.65 ± 4% 4.70 ± 5% ~ (p=0.690 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 3.19 ± 8% 3.15 ±10% ~ (p=0.690 n=5+5) _directGzipHead-2 3.06 ± 4% 3.08 ± 4% ~ (p=0.690 n=5+5) _noDirectGzip-2 13.6 ± 6% 13.8 ± 3% ~ (p=0.421 n=5+5) _directGzip_decode-2 46.5 ± 8% 46.2 ± 9% ~ (p=0.841 n=5+5) _noDirectGzip_decode-2 13.8 ± 5% 14.3 ± 9% ~ (p=0.421 n=5+5) _htmlResponse-2 5.19 ± 3% 5.31 ± 9% ~ (p=0.421 n=5+5) _jsonBodyManual-2 3.74 ± 5% 3.82 ± 5% ~ (p=0.310 n=5+5) _jsonBody-2 5.48 ± 3% 5.55 ± 3% ~ (p=0.548 n=5+5) _jsonBodyValidation-2 6.97 ± 4% 6.98 ± 4% ~ (p=0.841 n=5+5) _outputHeaders-2 5.22 ± 4% 5.30 ± 5% ~ (p=0.841 n=5+5) _requestResponseMapping-2 6.03 ± 6% 6.36 ± 7% ~ (p=0.151 n=5+5) _validation-2 6.56 ± 4% 6.45 ± 2% ~ (p=0.246 n=5+5) _noValidation-2 4.80 ± 4% 4.93 ± 5% ~ (p=0.286 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 3.24 ±14% 3.26 ± 6% ~ (p=0.690 n=5+5) _ok-2 3.25 ± 5% 3.34 ±14% ~ (p=0.548 n=5+5) _invalidBody-2 4.92 ± 4% 4.98 ± 8% ~ (p=0.841 n=5+5) name old 99%:ms new 99%:ms delta pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64 _directGzip-2 5.93 ±67% 5.01 ± 7% ~ (p=0.730 n=5+4) _directGzipHead-2 4.84 ± 6% 4.61 ± 9% ~ (p=0.151 n=5+5) _noDirectGzip-2 19.8 ± 4% 20.9 ± 6% ~ (p=0.056 n=5+5) _directGzip_decode-2 72.7 ±11% 81.5 ±10% ~ (p=0.056 n=5+5) _noDirectGzip_decode-2 21.1 ± 6% 20.8 ± 6% ~ (p=0.690 n=5+5) _jsonBody-2 9.00 ± 6% 9.40 ±12% ~ (p=0.421 n=5+5) _jsonBodyValidation-2 9.55 ± 7% 10.30 ± 8% ~ (p=0.151 n=5+5) _outputHeaders-2 5.45 ±21% 4.93 ± 8% ~ (p=0.222 n=5+5) _requestResponseMapping-2 10.5 ±14% 10.6 ±20% ~ (p=1.000 n=5+5) _validation-2 11.1 ±20% 10.4 ±10% ~ (p=0.421 n=5+5) _noValidation-2 9.17 ±28% 8.46 ± 8% ~ (p=0.421 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 7.57 ±89% 4.94 ± 8% ~ (p=0.286 n=5+4) _directGzipHead-2 5.40 ±11% 5.27 ±26% ~ (p=0.310 n=5+5) _noDirectGzip-2 20.9 ±11% 20.4 ± 3% ~ (p=1.000 n=5+5) _directGzip_decode-2 78.5 ±10% 77.3 ±12% ~ (p=0.841 n=5+5) _noDirectGzip_decode-2 21.3 ± 6% 21.7 ± 5% ~ (p=0.548 n=5+5) _htmlResponse-2 9.36 ±21% 8.57 ±12% ~ (p=0.421 n=5+5) _jsonBodyManual-2 6.59 ±21% 6.38 ±15% ~ (p=1.000 n=5+5) _jsonBody-2 9.72 ±23% 9.72 ± 8% ~ (p=0.548 n=5+5) _jsonBodyValidation-2 11.3 ± 9% 11.3 ±17% ~ (p=1.000 n=5+5) _outputHeaders-2 8.68 ±11% 8.99 ±11% ~ (p=0.548 n=5+5) _requestResponseMapping-2 10.7 ±13% 12.0 ±34% ~ (p=0.548 n=5+5) _validation-2 10.5 ±15% 10.4 ±13% ~ (p=1.000 n=5+5) _noValidation-2 7.90 ± 9% 8.74 ±14% ~ (p=0.095 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 4.86 ± 5% 5.21 ±29% ~ (p=0.730 n=4+5) _ok-2 5.24 ±10% 6.46 ±79% ~ (p=1.000 n=5+5) _invalidBody-2 8.66 ±20% 8.76 ± 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.2 ±56% 11.3 ±49% ~ (p=0.548 n=5+5) _directGzipHead-2 10.1 ±44% 11.4 ±58% ~ (p=1.000 n=5+5) _noDirectGzip-2 23.5 ± 8% 26.0 ±17% ~ (p=0.222 n=5+5) _directGzip_decode-2 98.7 ±23% 106.2 ±27% ~ (p=0.421 n=5+5) _noDirectGzip_decode-2 24.7 ±15% 25.5 ±16% ~ (p=0.548 n=5+5) _jsonBody-2 11.9 ±14% 16.7 ±43% ~ (p=0.095 n=5+5) _jsonBodyValidation-2 15.3 ±35% 15.1 ±30% ~ (p=0.889 n=5+5) _outputHeaders-2 8.01 ± 4% 10.58 ±33% +32.06% (p=0.016 n=4+5) _requestResponseMapping-2 15.3 ±19% 15.7 ±25% ~ (p=1.000 n=5+5) _validation-2 16.8 ±16% 15.3 ±27% ~ (p=0.548 n=5+5) _noValidation-2 14.5 ±21% 12.4 ±12% ~ (p=0.222 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 13.6 ±57% 9.9 ±46% ~ (p=0.310 n=5+5) _directGzipHead-2 10.9 ±37% 9.8 ±52% ~ (p=0.587 n=5+5) _noDirectGzip-2 26.5 ±56% 23.5 ± 6% ~ (p=0.841 n=5+5) _directGzip_decode-2 108 ±12% 104 ±33% ~ (p=0.690 n=5+5) _noDirectGzip_decode-2 26.3 ±15% 25.9 ±11% ~ (p=1.000 n=5+5) _htmlResponse-2 15.4 ±34% 13.8 ±66% ~ (p=0.548 n=5+5) _jsonBodyManual-2 12.3 ±16% 10.8 ±29% ~ (p=0.095 n=5+5) _jsonBody-2 15.2 ±29% 15.7 ±12% ~ (p=0.841 n=5+5) _jsonBodyValidation-2 16.7 ±28% 17.8 ±27% ~ (p=0.841 n=5+5) _outputHeaders-2 13.4 ±24% 13.7 ±23% ~ (p=0.690 n=5+5) _requestResponseMapping-2 17.5 ±11% 18.1 ±20% ~ (p=0.690 n=5+5) _validation-2 17.8 ±32% 16.1 ±28% ~ (p=0.690 n=5+5) _noValidation-2 11.9 ±29% 13.9 ±26% ~ (p=0.310 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 10.1 ±74% 9.4 ±42% ~ (p=1.000 n=5+5) _ok-2 10.7 ±49% 10.6 ±42% ~ (p=0.690 n=5+5) _invalidBody-2 16.0 ±49% 14.9 ±26% ~ (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-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 29.1k ± 1% 28.3k ± 1% -2.50% (p=0.029 n=4+4) _directGzipHead-2 29.0k ± 1% 29.0k ± 2% ~ (p=1.000 n=5+5) _noDirectGzip-2 6.44k ± 2% 6.29k ± 2% ~ (p=0.056 n=5+5) _directGzip_decode-2 1.83k ± 5% 1.80k ± 3% ~ (p=0.802 n=5+5) _noDirectGzip_decode-2 6.23k ± 2% 6.24k ± 2% ~ (p=1.000 n=5+5) _jsonBody-2 14.9k ± 2% 14.6k ± 1% ~ (p=0.056 n=5+5) _jsonBodyValidation-2 13.2k ± 2% 12.8k ± 3% -3.40% (p=0.016 n=5+5) _outputHeaders-2 27.9k ± 2% 27.6k ± 3% ~ (p=0.690 n=5+5) _requestResponseMapping-2 14.8k ± 3% 14.5k ± 6% ~ (p=0.310 n=5+5) _validation-2 13.5k ± 6% 13.6k ± 2% ~ (p=0.841 n=5+5) _noValidation-2 18.3k ± 1% 18.5k ± 2% ~ (p=0.690 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 26.3k ±13% 27.4k ± 2% ~ (p=0.730 n=5+4) _directGzipHead-2 27.5k ± 2% 27.1k ± 6% ~ (p=0.889 n=5+5) _noDirectGzip-2 6.25k ± 4% 6.32k ± 2% ~ (p=0.690 n=5+5) _directGzip_decode-2 1.83k ± 3% 1.80k ± 2% ~ (p=0.222 n=5+5) _noDirectGzip_decode-2 6.26k ± 3% 6.10k ± 5% ~ (p=0.095 n=5+5) _htmlResponse-2 16.6k ± 3% 16.5k ± 4% ~ (p=0.841 n=5+5) _jsonBodyManual-2 22.4k ± 2% 22.2k ± 3% ~ (p=0.421 n=5+5) _jsonBody-2 15.4k ± 2% 15.3k ± 1% ~ (p=0.841 n=5+5) _jsonBodyValidation-2 12.4k ± 2% 12.2k ± 2% ~ (p=0.222 n=5+5) _outputHeaders-2 17.0k ± 2% 16.8k ± 2% ~ (p=0.310 n=5+5) _requestResponseMapping-2 14.5k ± 2% 14.0k ± 4% ~ (p=0.310 n=5+5) _validation-2 13.3k ± 4% 13.6k ± 2% ~ (p=0.222 n=5+5) _noValidation-2 18.4k ± 1% 17.7k ± 4% -4.20% (p=0.008 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 26.1k ± 1% 25.7k ± 6% ~ (p=1.000 n=4+5) _ok-2 26.1k ± 1% 25.0k ±14% ~ (p=0.841 n=5+5) _invalidBody-2 17.7k ± 5% 17.6k ± 1% ~ (p=0.310 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.86kB ± 0% 3.86kB ± 0% ~ (p=0.595 n=5+5) _directGzipHead-2 3.85kB ± 0% 3.85kB ± 0% ~ (p=0.437 n=5+5) _noDirectGzip-2 7.00kB ±19% 6.76kB ±20% ~ (p=0.421 n=5+5) _directGzip_decode-2 404kB ± 0% 403kB ± 0% ~ (p=0.421 n=5+5) _noDirectGzip_decode-2 5.69kB ±10% 5.68kB ± 7% ~ (p=0.548 n=5+5) _jsonBody-2 13.1kB ± 0% 13.1kB ± 0% ~ (p=0.881 n=5+5) _jsonBodyValidation-2 18.9kB ± 0% 18.9kB ± 0% ~ (p=1.000 n=5+5) _outputHeaders-2 3.57kB ± 0% 3.57kB ± 0% ~ (p=0.460 n=5+5) _requestResponseMapping-2 16.6kB ± 0% 16.6kB ± 0% ~ (p=0.444 n=5+5) _validation-2 16.5kB ± 0% 16.5kB ± 0% ~ (p=0.865 n=5+5) _noValidation-2 7.76kB ± 0% 7.77kB ± 0% ~ (p=0.429 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 3.89kB ± 0% 3.89kB ± 0% ~ (p=0.540 n=5+5) _directGzipHead-2 3.89kB ± 0% 3.89kB ± 0% ~ (p=0.913 n=5+5) _noDirectGzip-2 7.08kB ±25% 7.02kB ±15% ~ (p=1.000 n=5+5) _directGzip_decode-2 403kB ± 0% 403kB ± 0% ~ (p=0.222 n=5+5) _noDirectGzip_decode-2 5.91kB ± 3% 6.08kB ± 9% ~ (p=1.000 n=5+5) _htmlResponse-2 8.04kB ± 0% 8.04kB ± 0% ~ (p=0.929 n=5+5) _jsonBodyManual-2 4.50kB ± 0% 4.50kB ± 0% ~ (p=0.317 n=5+5) _jsonBody-2 10.2kB ± 0% 10.2kB ± 0% ~ (p=0.206 n=5+5) _jsonBodyValidation-2 19.0kB ± 0% 19.0kB ± 0% ~ (p=0.579 n=5+5) _outputHeaders-2 10.4kB ± 0% 10.4kB ± 0% ~ (p=0.603 n=5+5) _requestResponseMapping-2 16.7kB ± 0% 16.7kB ± 0% ~ (p=0.413 n=5+5) _validation-2 16.6kB ± 0% 16.6kB ± 0% ~ (p=0.302 n=5+5) _noValidation-2 7.83kB ± 0% 7.83kB ± 0% +0.05% (p=0.040 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 4.64kB ± 0% 4.64kB ± 0% ~ (p=0.595 n=5+5) _ok-2 4.54kB ± 0% 4.54kB ± 0% ~ (p=0.200 n=4+4) _invalidBody-2 8.25kB ± 0% 8.26kB ± 0% ~ (p=0.486 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 505 ± 0% 505 ± 0% ~ (p=1.000 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.8 ± 3% 51.8 ± 3% ~ (p=1.000 n=5+5) _directGzip_decode-2 506 ± 0% 506 ± 0% ~ (p=0.810 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) ```