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

Upgrade to github.com/santhosh-tekuri/jsonschema/v5 #53

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 95 7090 (+22) 5147 (+17) 472 1471 (+5) 911 (+11) 170.5K (+511B)
Go (test) 41 4049 (-1) 3104 (-1) 126 819 111 113.2K (-20B)
github-actions[bot] commented 2 years ago

Go API Changes

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

Unit Test Coverage

total: (statements) 81.3%

Coverage diff with base branch ```diff 41c41 < github.com/swaggest/rest/jsonschema/validator.go ValidateJSONBody 83.3% --- > github.com/swaggest/rest/jsonschema/validator.go ValidateJSONBody 80.0% 43,44c43,44 < github.com/swaggest/rest/jsonschema/validator.go ValidateData 92.0% < github.com/swaggest/rest/jsonschema/validator.go appendError 75.0% --- > github.com/swaggest/rest/jsonschema/validator.go ValidateData 68.8% > github.com/swaggest/rest/jsonschema/validator.go appendError 100.0% 185c185 < total: (statements) 81.8% --- > total: (statements) 81.3% ```
codecov[bot] commented 2 years ago

Codecov Report

Merging #53 (17282cd) into master (144157d) will decrease coverage by 0.37%. The diff coverage is 36.84%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #53      +/-   ##
==========================================
- Coverage   74.05%   73.67%   -0.38%     
==========================================
  Files          26       26              
  Lines        1611     1622      +11     
==========================================
+ Hits         1193     1195       +2     
- Misses        261      269       +8     
- Partials      157      158       +1     
Flag Coverage Δ
unittests 73.67% <36.84%> (-0.38%) :arrow_down:

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

Impacted Files Coverage Δ
jsonschema/validator.go 69.00% <36.84%> (-6.29%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 144157d...17282cd. Read the comment docs.

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.31µs ± 2% 0.48µs ± 0% -63.60% (p=0.016 n=5+4) pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 680ns ± 1% 697ns ± 3% +2.50% (p=0.008 n=5+5) DecoderFunc_Decode-2 2.02µs ± 9% 2.01µs ± 1% ~ (p=0.548 n=5+5) Decoder_Decode_json-2 21.5µs ± 0% 29.3µs ± 1% +36.49% (p=0.008 n=5+5) Decoder_Decode_queryObject-2 4.67µs ± 1% 4.75µs ± 0% +1.59% (p=0.016 n=5+4) Decoder_Decode_jsonParam-2 1.75µs ± 0% 1.76µs ± 0% +0.68% (p=0.008 n=5+5) DecoderFactory_SetDecoderFunc-2 1.62µs ± 0% 1.63µs ± 0% ~ (p=0.143 n=5+5) pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 11.0µs ± 1% 11.0µs ± 1% ~ (p=1.000 n=5+5) Middleware_control-2 3.18µs ± 3% 3.18µs ± 3% ~ (p=0.690 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% 0.22kB ± 0% -91.23% (p=0.008 n=5+5) 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% 14.8kB ± 0% +21.68% (p=0.008 n=5+5) 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 ± 4% 1.12kB ± 1% -4.01% (p=0.040 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% 6.00 ± 0% -25.00% (p=0.008 n=5+5) 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% 273 ± 0% +54.24% (p=0.008 n=5+5) 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 477ns ± 0% pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 697ns ± 3% DecoderFunc_Decode-2 2.01µs ± 1% Decoder_Decode_json-2 29.3µs ± 1% Decoder_Decode_queryObject-2 4.75µs ± 0% Decoder_Decode_jsonParam-2 1.76µs ± 0% DecoderFactory_SetDecoderFunc-2 1.63µs ± 0% pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 11.0µs ± 1% Middleware_control-2 3.18µs ± 3% name alloc/op pkg:github.com/swaggest/rest/jsonschema goos:linux goarch:amd64 RequestValidator_ValidateRequestData-2 216B ± 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 14.8kB ± 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.12kB ± 1% Middleware_control-2 11.2kB ± 0% name allocs/op pkg:github.com/swaggest/rest/jsonschema goos:linux goarch:amd64 RequestValidator_ValidateRequestData-2 6.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 273 ± 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 23.4µs ± 1% 23.3µs ± 1% ~ (p=0.190 n=4+5) _directGzipHead-2 23.7µs ± 6% 24.5µs ± 8% ~ (p=0.151 n=5+5) _noDirectGzip-2 127µs ± 1% 133µs ± 1% +4.62% (p=0.008 n=5+5) _directGzip_decode-2 424µs ± 1% 431µs ± 1% ~ (p=0.056 n=5+5) _noDirectGzip_decode-2 127µs ± 1% 133µs ± 0% +4.60% (p=0.008 n=5+5) _jsonBody-2 40.8µs ± 0% 44.3µs ± 1% +8.48% (p=0.008 n=5+5) _jsonBodyValidation-2 46.8µs ± 1% 44.0µs ± 1% -5.82% (p=0.008 n=5+5) _outputHeaders-2 23.3µs ± 1% 23.1µs ± 1% ~ (p=0.056 n=5+5) _requestResponseMapping-2 41.1µs ± 2% 32.1µs ± 1% -21.75% (p=0.008 n=5+5) _validation-2 43.9µs ± 1% 40.8µs ± 2% -7.19% (p=0.008 n=5+5) _noValidation-2 29.2µs ± 1% 29.0µs ± 1% ~ (p=0.095 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 24.3µs ±11% 23.4µs ± 1% -3.71% (p=0.032 n=5+5) _directGzipHead-2 23.4µs ± 2% 24.2µs ±11% ~ (p=0.310 n=5+5) _noDirectGzip-2 127µs ± 2% 134µs ± 1% +5.77% (p=0.008 n=5+5) _directGzip_decode-2 422µs ± 2% 432µs ± 0% +2.21% (p=0.008 n=5+5) _noDirectGzip_decode-2 127µs ± 1% 133µs ± 1% +5.23% (p=0.008 n=5+5) _jsonBody-2 41.1µs ± 1% 44.6µs ± 2% +8.33% (p=0.008 n=5+5) _jsonBodyValidation-2 47.2µs ± 2% 43.8µs ± 1% -7.07% (p=0.008 n=5+5) _outputHeaders-2 23.2µs ± 1% 23.0µs ± 1% ~ (p=0.222 n=5+5) _requestResponseMapping-2 41.0µs ± 2% 31.7µs ± 2% -22.67% (p=0.008 n=5+5) _validation-2 43.9µs ± 1% 41.5µs ± 1% -5.52% (p=0.008 n=5+5) _noValidation-2 44.0µs ± 1% 41.3µs ± 1% -6.21% (p=0.008 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 27.5µs ±10% 26.9µs ± 3% ~ (p=0.690 n=5+5) _ok-2 27.2µs ± 1% 28.1µs ±12% ~ (p=1.000 n=5+5) _invalidBody-2 38.0µs ± 1% 39.1µs ± 2% +2.86% (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 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/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) _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 42.7k ± 1% 42.9k ± 1% ~ (p=0.190 n=4+5) _directGzipHead-2 42.3k ± 6% 40.8k ± 7% ~ (p=0.151 n=5+5) _noDirectGzip-2 7.86k ± 1% 7.51k ± 1% -4.41% (p=0.008 n=5+5) _directGzip_decode-2 2.36k ± 1% 2.32k ± 1% ~ (p=0.056 n=5+5) _noDirectGzip_decode-2 7.88k ± 1% 7.53k ± 0% -4.41% (p=0.008 n=5+5) _jsonBody-2 24.5k ± 0% 22.6k ± 1% -7.82% (p=0.008 n=5+5) _jsonBodyValidation-2 21.4k ± 1% 22.7k ± 1% +6.18% (p=0.008 n=5+5) _outputHeaders-2 42.9k ± 1% 43.2k ± 1% ~ (p=0.056 n=5+5) _requestResponseMapping-2 24.3k ± 2% 31.1k ± 1% +27.79% (p=0.008 n=5+5) _validation-2 22.8k ± 1% 24.5k ± 2% +7.76% (p=0.008 n=5+5) _noValidation-2 34.2k ± 1% 34.5k ± 1% ~ (p=0.095 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 41.2k ±10% 42.7k ± 1% +3.55% (p=0.032 n=5+5) _directGzipHead-2 42.7k ± 2% 41.4k ±10% ~ (p=0.310 n=5+5) _noDirectGzip-2 7.89k ± 2% 7.46k ± 1% -5.46% (p=0.008 n=5+5) _directGzip_decode-2 2.37k ± 2% 2.32k ± 0% -2.17% (p=0.008 n=5+5) _noDirectGzip_decode-2 7.88k ± 1% 7.49k ± 1% -4.97% (p=0.008 n=5+5) _jsonBody-2 24.3k ± 1% 22.4k ± 2% -7.68% (p=0.008 n=5+5) _jsonBodyValidation-2 21.2k ± 2% 22.8k ± 1% +7.61% (p=0.008 n=5+5) _outputHeaders-2 43.2k ± 1% 43.5k ± 1% ~ (p=0.222 n=5+5) _requestResponseMapping-2 24.4k ± 2% 31.5k ± 2% +29.33% (p=0.008 n=5+5) _validation-2 22.8k ± 1% 24.1k ± 1% +5.84% (p=0.008 n=5+5) _noValidation-2 22.7k ± 1% 24.2k ± 1% +6.61% (p=0.008 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 36.4k ± 9% 37.2k ± 3% ~ (p=0.690 n=5+5) _ok-2 36.8k ± 1% 35.7k ±11% ~ (p=1.000 n=5+5) _invalidBody-2 26.3k ± 1% 25.6k ± 1% -2.78% (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% -0.04% (p=0.032 n=5+5) _directGzipHead-2 3.92kB ± 0% 3.92kB ± 0% ~ (p=1.000 n=5+4) _noDirectGzip-2 6.21kB ±13% 6.48kB ±21% ~ (p=0.841 n=5+5) _directGzip_decode-2 402kB ± 0% 402kB ± 0% ~ (p=0.730 n=5+5) _noDirectGzip_decode-2 5.40kB ±10% 5.18kB ± 6% ~ (p=0.310 n=5+5) _jsonBody-2 13.2kB ± 0% 11.0kB ± 0% -16.17% (p=0.008 n=5+5) _jsonBodyValidation-2 19.0kB ± 0% 11.9kB ± 0% -37.26% (p=0.008 n=5+5) _outputHeaders-2 3.70kB ± 0% 3.70kB ± 0% ~ (p=0.397 n=5+5) _requestResponseMapping-2 16.6kB ± 0% 7.6kB ± 0% -54.12% (p=0.008 n=5+5) _validation-2 16.5kB ± 0% 11.4kB ± 0% -31.09% (p=0.008 n=5+5) _noValidation-2 6.13kB ± 0% 6.12kB ± 0% ~ (p=1.000 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 3.94kB ± 0% 3.93kB ± 0% ~ (p=0.127 n=5+5) _directGzipHead-2 3.93kB ± 0% 3.93kB ± 0% ~ (p=0.095 n=4+5) _noDirectGzip-2 6.31kB ±21% 6.37kB ±24% ~ (p=1.000 n=5+5) _directGzip_decode-2 402kB ± 0% 402kB ± 0% ~ (p=0.310 n=5+5) _noDirectGzip_decode-2 5.32kB ±11% 5.36kB ± 9% ~ (p=0.841 n=5+5) _jsonBody-2 13.3kB ± 0% 11.2kB ± 0% -16.03% (p=0.008 n=5+5) _jsonBodyValidation-2 19.0kB ± 0% 12.0kB ± 0% -37.13% (p=0.008 n=5+5) _outputHeaders-2 3.70kB ± 0% 3.71kB ± 0% ~ (p=0.794 n=5+4) _requestResponseMapping-2 16.7kB ± 0% 7.7kB ± 0% -54.04% (p=0.008 n=5+5) _validation-2 16.6kB ± 0% 11.4kB ± 0% -31.00% (p=0.008 n=5+5) _noValidation-2 16.6kB ± 0% 11.5kB ± 0% -30.99% (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% -0.06% (p=0.048 n=5+5) _ok-2 4.78kB ± 0% 4.78kB ± 0% ~ (p=0.114 n=4+4) _invalidBody-2 8.67kB ± 0% 8.80kB ± 0% +1.56% (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.4 ± 3% 49.4 ± 3% ~ (p=1.000 n=5+5) _directGzip_decode-2 500 ± 0% 500 ± 0% ~ (p=0.556 n=5+4) _noDirectGzip_decode-2 50.0 ± 0% 50.0 ± 0% ~ (all equal) _jsonBody-2 127 ± 0% 203 ± 0% +59.84% (p=0.008 n=5+5) _jsonBodyValidation-2 183 ± 0% 242 ± 0% +32.24% (p=0.008 n=5+5) _outputHeaders-2 37.0 ± 0% 37.0 ± 0% ~ (all equal) _requestResponseMapping-2 123 ± 0% 117 ± 0% -4.88% (p=0.008 n=5+5) _validation-2 152 ± 0% 191 ± 0% +25.66% (p=0.008 n=5+5) _noValidation-2 72.0 ± 0% 72.0 ± 0% ~ (all equal) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 43.0 ± 0% 43.0 ± 0% ~ (all equal) _directGzipHead-2 43.0 ± 0% 43.0 ± 0% ~ (all equal) _noDirectGzip-2 50.2 ± 4% 50.6 ± 3% ~ (p=1.000 n=5+5) _directGzip_decode-2 501 ± 0% 500 ± 0% ~ (p=0.095 n=4+5) _noDirectGzip_decode-2 51.0 ± 0% 51.0 ± 0% ~ (all equal) _jsonBody-2 128 ± 0% 204 ± 0% +59.38% (p=0.008 n=5+5) _jsonBodyValidation-2 184 ± 0% 243 ± 0% +32.07% (p=0.008 n=5+5) _outputHeaders-2 37.0 ± 0% 37.0 ± 0% ~ (all equal) _requestResponseMapping-2 124 ± 0% 118 ± 0% -4.84% (p=0.008 n=5+5) _validation-2 153 ± 0% 192 ± 0% +25.49% (p=0.008 n=5+5) _noValidation-2 153 ± 0% 192 ± 0% +25.49% (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% 116 ± 0% +16.00% (p=0.029 n=4+4) ```
vearutop commented 2 years ago

Maybe later.