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

Few changes #85

Closed vearutop closed 2 years ago

github-actions[bot] commented 2 years ago

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go 99 6798 (+29) 4929 (+18) 457 (+2) 1412 (+9) 800 (+10) 164.4K (+3B)
Go (test) 44 4648 (+68) 3573 (+58) 145 (+5) 930 (+5) 120 129.4K (+2K)
JSON 3 1319 (-7) 1319 (-7) 0 0 0 54K (-461B)
Markdown 3 454 (+35) 348 (+24) 0 106 (+11) 0 15.8K (+1.1K)
github-actions[bot] commented 2 years ago

Unit Test Coverage

total: (statements) 83.2% changed lines: (statements) 94.7%

Coverage of changed lines | File | Function | Coverage | |--------------------------|--------------------|----------| | Total | | 94.7% | | openapi/collector.go | | 100.0% | | openapi/collector.go:188 | processUseCase | 100.0% | | request/factory.go | | 100.0% | | request/factory.go:93 | MakeDecoder | 100.0% | | trait.go | | 87.5% | | trait.go:54 | OutputHasNoContent | 87.5% |
Coverage diff with base branch | File | Function | Base Coverage | Current Coverage | |-----------------------------------|--------------------|---------------|------------------| | Total | | 82.9% | 83.2% (+0.3%) | | github.com/swaggest/rest/trait.go | OutputHasNoContent | 87.5% | 88.9% (+1.4%) |
github-actions[bot] commented 2 years ago

Go API Changes

# summary
Inferred base version: v0.2.28
Suggested version: v0.3.0
codecov[bot] commented 2 years ago

Codecov Report

Merging #85 (f813768) into master (d3230eb) will increase coverage by 0.24%. The diff coverage is 90.24%.

@@            Coverage Diff             @@
##           master      #85      +/-   ##
==========================================
+ Coverage   76.96%   77.21%   +0.24%     
==========================================
  Files          27       27              
  Lines        1385     1413      +28     
==========================================
+ Hits         1066     1091      +25     
- Misses        206      207       +1     
- Partials      113      115       +2     
Flag Coverage Δ
unittests 77.21% <90.24%> (+0.24%) :arrow_up:

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

Impacted Files Coverage Δ
nethttp/openapi.go 93.84% <ø> (ø)
trait.go 85.18% <80.00%> (-8.15%) :arrow_down:
openapi/collector.go 63.43% <100.00%> (+2.16%) :arrow_up:
request/factory.go 86.60% <100.00%> (+0.12%) :arrow_up:

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

github-actions[bot] commented 2 years 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.68µs ± 2% 1.71µs ± 4% ~ (p=0.310 n=5+5) pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 928ns ± 2% 922ns ± 1% ~ (p=0.421 n=5+5) DecoderFunc_Decode-2 2.66µs ± 2% 2.70µs ± 5% ~ (p=0.310 n=5+5) Decoder_Decode_json-2 32.7µs ± 6% 33.2µs ± 4% ~ (p=0.310 n=5+5) Decoder_Decode_queryObject-2 6.42µs ± 5% 6.35µs ± 2% ~ (p=1.000 n=5+5) Decoder_Decode_jsonParam-2 2.55µs ± 4% 2.52µs ± 1% ~ (p=0.389 n=5+5) DecoderFactory_SetDecoderFunc-2 2.24µs ± 4% 2.18µs ± 3% ~ (p=0.151 n=5+5) pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 14.4µs ± 8% 14.5µs ± 2% ~ (p=0.841 n=5+5) Middleware_control-2 4.24µs ± 2% 4.32µs ± 3% ~ (p=0.151 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.16kB ± 3% 1.16kB ± 4% ~ (p=0.968 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.71µs ± 4% pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 922ns ± 1% DecoderFunc_Decode-2 2.70µs ± 5% Decoder_Decode_json-2 33.2µs ± 4% Decoder_Decode_queryObject-2 6.35µs ± 2% Decoder_Decode_jsonParam-2 2.52µs ± 1% DecoderFactory_SetDecoderFunc-2 2.18µs ± 3% pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 14.5µs ± 2% Middleware_control-2 4.32µ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.16kB ± 4% 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 2 years 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 21.8µs ± 1% 22.1µs ± 5% ~ (p=0.556 n=4+5) _directGzipHead-2 22.6µs ± 2% 21.9µs ± 2% -2.74% (p=0.032 n=5+5) _noDirectGzip-2 137µs ± 4% 135µs ± 2% ~ (p=0.841 n=5+5) _directGzip_decode-2 462µs ± 3% 485µs ± 4% +5.03% (p=0.032 n=5+5) _noDirectGzip_decode-2 135µs ± 1% 138µs ± 4% ~ (p=0.095 n=5+5) _jsonBody-2 41.7µs ± 1% 42.0µs ± 3% ~ (p=0.690 n=5+5) _jsonBodyValidation-2 48.3µs ± 4% 46.8µs ± 2% ~ (p=0.056 n=5+5) _outputHeaders-2 21.8µs ± 2% 21.7µs ± 1% ~ (p=1.000 n=5+5) _requestResponseMapping-2 41.6µs ± 2% 41.2µs ± 5% ~ (p=0.421 n=5+5) _validation-2 44.3µs ± 3% 44.4µs ± 3% ~ (p=0.841 n=5+5) _noValidation-2 32.1µs ± 4% 33.2µs ± 3% ~ (p=0.056 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 22.9µs ± 2% 22.5µs ± 5% ~ (p=0.222 n=5+5) _directGzipHead-2 22.6µs ± 1% 22.6µs ± 2% ~ (p=0.686 n=4+4) _noDirectGzip-2 135µs ± 1% 136µs ± 2% ~ (p=1.000 n=5+5) _directGzip_decode-2 471µs ± 2% 481µs ± 2% ~ (p=0.151 n=5+5) _noDirectGzip_decode-2 135µs ± 1% 135µs ± 1% ~ (p=0.730 n=5+4) _jsonBodyManual-2 26.0µs ± 2% 26.7µs ± 2% +2.46% (p=0.032 n=5+5) _jsonBody-2 36.8µs ± 1% 37.6µs ± 2% ~ (p=0.095 n=5+5) _jsonBodyValidation-2 47.9µs ± 3% 49.8µs ± 2% +3.91% (p=0.008 n=5+5) _outputHeaders-2 22.2µs ± 2% 22.4µs ± 1% ~ (p=0.310 n=5+5) _requestResponseMapping-2 41.1µs ± 2% 40.2µs ± 2% ~ (p=0.095 n=5+5) _validation-2 44.2µs ± 3% 44.5µs ± 3% ~ (p=0.548 n=5+5) _noValidation-2 32.9µs ± 2% 32.9µs ± 1% ~ (p=0.841 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 25.5µs ± 1% 25.8µs ± 4% ~ (p=0.556 n=4+5) _ok-2 25.6µs ± 2% 26.5µs ± 1% +3.83% (p=0.008 n=5+5) _invalidBody-2 35.7µs ± 2% 37.9µs ± 2% +6.16% (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 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) _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% ~ (all equal) _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) _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 45.8k ± 1% 45.2k ± 5% ~ (p=0.556 n=4+5) _directGzipHead-2 44.3k ± 2% 45.6k ± 2% +2.80% (p=0.032 n=5+5) _noDirectGzip-2 7.31k ± 4% 7.38k ± 2% ~ (p=0.841 n=5+5) _directGzip_decode-2 2.16k ± 3% 2.06k ± 4% -4.77% (p=0.032 n=5+5) _noDirectGzip_decode-2 7.42k ± 1% 7.23k ± 4% ~ (p=0.095 n=5+5) _jsonBody-2 24.0k ± 1% 23.8k ± 3% ~ (p=0.690 n=5+5) _jsonBodyValidation-2 20.7k ± 4% 21.4k ± 2% ~ (p=0.056 n=5+5) _outputHeaders-2 45.8k ± 2% 46.0k ± 1% ~ (p=1.000 n=5+5) _requestResponseMapping-2 24.1k ± 2% 24.3k ± 4% ~ (p=0.421 n=5+5) _validation-2 22.6k ± 3% 22.5k ± 4% ~ (p=0.841 n=5+5) _noValidation-2 31.2k ± 4% 30.1k ± 3% ~ (p=0.056 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 43.7k ± 2% 44.5k ± 5% ~ (p=0.222 n=5+5) _directGzipHead-2 43.3k ± 9% 44.2k ± 2% ~ (p=1.000 n=5+4) _noDirectGzip-2 7.39k ± 1% 7.38k ± 2% ~ (p=1.000 n=5+5) _directGzip_decode-2 2.12k ± 2% 2.08k ± 2% ~ (p=0.151 n=5+5) _noDirectGzip_decode-2 7.42k ± 1% 7.42k ± 1% ~ (p=0.794 n=5+4) _jsonBodyManual-2 38.4k ± 2% 37.5k ± 2% -2.40% (p=0.032 n=5+5) _jsonBody-2 27.1k ± 1% 26.6k ± 2% ~ (p=0.095 n=5+5) _jsonBodyValidation-2 20.9k ± 3% 20.1k ± 2% -3.76% (p=0.008 n=5+5) _outputHeaders-2 45.1k ± 2% 44.7k ± 1% ~ (p=0.310 n=5+5) _requestResponseMapping-2 24.3k ± 2% 24.8k ± 2% ~ (p=0.095 n=5+5) _validation-2 22.6k ± 3% 22.5k ± 3% ~ (p=0.548 n=5+5) _noValidation-2 30.4k ± 2% 30.4k ± 1% ~ (p=0.841 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 39.2k ± 1% 38.7k ± 4% ~ (p=0.556 n=4+5) _ok-2 39.1k ± 2% 37.7k ± 1% -3.69% (p=0.008 n=5+5) _invalidBody-2 28.0k ± 2% 26.4k ± 2% -5.81% (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.92kB ± 0% 3.92kB ± 0% ~ (p=0.794 n=4+5) _directGzipHead-2 3.92kB ± 0% 3.92kB ± 0% ~ (p=0.730 n=5+5) _noDirectGzip-2 6.58kB ±23% 6.52kB ±15% ~ (p=1.000 n=5+5) _directGzip_decode-2 403kB ± 0% 403kB ± 0% ~ (p=0.310 n=5+5) _noDirectGzip_decode-2 5.74kB ± 6% 5.86kB ± 6% ~ (p=0.548 n=5+5) _jsonBody-2 13.2kB ± 0% 13.2kB ± 0% +0.02% (p=0.016 n=4+5) _jsonBodyValidation-2 19.0kB ± 0% 19.0kB ± 0% ~ (p=0.056 n=5+5) _outputHeaders-2 3.71kB ± 0% 3.71kB ± 0% ~ (p=0.190 n=5+5) _requestResponseMapping-2 16.7kB ± 0% 16.7kB ± 0% ~ (p=0.556 n=5+5) _validation-2 16.6kB ± 0% 16.6kB ± 0% -0.03% (p=0.040 n=5+5) _noValidation-2 7.88kB ± 0% 7.88kB ± 0% ~ (p=1.000 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 3.97kB ± 0% 3.97kB ± 0% ~ (p=0.929 n=5+5) _directGzipHead-2 3.97kB ± 0% 3.97kB ± 0% ~ (p=0.167 n=5+5) _noDirectGzip-2 6.62kB ±16% 6.89kB ±14% ~ (p=0.548 n=5+5) _directGzip_decode-2 403kB ± 0% 403kB ± 0% +0.03% (p=0.032 n=5+5) _noDirectGzip_decode-2 5.88kB ± 8% 5.71kB ± 4% ~ (p=0.548 n=5+5) _jsonBodyManual-2 4.64kB ± 0% 4.64kB ± 0% ~ (p=0.762 n=5+5) _jsonBody-2 10.4kB ± 0% 10.3kB ± 0% ~ (p=0.190 n=5+5) _jsonBodyValidation-2 19.1kB ± 0% 19.1kB ± 0% ~ (p=0.460 n=5+5) _outputHeaders-2 3.74kB ± 0% 3.74kB ± 0% ~ (p=0.159 n=5+5) _requestResponseMapping-2 16.7kB ± 0% 16.7kB ± 0% ~ (p=0.444 n=5+5) _validation-2 16.7kB ± 0% 16.7kB ± 0% ~ (p=0.968 n=5+5) _noValidation-2 7.94kB ± 0% 7.94kB ± 0% ~ (p=0.762 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 4.88kB ± 0% 4.88kB ± 0% ~ (p=0.556 n=5+5) _ok-2 4.78kB ± 0% 4.78kB ± 0% ~ (p=0.257 n=4+4) _invalidBody-2 8.67kB ± 0% 8.62kB ± 0% -0.55% (p=0.029 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.4 ± 3% ~ (p=1.000 n=5+5) _directGzip_decode-2 501 ± 0% 501 ± 0% ~ (p=1.000 n=5+4) _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.6 ± 3% 51.6 ± 3% ~ (p=1.000 n=5+5) _directGzip_decode-2 503 ± 0% 504 ± 0% ~ (p=0.167 n=5+5) _noDirectGzip_decode-2 52.0 ± 0% 52.0 ± 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 100 ± 0% 99 ± 0% -1.00% (p=0.029 n=4+4) ```