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

Add CORS middleware to advanced example #82

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 6769 (+5) 4911 (+2) 455 (+2) 1403 (+1) 790 164.4K (+164B)
Go (test) 44 4580 3515 140 925 120 127.4K (+2B)
YAML 10 705 (-2) 610 46 49 (-2) 0 22.1K (-277B)
github-actions[bot] commented 2 years ago

Go API Changes

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

Unit Test Coverage

total: (statements) 82.9%

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

Codecov Report

Merging #82 (a068e28) into master (3e51897) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #82   +/-   ##
=======================================
  Coverage   76.96%   76.96%           
=======================================
  Files          27       27           
  Lines        1385     1385           
=======================================
  Hits         1066     1066           
  Misses        206      206           
  Partials      113      113           
Flag Coverage Δ
unittests 76.96% <ø> (ø)

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

: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.25µs ± 1% 1.28µs ± 5% ~ (p=0.135 n=5+5) pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 685ns ± 3% 680ns ± 0% ~ (p=0.841 n=5+5) DecoderFunc_Decode-2 1.97µs ± 1% 1.97µs ± 1% ~ (p=0.595 n=5+5) Decoder_Decode_json-2 21.4µs ± 1% 21.3µs ± 1% ~ (p=0.548 n=5+5) Decoder_Decode_queryObject-2 4.70µs ± 0% 4.73µs ± 2% ~ (p=0.413 n=5+5) Decoder_Decode_jsonParam-2 1.79µs ± 1% 1.77µs ± 0% ~ (p=0.079 n=5+5) DecoderFactory_SetDecoderFunc-2 1.63µs ± 1% 1.62µs ± 0% ~ (p=0.095 n=5+5) pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 11.0µs ± 0% 11.0µs ± 1% ~ (p=0.286 n=4+5) Middleware_control-2 3.08µs ± 1% 3.12µs ± 4% ~ (p=0.310 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.18kB ± 1% 1.15kB ± 3% ~ (p=0.135 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.28µs ± 5% pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 680ns ± 0% DecoderFunc_Decode-2 1.97µs ± 1% Decoder_Decode_json-2 21.3µs ± 1% Decoder_Decode_queryObject-2 4.73µs ± 2% Decoder_Decode_jsonParam-2 1.77µs ± 0% DecoderFactory_SetDecoderFunc-2 1.62µs ± 0% pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 11.0µs ± 1% Middleware_control-2 3.12µs ± 4% 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 ± 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 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 29.6µs ±19% 30.6µs ± 8% ~ (p=0.222 n=5+5) _directGzipHead-2 28.2µs ± 1% 28.4µs ± 8% ~ (p=0.548 n=5+5) _noDirectGzip-2 163µs ± 3% 160µs ± 1% ~ (p=0.151 n=5+5) _directGzip_decode-2 548µs ± 4% 559µs ± 2% ~ (p=0.151 n=5+5) _noDirectGzip_decode-2 161µs ± 2% 163µs ± 3% ~ (p=0.421 n=5+5) _jsonBody-2 51.7µs ± 2% 53.2µs ± 2% +2.97% (p=0.016 n=5+5) _jsonBodyValidation-2 59.4µs ± 2% 60.4µs ± 3% ~ (p=0.310 n=5+5) _outputHeaders-2 26.9µs ± 1% 27.7µs ± 3% +2.89% (p=0.008 n=5+5) _requestResponseMapping-2 50.5µs ± 4% 50.4µs ± 2% ~ (p=1.000 n=5+5) _validation-2 55.1µs ± 2% 55.5µs ± 3% ~ (p=0.421 n=5+5) _noValidation-2 40.2µs ± 4% 40.5µs ± 2% ~ (p=0.841 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 28.1µs ± 2% 29.1µs ± 7% ~ (p=0.095 n=5+5) _directGzipHead-2 28.0µs ± 1% 29.0µs ± 2% +3.73% (p=0.016 n=4+5) _noDirectGzip-2 160µs ± 1% 162µs ± 3% ~ (p=0.222 n=5+5) _directGzip_decode-2 540µs ± 1% 550µs ± 5% ~ (p=0.222 n=5+5) _noDirectGzip_decode-2 159µs ± 1% 163µs ± 1% +2.47% (p=0.008 n=5+5) _jsonBodyManual-2 31.6µs ± 1% 32.8µs ± 3% +3.90% (p=0.008 n=5+5) _jsonBody-2 45.9µs ± 2% 46.7µs ± 3% ~ (p=0.222 n=5+5) _jsonBodyValidation-2 61.8µs ± 3% 61.1µs ± 3% ~ (p=0.548 n=5+5) _outputHeaders-2 28.1µs ± 2% 28.2µs ± 2% ~ (p=0.690 n=5+5) _requestResponseMapping-2 51.7µs ± 2% 51.6µs ± 3% ~ (p=1.000 n=5+5) _validation-2 55.9µs ± 2% 57.2µs ± 2% ~ (p=0.056 n=5+5) _noValidation-2 41.5µs ± 6% 40.9µs ± 2% ~ (p=0.690 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 31.3µs ± 1% 31.5µs ± 0% ~ (p=0.200 n=4+4) _ok-2 32.5µs ± 2% 31.9µs ± 1% ~ (p=0.056 n=5+5) _invalidBody-2 46.9µs ± 2% 46.7µs ± 1% ~ (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 639 ± 0% 653 ± 0% +2.19% (p=0.008 n=5+5) _directGzipHead-2 183 ± 0% 197 ± 0% +7.65% (p=0.008 n=5+5) _noDirectGzip-2 1.04k ± 0% 1.06k ± 0% +1.34% (p=0.008 n=5+5) _directGzip_decode-2 639 ± 0% 653 ± 0% +2.19% (p=0.008 n=5+5) _noDirectGzip_decode-2 1.04k ± 0% 1.06k ± 0% +1.34% (p=0.008 n=5+5) _jsonBodyManual-2 208 ± 0% 222 ± 0% +6.73% (p=0.008 n=5+5) _jsonBody-2 208 ± 0% 222 ± 0% +6.73% (p=0.008 n=5+5) _jsonBodyValidation-2 194 ± 0% 208 ± 0% +7.22% (p=0.008 n=5+5) _outputHeaders-2 155 ± 0% 169 ± 0% +9.03% (p=0.008 n=5+5) _requestResponseMapping-2 94.0 ± 0% 108.0 ± 0% +14.89% (p=0.008 n=5+5) _validation-2 177 ± 0% 191 ± 0% +7.91% (p=0.008 n=5+5) _noValidation-2 177 ± 0% 191 ± 0% +7.91% (p=0.008 n=5+5) 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% 358 ± 0% ~ (p=0.444 n=5+5) _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 34.1k ±17% 32.7k ± 7% ~ (p=0.222 n=5+5) _directGzipHead-2 35.4k ± 1% 35.2k ± 7% ~ (p=0.548 n=5+5) _noDirectGzip-2 6.14k ± 3% 6.24k ± 1% ~ (p=0.151 n=5+5) _directGzip_decode-2 1.83k ± 4% 1.79k ± 2% ~ (p=0.151 n=5+5) _noDirectGzip_decode-2 6.22k ± 2% 6.14k ± 3% ~ (p=0.421 n=5+5) _jsonBody-2 19.4k ± 2% 18.8k ± 2% -2.86% (p=0.016 n=5+5) _jsonBodyValidation-2 16.8k ± 2% 16.6k ± 3% ~ (p=0.310 n=5+5) _outputHeaders-2 37.2k ± 1% 36.2k ± 3% -2.80% (p=0.008 n=5+5) _requestResponseMapping-2 19.8k ± 4% 19.9k ± 2% ~ (p=1.000 n=5+5) _validation-2 18.2k ± 2% 18.0k ± 3% ~ (p=0.421 n=5+5) _noValidation-2 24.9k ± 4% 24.7k ± 2% ~ (p=0.841 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 35.6k ± 2% 34.4k ± 7% ~ (p=0.095 n=5+5) _directGzipHead-2 35.8k ± 1% 34.5k ± 2% -3.58% (p=0.016 n=4+5) _noDirectGzip-2 6.24k ± 1% 6.18k ± 3% ~ (p=0.222 n=5+5) _directGzip_decode-2 1.85k ± 1% 1.82k ± 5% ~ (p=0.222 n=5+5) _noDirectGzip_decode-2 6.27k ± 1% 6.12k ± 1% -2.41% (p=0.008 n=5+5) _jsonBodyManual-2 31.7k ± 1% 30.5k ± 3% -3.74% (p=0.008 n=5+5) _jsonBody-2 21.8k ± 2% 21.4k ± 2% ~ (p=0.222 n=5+5) _jsonBodyValidation-2 16.2k ± 3% 16.4k ± 3% ~ (p=0.548 n=5+5) _outputHeaders-2 35.6k ± 2% 35.5k ± 2% ~ (p=0.690 n=5+5) _requestResponseMapping-2 19.4k ± 2% 19.4k ± 3% ~ (p=1.000 n=5+5) _validation-2 17.9k ± 2% 17.5k ± 2% ~ (p=0.056 n=5+5) _noValidation-2 24.1k ± 6% 24.5k ± 3% ~ (p=0.690 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 31.9k ± 1% 31.7k ± 0% ~ (p=0.200 n=4+4) _ok-2 30.8k ± 2% 31.3k ± 1% ~ (p=0.056 n=5+5) _invalidBody-2 21.3k ± 2% 21.4k ± 1% ~ (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-2 3.93kB ± 0% 3.93kB ± 0% ~ (p=0.373 n=5+5) _directGzipHead-2 3.92kB ± 0% 3.92kB ± 0% ~ (p=0.508 n=5+5) _noDirectGzip-2 6.94kB ±22% 7.09kB ±19% ~ (p=0.841 n=5+5) _directGzip_decode-2 403kB ± 0% 403kB ± 0% ~ (p=0.889 n=5+5) _noDirectGzip_decode-2 5.84kB ± 7% 5.74kB ± 8% ~ (p=0.841 n=5+5) _jsonBody-2 13.2kB ± 0% 13.2kB ± 0% ~ (p=0.881 n=5+5) _jsonBodyValidation-2 19.0kB ± 0% 19.0kB ± 0% ~ (p=0.460 n=5+5) _outputHeaders-2 3.71kB ± 0% 3.71kB ± 0% ~ (p=0.476 n=5+5) _requestResponseMapping-2 16.7kB ± 0% 16.7kB ± 0% ~ (p=0.786 n=5+5) _validation-2 16.6kB ± 0% 16.6kB ± 0% ~ (p=0.889 n=5+5) _noValidation-2 7.88kB ± 0% 7.89kB ± 0% ~ (p=0.722 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 3.94kB ± 0% 3.98kB ± 0% +0.89% (p=0.008 n=5+5) _directGzipHead-2 3.94kB ± 0% 3.97kB ± 0% +0.89% (p=0.008 n=5+5) _noDirectGzip-2 7.04kB ±13% 7.27kB ±22% ~ (p=0.841 n=5+5) _directGzip_decode-2 403kB ± 0% 403kB ± 0% ~ (p=0.421 n=5+5) _noDirectGzip_decode-2 5.79kB ±10% 5.74kB ±14% ~ (p=1.000 n=5+5) _jsonBodyManual-2 4.61kB ± 0% 4.65kB ± 0% +0.72% (p=0.008 n=5+5) _jsonBody-2 10.3kB ± 0% 10.4kB ± 0% +0.32% (p=0.008 n=5+5) _jsonBodyValidation-2 19.1kB ± 0% 19.1kB ± 0% +0.16% (p=0.008 n=5+5) _outputHeaders-2 3.71kB ± 0% 3.74kB ± 0% +0.87% (p=0.008 n=5+5) _requestResponseMapping-2 16.7kB ± 0% 16.8kB ± 0% +0.18% (p=0.008 n=5+5) _validation-2 16.6kB ± 0% 16.7kB ± 0% +0.19% (p=0.008 n=5+5) _noValidation-2 7.92kB ± 0% 7.95kB ± 0% +0.41% (p=0.008 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.405 n=5+5) _ok-2 4.78kB ± 0% 4.78kB ± 0% ~ (p=0.571 n=4+4) _invalidBody-2 8.67kB ± 0% 8.67kB ± 0% ~ (p=0.429 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 501 ± 0% 501 ± 0% ~ (all equal) _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 43.0 ± 0% 44.0 ± 0% +2.33% (p=0.008 n=5+5) _directGzipHead-2 43.0 ± 0% 44.0 ± 0% +2.33% (p=0.008 n=5+5) _noDirectGzip-2 50.8 ± 4% 51.8 ± 3% ~ (p=0.151 n=5+5) _directGzip_decode-2 502 ± 0% 504 ± 0% +0.40% (p=0.008 n=5+5) _noDirectGzip_decode-2 51.0 ± 0% 52.0 ± 0% +1.96% (p=0.008 n=5+5) _jsonBodyManual-2 50.0 ± 0% 51.0 ± 0% +2.00% (p=0.008 n=5+5) _jsonBody-2 101 ± 0% 102 ± 0% +0.99% (p=0.008 n=5+5) _jsonBodyValidation-2 187 ± 0% 188 ± 0% +0.53% (p=0.008 n=5+5) _outputHeaders-2 37.0 ± 0% 38.0 ± 0% +2.70% (p=0.008 n=5+5) _requestResponseMapping-2 127 ± 0% 128 ± 0% +0.79% (p=0.008 n=5+5) _validation-2 156 ± 0% 157 ± 0% +0.64% (p=0.008 n=5+5) _noValidation-2 93.0 ± 0% 94.0 ± 0% +1.08% (p=0.008 n=5+5) 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% 100 ± 0% ~ (all equal) ```