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

Deprecate resttest package, upgrade dependencies #55

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 6218 (-850) 4518 (-612) 414 (-58) 1286 (-180) 703 (-197) 151.6K (-18.4K)
Go (test) 41 4050 3105 126 819 111 113.2K (-56B)
YAML 10 641 (+2) 572 (+2) 41 28 0 19.9K (+44B)
github-actions[bot] commented 2 years ago

Unit Test Coverage

total: (statements) 82.5%

Coverage diff with base branch ```diff 139,176c139,140 < github.com/swaggest/rest/resttest/client.go NewClient 100.0% < github.com/swaggest/rest/resttest/client.go SetBaseURL 66.7% < github.com/swaggest/rest/resttest/client.go Reset 100.0% < github.com/swaggest/rest/resttest/client.go WithMethod 100.0% < github.com/swaggest/rest/resttest/client.go WithPath 0.0% < github.com/swaggest/rest/resttest/client.go WithURI 100.0% < github.com/swaggest/rest/resttest/client.go WithBody 100.0% < github.com/swaggest/rest/resttest/client.go WithContentType 100.0% < github.com/swaggest/rest/resttest/client.go WithHeader 100.0% < github.com/swaggest/rest/resttest/client.go WithCookie 100.0% < github.com/swaggest/rest/resttest/client.go do 81.1% < github.com/swaggest/rest/resttest/client.go checkResponses 76.2% < github.com/swaggest/rest/resttest/client.go doOnce 95.7% < github.com/swaggest/rest/resttest/client.go ExpectResponseStatus 80.0% < github.com/swaggest/rest/resttest/client.go ExpectResponseHeader 40.0% < github.com/swaggest/rest/resttest/client.go CheckUnexpectedOtherResponses 66.7% < github.com/swaggest/rest/resttest/client.go ExpectNoOtherResponses 50.0% < github.com/swaggest/rest/resttest/client.go ExpectOtherResponsesStatus 57.1% < github.com/swaggest/rest/resttest/client.go ExpectOtherResponsesHeader 57.1% < github.com/swaggest/rest/resttest/client.go assertResponseCode 100.0% < github.com/swaggest/rest/resttest/client.go assertResponseHeader 71.4% < github.com/swaggest/rest/resttest/client.go ExpectResponseBody 80.0% < github.com/swaggest/rest/resttest/client.go ExpectOtherResponsesBody 50.0% < github.com/swaggest/rest/resttest/client.go checkBody 57.1% < github.com/swaggest/rest/resttest/client.go Concurrently 75.0% < github.com/swaggest/rest/resttest/server.go NewServerMock 100.0% < github.com/swaggest/rest/resttest/server.go Expect 100.0% < github.com/swaggest/rest/resttest/server.go ExpectAsync 100.0% < github.com/swaggest/rest/resttest/server.go Close 100.0% < github.com/swaggest/rest/resttest/server.go prepareBody 80.0% < github.com/swaggest/rest/resttest/server.go writeResponse 93.3% < github.com/swaggest/rest/resttest/server.go checkAsync 68.8% < github.com/swaggest/rest/resttest/server.go ServeHTTP 80.8% < github.com/swaggest/rest/resttest/server.go checkBody 83.3% < github.com/swaggest/rest/resttest/server.go checkRequest 84.2% < github.com/swaggest/rest/resttest/server.go checkFail 66.7% < github.com/swaggest/rest/resttest/server.go ResetExpectations 100.0% < github.com/swaggest/rest/resttest/server.go ExpectationsWereMet 83.3% --- > github.com/swaggest/rest/resttest/client.go NewClient 0.0% > github.com/swaggest/rest/resttest/server.go NewServerMock 0.0% 185c149 < total: (statements) 81.8% --- > total: (statements) 82.5% ```
github-actions[bot] commented 2 years ago

Go API Changes

# github.com/swaggest/rest/resttest
## incompatible changes
NewServerMock: changed from func() (*ServerMock, string) to func() (*github.com/bool64/httpmock.Server, string)
ServerMock: changed from ServerMock to github.com/bool64/httpmock.Server

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

Codecov Report

Merging #55 (9cde867) into master (144157d) will increase coverage by 1.96%. The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #55      +/-   ##
==========================================
+ Coverage   74.05%   76.02%   +1.96%     
==========================================
  Files          26       26              
  Lines        1611     1272     -339     
==========================================
- Hits         1193      967     -226     
+ Misses        261      190      -71     
+ Partials      157      115      -42     
Flag Coverage Δ
unittests 76.02% <0.00%> (+1.96%) :arrow_up:

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

Impacted Files Coverage Δ
resttest/client.go 0.00% <0.00%> (-64.18%) :arrow_down:
resttest/server.go 0.00% <0.00%> (-69.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...9cde867. 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.43µs ± 1% 1.52µs ± 3% +6.34% (p=0.016 n=4+5) pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 765ns ± 1% 772ns ± 4% ~ (p=0.841 n=5+5) DecoderFunc_Decode-2 2.29µs ± 4% 2.18µs ± 4% -4.84% (p=0.008 n=5+5) Decoder_Decode_json-2 25.5µs ± 3% 23.5µs ± 4% -7.75% (p=0.008 n=5+5) Decoder_Decode_queryObject-2 5.36µs ± 3% 5.28µs ± 9% ~ (p=0.310 n=5+5) Decoder_Decode_jsonParam-2 1.98µs ± 5% 1.93µs ± 2% ~ (p=0.310 n=5+5) DecoderFactory_SetDecoderFunc-2 1.87µs ± 1% 1.83µs ± 3% ~ (p=0.087 n=5+5) pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 12.7µs ± 3% 12.9µs ± 2% ~ (p=0.222 n=5+5) Middleware_control-2 3.56µs ± 4% 3.56µs ± 3% ~ (p=1.000 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.17kB ± 5% 1.14kB ± 1% ~ (p=0.151 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.52µs ± 3% pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 772ns ± 4% DecoderFunc_Decode-2 2.18µs ± 4% Decoder_Decode_json-2 23.5µs ± 4% Decoder_Decode_queryObject-2 5.28µs ± 9% Decoder_Decode_jsonParam-2 1.93µs ± 2% DecoderFactory_SetDecoderFunc-2 1.83µs ± 3% pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 12.9µs ± 2% Middleware_control-2 3.56µ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.14kB ± 1% 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 38.0µs ± 6% 36.8µs ± 1% ~ (p=0.222 n=5+5) _directGzipHead-2 37.0µs ± 7% 38.1µs ±14% ~ (p=0.548 n=5+5) _noDirectGzip-2 174µs ± 1% 173µs ± 1% ~ (p=0.690 n=5+5) _directGzip_decode-2 545µs ± 2% 547µs ± 3% ~ (p=0.548 n=5+5) _noDirectGzip_decode-2 172µs ± 0% 174µs ± 1% ~ (p=0.151 n=5+5) _jsonBody-2 63.3µs ± 3% 64.5µs ± 1% ~ (p=0.095 n=5+5) _jsonBodyValidation-2 72.3µs ± 2% 72.4µs ± 2% ~ (p=1.000 n=5+5) _outputHeaders-2 35.5µs ± 1% 36.2µs ± 2% ~ (p=0.056 n=5+5) _requestResponseMapping-2 60.0µs ± 2% 62.9µs ± 1% +4.86% (p=0.008 n=5+5) _validation-2 66.5µs ± 2% 67.7µs ± 1% ~ (p=0.222 n=5+5) _noValidation-2 46.3µs ± 2% 46.7µs ± 1% ~ (p=0.310 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 37.6µs ± 2% 37.9µs ± 2% ~ (p=0.310 n=5+5) _directGzipHead-2 39.2µs ±13% 37.3µs ± 1% ~ (p=0.056 n=5+5) _noDirectGzip-2 178µs ± 6% 176µs ± 4% ~ (p=0.548 n=5+5) _directGzip_decode-2 543µs ± 2% 571µs ± 4% +5.05% (p=0.016 n=5+5) _noDirectGzip_decode-2 173µs ± 1% 175µs ± 1% ~ (p=0.056 n=5+5) _jsonBody-2 65.8µs ± 1% 68.6µs ± 2% +4.36% (p=0.008 n=5+5) _jsonBodyValidation-2 72.3µs ± 3% 75.6µs ± 5% +4.62% (p=0.016 n=5+5) _outputHeaders-2 38.7µs ±13% 37.6µs ± 3% ~ (p=1.000 n=5+5) _requestResponseMapping-2 63.6µs ± 8% 65.2µs ± 1% ~ (p=0.190 n=5+4) _validation-2 67.2µs ± 1% 71.3µs ± 1% +5.98% (p=0.008 n=5+5) _noValidation-2 67.2µs ± 2% 71.1µs ± 2% +5.70% (p=0.008 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 43.5µs ± 2% 46.3µs ±14% +6.57% (p=0.008 n=5+5) _ok-2 46.0µs ±15% 46.4µs ± 1% ~ (p=0.151 n=5+5) _invalidBody-2 61.0µs ± 3% 62.7µs ± 1% +2.85% (p=0.016 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% ~ (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) _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 26.3k ± 6% 27.2k ± 1% ~ (p=0.206 n=5+5) _directGzipHead-2 27.0k ± 7% 26.4k ±12% ~ (p=0.548 n=5+5) _noDirectGzip-2 5.76k ± 1% 5.78k ± 1% ~ (p=0.690 n=5+5) _directGzip_decode-2 1.84k ± 2% 1.83k ± 3% ~ (p=0.548 n=5+5) _noDirectGzip_decode-2 5.81k ± 0% 5.76k ± 1% ~ (p=0.151 n=5+5) _jsonBody-2 15.8k ± 3% 15.5k ± 1% ~ (p=0.095 n=5+5) _jsonBodyValidation-2 13.8k ± 2% 13.8k ± 2% ~ (p=1.000 n=5+5) _outputHeaders-2 28.2k ± 1% 27.7k ± 2% ~ (p=0.056 n=5+5) _requestResponseMapping-2 16.7k ± 2% 15.9k ± 1% -4.67% (p=0.008 n=5+5) _validation-2 15.1k ± 2% 14.8k ± 1% ~ (p=0.222 n=5+5) _noValidation-2 21.6k ± 2% 21.4k ± 1% ~ (p=0.421 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 26.6k ± 2% 26.4k ± 2% ~ (p=0.310 n=5+5) _directGzipHead-2 25.6k ±12% 26.8k ± 1% ~ (p=0.056 n=5+5) _noDirectGzip-2 5.61k ± 6% 5.68k ± 4% ~ (p=0.548 n=5+5) _directGzip_decode-2 1.84k ± 2% 1.75k ± 4% -4.75% (p=0.016 n=5+5) _noDirectGzip_decode-2 5.78k ± 1% 5.71k ± 1% ~ (p=0.056 n=5+5) _jsonBody-2 15.2k ± 1% 14.6k ± 2% -4.17% (p=0.008 n=5+5) _jsonBodyValidation-2 13.8k ± 3% 13.2k ± 5% -4.38% (p=0.016 n=5+5) _outputHeaders-2 26.0k ±12% 26.6k ± 3% ~ (p=1.000 n=5+5) _requestResponseMapping-2 15.7k ± 8% 15.3k ± 1% ~ (p=0.190 n=5+4) _validation-2 14.9k ± 1% 14.0k ± 1% -5.65% (p=0.008 n=5+5) _noValidation-2 14.9k ± 2% 14.1k ± 2% -5.38% (p=0.008 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 23.0k ± 2% 21.7k ±12% -5.76% (p=0.008 n=5+5) _ok-2 21.8k ±13% 21.6k ± 1% ~ (p=0.151 n=5+5) _invalidBody-2 16.4k ± 3% 15.9k ± 1% -2.80% (p=0.016 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.865 n=5+5) _directGzipHead-2 3.93kB ± 0% 3.93kB ± 0% ~ (p=1.000 n=5+5) _noDirectGzip-2 6.61kB ±15% 6.68kB ±17% ~ (p=1.000 n=5+5) _directGzip_decode-2 402kB ± 0% 402kB ± 0% ~ (p=0.548 n=5+5) _noDirectGzip_decode-2 5.32kB ± 5% 5.32kB ± 9% ~ (p=0.841 n=5+5) _jsonBody-2 13.2kB ± 0% 13.2kB ± 0% ~ (p=0.952 n=5+5) _jsonBodyValidation-2 19.0kB ± 0% 19.0kB ± 0% ~ (p=0.310 n=5+5) _outputHeaders-2 3.71kB ± 0% 3.72kB ± 0% ~ (p=0.111 n=5+4) _requestResponseMapping-2 16.7kB ± 0% 16.7kB ± 0% ~ (p=0.762 n=5+5) _validation-2 16.6kB ± 0% 16.6kB ± 0% ~ (p=1.000 n=5+5) _noValidation-2 6.12kB ± 0% 6.12kB ± 0% ~ (p=0.825 n=5+4) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 3.95kB ± 0% 3.95kB ± 0% ~ (p=0.802 n=5+5) _directGzipHead-2 3.94kB ± 0% 3.94kB ± 0% ~ (p=0.802 n=5+5) _noDirectGzip-2 6.67kB ±19% 6.65kB ±27% ~ (p=0.841 n=5+5) _directGzip_decode-2 402kB ± 0% 402kB ± 0% ~ (p=0.651 n=5+5) _noDirectGzip_decode-2 5.37kB ± 4% 5.51kB ± 5% ~ (p=0.095 n=5+5) _jsonBody-2 13.3kB ± 0% 13.3kB ± 0% ~ (p=0.111 n=5+5) _jsonBodyValidation-2 19.0kB ± 0% 19.0kB ± 0% ~ (p=0.738 n=5+5) _outputHeaders-2 3.71kB ± 0% 3.72kB ± 0% ~ (p=0.198 n=5+5) _requestResponseMapping-2 16.7kB ± 0% 16.7kB ± 0% +0.06% (p=0.016 n=5+4) _validation-2 16.6kB ± 0% 16.6kB ± 0% ~ (p=0.905 n=5+5) _noValidation-2 16.6kB ± 0% 16.6kB ± 0% ~ (p=0.071 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 4.88kB ± 0% 4.89kB ± 0% +0.07% (p=0.016 n=5+5) _ok-2 4.79kB ± 0% 4.79kB ± 0% ~ (p=1.000 n=4+4) _invalidBody-2 8.77kB ± 4% 8.78kB ± 4% ~ (p=0.730 n=5+5) 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 50.0 ± 4% 50.0 ± 4% ~ (p=1.000 n=5+5) _directGzip_decode-2 500 ± 0% 500 ± 0% ~ (p=1.000 n=5+5) _noDirectGzip_decode-2 50.0 ± 0% 50.0 ± 0% ~ (all equal) _jsonBody-2 127 ± 0% 127 ± 0% ~ (all equal) _jsonBodyValidation-2 183 ± 0% 183 ± 0% ~ (all equal) _outputHeaders-2 37.0 ± 0% 37.0 ± 0% ~ (all equal) _requestResponseMapping-2 123 ± 0% 123 ± 0% ~ (all equal) _validation-2 152 ± 0% 152 ± 0% ~ (all equal) _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 51.0 ± 4% 51.0 ± 4% ~ (p=1.000 n=5+5) _directGzip_decode-2 501 ± 0% 501 ± 0% ~ (all equal) _noDirectGzip_decode-2 51.0 ± 0% 51.0 ± 0% ~ (all equal) _jsonBody-2 128 ± 0% 128 ± 0% ~ (all equal) _jsonBodyValidation-2 184 ± 0% 184 ± 0% ~ (all equal) _outputHeaders-2 37.0 ± 0% 37.0 ± 0% ~ (all equal) _requestResponseMapping-2 124 ± 0% 124 ± 0% ~ (all equal) _validation-2 153 ± 0% 153 ± 0% ~ (all equal) _noValidation-2 153 ± 0% 153 ± 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% 101 ± 2% ~ (p=0.556 n=4+5) ```