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 deps and CI #151

Closed vearutop closed 1 year ago

github-actions[bot] commented 1 year ago

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go 106 7667 5577 503 1587 943 185.9K (+18B)
YAML 10 731 626 46 59 0 22.9K (-1B)
github-actions[bot] commented 1 year ago

Go API Changes

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

Unit Test Coverage

total: (statements) 83.4%

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

Codecov Report

Merging #151 (0c707ce) into master (f130620) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #151   +/-   ##
=======================================
  Coverage   77.68%   77.68%           
=======================================
  Files          28       28           
  Lines        1600     1600           
=======================================
  Hits         1243     1243           
  Misses        235      235           
  Partials      122      122           
Flag Coverage Δ
unittests 77.68% <ø> (ø)

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

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

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.63µs ± 3% 1.73µs ± 3% +6.72% (p=0.004 n=6+6) pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 845ns ± 5% 850ns ± 1% ~ (p=0.394 n=6+6) DecoderFunc_Decode-2 2.42µs ± 2% 2.39µs ± 1% ~ (p=0.065 n=6+6) Decoder_Decode_json-2 27.9µs ± 2% 28.9µs ± 3% +3.42% (p=0.015 n=6+6) Decoder_Decode_queryObject-2 5.73µs ± 1% 5.88µs ± 1% +2.76% (p=0.004 n=5+6) Decoder_Decode_jsonParam-2 2.25µs ± 3% 2.29µs ± 2% ~ (p=0.180 n=6+6) DecoderFactory_SetDecoderFunc-2 2.04µs ± 3% 2.08µs ± 3% ~ (p=0.221 n=6+6) pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 14.0µs ± 2% 14.2µs ± 1% +1.54% (p=0.026 n=6+6) Middleware_control-2 4.18µs ± 3% 4.38µs ± 5% +4.73% (p=0.009 n=6+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.16kB ± 5% ~ (p=0.513 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.73µs ± 3% pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 850ns ± 1% DecoderFunc_Decode-2 2.39µs ± 1% Decoder_Decode_json-2 28.9µs ± 3% Decoder_Decode_queryObject-2 5.88µs ± 1% Decoder_Decode_jsonParam-2 2.29µs ± 2% DecoderFactory_SetDecoderFunc-2 2.08µs ± 3% pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 14.2µs ± 1% Middleware_control-2 4.38µs ± 5% 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 ± 5% 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 24.5µs ± 6% 23.9µs ± 2% ~ (p=0.286 n=5+4) _directGzipHead-2 24.1µs ± 4% 24.0µs ± 5% ~ (p=1.000 n=5+5) _noDirectGzip-2 125µs ± 1% 126µs ± 2% ~ (p=0.222 n=5+5) _directGzip_decode-2 469µs ± 2% 471µs ± 2% ~ (p=0.548 n=5+5) _noDirectGzip_decode-2 128µs ± 1% 129µs ± 1% ~ (p=0.095 n=5+5) _jsonBody-2 48.0µs ± 2% 48.9µs ± 1% ~ (p=0.095 n=5+5) _jsonBodyValidation-2 57.3µs ± 1% 58.5µs ± 2% +2.20% (p=0.008 n=5+5) _outputHeaders-2 24.9µs ± 3% 24.9µs ± 3% ~ (p=1.000 n=5+5) _requestResponseMapping-2 49.4µs ± 2% 49.9µs ± 1% ~ (p=0.310 n=5+5) _validation-2 53.4µs ± 2% 52.9µs ± 1% ~ (p=0.310 n=5+5) _noValidation-2 36.8µs ± 1% 37.3µs ± 2% ~ (p=0.095 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 25.5µs ±13% 25.5µs ±14% ~ (p=1.000 n=5+5) _directGzipHead-2 24.8µs ± 3% 24.9µs ± 1% ~ (p=0.151 n=5+5) _noDirectGzip-2 134µs ± 1% 135µs ± 1% ~ (p=0.841 n=5+5) _directGzip_decode-2 492µs ± 4% 494µs ± 1% ~ (p=0.548 n=5+5) _noDirectGzip_decode-2 136µs ± 1% 136µs ± 1% ~ (p=0.421 n=5+5) _htmlResponse-2 42.9µs ± 8% 42.1µs ± 1% ~ (p=0.690 n=5+5) _jsonBodyManual-2 29.7µs ± 2% 29.9µs ± 1% ~ (p=0.310 n=5+5) _jsonBody-2 45.1µs ± 5% 44.2µs ± 1% ~ (p=0.548 n=5+5) _jsonBodyValidation-2 59.6µs ± 2% 59.2µs ± 2% ~ (p=0.421 n=5+5) _outputHeaders-2 42.5µs ± 1% 42.3µs ± 2% ~ (p=0.841 n=5+5) _requestResponseMapping-2 51.2µs ± 2% 50.7µs ± 1% ~ (p=0.310 n=5+5) _validation-2 56.2µs ± 7% 54.0µs ± 2% ~ (p=0.056 n=5+5) _noValidation-2 39.4µs ± 2% 38.3µs ± 2% -2.70% (p=0.016 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 27.0µs ± 1% 26.2µs ± 1% -2.78% (p=0.016 n=4+5) _ok-2 27.1µs ± 2% 27.3µs ±13% ~ (p=0.310 n=5+5) _invalidBody-2 40.3µs ± 2% 40.0µs ± 2% ~ (p=0.095 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.16 ± 5% 1.16 ± 5% ~ (p=0.802 n=5+5) _directGzipHead-2 1.13 ± 9% 1.16 ± 5% ~ (p=0.548 n=5+5) _noDirectGzip-2 6.04 ± 4% 6.16 ± 3% ~ (p=0.222 n=5+5) _directGzip_decode-2 18.1 ± 4% 17.6 ±10% ~ (p=0.310 n=5+5) _noDirectGzip_decode-2 6.24 ± 3% 6.26 ± 5% ~ (p=0.690 n=5+5) _jsonBody-2 2.16 ± 5% 2.22 ± 4% ~ (p=0.222 n=5+5) _jsonBodyValidation-2 2.69 ± 7% 2.77 ± 7% ~ (p=0.389 n=5+5) _outputHeaders-2 1.13 ± 5% 1.13 ± 2% ~ (p=0.889 n=5+5) _requestResponseMapping-2 2.18 ± 9% 2.14 ± 3% ~ (p=0.690 n=5+5) _validation-2 2.48 ± 6% 2.44 ± 5% ~ (p=0.381 n=5+5) _noValidation-2 1.62 ± 4% 1.67 ± 8% ~ (p=0.460 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 1.16 ± 2% 1.17 ± 2% ~ (p=0.579 n=5+5) _directGzipHead-2 1.15 ± 4% 1.19 ± 7% ~ (p=0.690 n=5+5) _noDirectGzip-2 6.55 ± 5% 6.51 ± 3% ~ (p=0.841 n=5+5) _directGzip_decode-2 18.6 ± 8% 18.6 ± 9% ~ (p=1.000 n=5+5) _noDirectGzip_decode-2 6.58 ± 4% 6.76 ± 4% ~ (p=0.095 n=5+5) _htmlResponse-2 1.91 ± 2% 1.93 ± 6% ~ (p=0.690 n=5+5) _jsonBodyManual-2 1.36 ± 3% 1.41 ± 6% ~ (p=0.167 n=5+5) _jsonBody-2 2.03 ± 6% 2.01 ± 6% ~ (p=0.548 n=5+5) _jsonBodyValidation-2 2.70 ± 7% 2.70 ± 5% ~ (p=1.000 n=5+5) _outputHeaders-2 1.81 ±11% 1.83 ± 4% ~ (p=0.310 n=5+5) _requestResponseMapping-2 2.19 ± 6% 2.23 ± 6% ~ (p=0.421 n=5+5) _validation-2 2.39 ± 8% 2.38 ± 6% ~ (p=1.000 n=5+5) _noValidation-2 1.74 ± 6% 1.68 ± 5% ~ (p=0.246 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 1.33 ± 6% 1.26 ± 3% -5.45% (p=0.048 n=5+5) _ok-2 1.27 ±10% 1.34 ± 3% ~ (p=0.151 n=5+5) _invalidBody-2 1.75 ± 5% 1.71 ± 6% ~ (p=0.548 n=5+5) name old 90%:ms new 90%:ms delta pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64 _directGzip-2 2.04 ± 7% 2.09 ± 5% ~ (p=0.159 n=5+5) _directGzipHead-2 2.02 ± 7% 2.02 ±11% ~ (p=1.000 n=5+5) _noDirectGzip-2 11.0 ± 5% 11.0 ± 4% ~ (p=0.746 n=5+5) _directGzip_decode-2 39.8 ± 5% 39.0 ± 3% ~ (p=0.310 n=5+5) _noDirectGzip_decode-2 11.1 ± 4% 11.3 ± 5% ~ (p=0.548 n=5+5) _jsonBody-2 4.23 ± 4% 4.46 ± 1% +5.44% (p=0.016 n=5+5) _jsonBodyValidation-2 5.05 ± 5% 5.02 ± 7% ~ (p=0.690 n=5+5) _outputHeaders-2 2.06 ± 4% 2.12 ± 4% ~ (p=0.310 n=5+5) _requestResponseMapping-2 4.43 ± 6% 4.49 ± 3% ~ (p=1.000 n=5+5) _validation-2 4.71 ± 2% 4.73 ± 7% ~ (p=1.000 n=5+5) _noValidation-2 3.48 ± 5% 3.53 ± 5% ~ (p=0.889 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 2.11 ± 8% 2.12 ± 9% ~ (p=1.000 n=5+5) _directGzipHead-2 2.12 ± 6% 2.07 ± 1% ~ (p=0.151 n=5+5) _noDirectGzip-2 11.3 ± 3% 11.5 ± 2% ~ (p=0.056 n=5+5) _directGzip_decode-2 42.1 ± 4% 40.7 ± 7% ~ (p=0.095 n=5+5) _noDirectGzip_decode-2 11.7 ± 2% 11.7 ± 3% ~ (p=1.000 n=5+5) _htmlResponse-2 3.99 ± 3% 3.79 ± 3% -4.95% (p=0.032 n=5+5) _jsonBodyManual-2 2.63 ± 6% 2.54 ± 4% ~ (p=0.151 n=5+5) _jsonBody-2 4.26 ± 3% 4.18 ± 6% ~ (p=0.548 n=5+5) _jsonBodyValidation-2 5.26 ± 3% 5.18 ± 4% ~ (p=0.421 n=5+5) _outputHeaders-2 4.03 ± 3% 4.06 ± 7% ~ (p=1.000 n=5+5) _requestResponseMapping-2 4.82 ± 6% 4.56 ± 4% -5.38% (p=0.016 n=5+5) _validation-2 5.13 ± 8% 4.92 ± 8% ~ (p=0.310 n=5+5) _noValidation-2 3.86 ± 3% 3.76 ± 3% ~ (p=0.310 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 2.30 ± 2% 2.23 ± 4% ~ (p=0.056 n=5+5) _ok-2 2.34 ± 6% 2.35 ±14% ~ (p=0.841 n=5+5) _invalidBody-2 3.89 ± 8% 3.96 ± 5% ~ (p=0.548 n=5+5) name old 99%:ms new 99%:ms delta pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64 _directGzip-2 3.95 ±47% 3.50 ± 7% ~ (p=0.905 n=5+4) _directGzipHead-2 3.96 ±37% 3.67 ±26% ~ (p=0.841 n=5+5) _noDirectGzip-2 14.4 ± 8% 14.7 ± 7% ~ (p=0.548 n=5+5) _directGzip_decode-2 65.2 ± 6% 64.7 ± 8% ~ (p=1.000 n=5+5) _noDirectGzip_decode-2 15.0 ± 7% 15.7 ± 4% ~ (p=0.151 n=5+5) _jsonBody-2 6.69 ± 8% 7.03 ±16% ~ (p=0.841 n=5+5) _jsonBodyValidation-2 7.95 ± 9% 8.30 ± 8% ~ (p=0.421 n=5+5) _outputHeaders-2 4.20 ±27% 4.55 ±32% ~ (p=0.421 n=5+5) _requestResponseMapping-2 7.27 ±16% 7.92 ±18% ~ (p=0.222 n=5+5) _validation-2 7.86 ±30% 7.23 ±22% ~ (p=0.222 n=5+5) _noValidation-2 5.52 ± 4% 6.07 ± 7% +9.91% (p=0.032 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 3.54 ±10% 4.82 ±106% ~ (p=0.905 n=4+5) _directGzipHead-2 3.70 ±12% 3.70 ± 5% ~ (p=0.421 n=5+5) _noDirectGzip-2 16.0 ± 4% 15.9 ± 7% ~ (p=0.794 n=5+5) _directGzip_decode-2 70.3 ± 5% 67.9 ±15% ~ (p=0.548 n=5+5) _noDirectGzip_decode-2 16.2 ± 1% 16.1 ± 9% ~ (p=0.151 n=5+5) _htmlResponse-2 7.27 ±43% 6.08 ± 6% -16.29% (p=0.032 n=5+5) _jsonBodyManual-2 4.68 ± 9% 4.62 ± 5% ~ (p=1.000 n=5+5) _jsonBody-2 6.90 ±23% 6.28 ± 1% ~ (p=0.190 n=5+4) _jsonBodyValidation-2 8.70 ±38% 7.65 ±12% ~ (p=0.421 n=5+5) _outputHeaders-2 6.70 ±14% 6.84 ±11% ~ (p=1.000 n=5+5) _requestResponseMapping-2 7.73 ±16% 7.54 ±18% ~ (p=0.841 n=5+5) _validation-2 8.69 ±18% 7.56 ±12% ~ (p=0.095 n=5+5) _noValidation-2 6.77 ± 7% 6.53 ±12% ~ (p=0.421 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 3.77 ± 4% 3.64 ± 8% ~ (p=0.286 n=4+5) _ok-2 3.76 ± 8% 3.76 ± 3% ~ (p=0.730 n=5+4) _invalidBody-2 6.83 ±15% 7.03 ± 9% ~ (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 8.69 ±93% 8.50 ±71% ~ (p=1.000 n=5+5) _directGzipHead-2 7.51 ±40% 7.31 ±66% ~ (p=1.000 n=5+5) _noDirectGzip-2 17.8 ±12% 18.4 ±10% ~ (p=0.421 n=5+5) _directGzip_decode-2 84.9 ± 6% 84.8 ± 9% ~ (p=1.000 n=5+5) _noDirectGzip_decode-2 19.0 ±12% 20.3 ±27% ~ (p=0.690 n=5+5) _jsonBody-2 11.7 ±21% 12.6 ±31% ~ (p=0.841 n=5+5) _jsonBodyValidation-2 13.9 ±32% 14.9 ±23% ~ (p=1.000 n=5+5) _outputHeaders-2 10.1 ±56% 9.5 ±28% ~ (p=1.000 n=5+5) _requestResponseMapping-2 14.3 ±10% 14.3 ±10% ~ (p=1.000 n=5+5) _validation-2 13.6 ±22% 15.0 ±40% ~ (p=0.841 n=5+5) _noValidation-2 12.4 ±46% 13.0 ±19% ~ (p=0.690 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 9.01 ±71% 7.90 ±131% ~ (p=0.421 n=5+5) _directGzipHead-2 8.02 ±35% 8.93 ±43% ~ (p=0.548 n=5+5) _noDirectGzip-2 22.8 ±18% 21.6 ±29% ~ (p=0.690 n=5+5) _directGzip_decode-2 91.0 ±12% 89.5 ±12% ~ (p=0.841 n=5+5) _noDirectGzip_decode-2 21.1 ±11% 19.7 ± 5% ~ (p=0.556 n=5+4) _htmlResponse-2 12.9 ±60% 10.3 ±20% ~ (p=0.421 n=5+5) _jsonBodyManual-2 11.5 ±37% 9.7 ±27% ~ (p=0.167 n=5+5) _jsonBody-2 13.1 ±34% 13.3 ± 8% ~ (p=0.421 n=5+5) _jsonBodyValidation-2 13.9 ±27% 11.6 ± 8% ~ (p=0.151 n=5+5) _outputHeaders-2 11.8 ±30% 12.2 ±34% ~ (p=1.000 n=5+5) _requestResponseMapping-2 13.5 ±29% 13.4 ±18% ~ (p=0.841 n=5+5) _validation-2 17.5 ±28% 12.6 ±12% -27.99% (p=0.032 n=5+5) _noValidation-2 14.0 ±29% 10.7 ±28% ~ (p=0.056 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 8.57 ±67% 5.69 ±33% ~ (p=0.095 n=5+5) _ok-2 8.35 ±32% 9.20 ±64% ~ (p=1.000 n=5+5) _invalidBody-2 12.4 ±63% 13.1 ±38% ~ (p=0.841 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 40.8k ± 5% 40.6k ±12% ~ (p=0.690 n=5+5) _directGzipHead-2 41.5k ± 4% 41.7k ± 4% ~ (p=1.000 n=5+5) _noDirectGzip-2 8.01k ± 1% 7.94k ± 2% ~ (p=0.222 n=5+5) _directGzip_decode-2 2.13k ± 2% 2.12k ± 2% ~ (p=0.548 n=5+5) _noDirectGzip_decode-2 7.84k ± 1% 7.75k ± 1% ~ (p=0.095 n=5+5) _jsonBody-2 20.8k ± 2% 20.5k ± 1% ~ (p=0.095 n=5+5) _jsonBodyValidation-2 17.5k ± 1% 17.1k ± 2% -2.14% (p=0.008 n=5+5) _outputHeaders-2 40.2k ± 4% 40.1k ± 3% ~ (p=1.000 n=5+5) _requestResponseMapping-2 20.2k ± 2% 20.0k ± 1% ~ (p=0.222 n=5+5) _validation-2 18.7k ± 2% 18.9k ± 1% ~ (p=0.238 n=5+5) _noValidation-2 27.2k ± 1% 26.8k ± 2% ~ (p=0.095 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 39.4k ±12% 39.4k ±12% ~ (p=1.000 n=5+5) _directGzipHead-2 40.3k ± 3% 40.1k ± 1% ~ (p=0.151 n=5+5) _noDirectGzip-2 7.44k ± 1% 7.42k ± 1% ~ (p=0.841 n=5+5) _directGzip_decode-2 2.03k ± 4% 2.03k ± 1% ~ (p=0.548 n=5+5) _noDirectGzip_decode-2 7.34k ± 1% 7.36k ± 1% ~ (p=0.421 n=5+5) _htmlResponse-2 23.3k ± 8% 23.8k ± 1% ~ (p=0.690 n=5+5) _jsonBodyManual-2 33.7k ± 2% 33.4k ± 1% ~ (p=0.310 n=5+5) _jsonBody-2 22.2k ± 5% 22.6k ± 1% ~ (p=0.548 n=5+5) _jsonBodyValidation-2 16.8k ± 2% 16.9k ± 2% ~ (p=0.421 n=5+5) _outputHeaders-2 23.5k ± 1% 23.6k ± 2% ~ (p=0.841 n=5+5) _requestResponseMapping-2 19.5k ± 2% 19.7k ± 1% ~ (p=0.310 n=5+5) _validation-2 17.8k ± 7% 18.5k ± 2% ~ (p=0.056 n=5+5) _noValidation-2 25.4k ± 2% 26.1k ± 2% +2.79% (p=0.016 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 37.0k ± 1% 38.1k ± 1% +2.86% (p=0.016 n=4+5) _ok-2 36.9k ± 2% 36.7k ±11% ~ (p=0.310 n=5+5) _invalidBody-2 24.8k ± 2% 25.0k ± 2% ~ (p=0.095 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.85kB ± 0% 3.85kB ± 0% ~ (p=1.000 n=5+5) _directGzipHead-2 3.85kB ± 0% 3.84kB ± 0% ~ (p=0.135 n=5+5) _noDirectGzip-2 6.38kB ±10% 6.52kB ±23% ~ (p=1.000 n=5+5) _directGzip_decode-2 403kB ± 0% 403kB ± 0% ~ (p=0.841 n=5+5) _noDirectGzip_decode-2 5.76kB ±10% 5.67kB ± 8% ~ (p=0.421 n=5+5) _jsonBody-2 13.1kB ± 0% 13.1kB ± 0% ~ (p=0.159 n=5+5) _jsonBodyValidation-2 18.9kB ± 0% 18.9kB ± 0% ~ (p=0.857 n=5+5) _outputHeaders-2 3.56kB ± 0% 3.56kB ± 0% ~ (p=0.960 n=5+5) _requestResponseMapping-2 16.6kB ± 0% 16.6kB ± 0% ~ (p=0.635 n=5+5) _validation-2 16.5kB ± 0% 16.5kB ± 0% ~ (p=0.754 n=5+5) _noValidation-2 7.75kB ± 0% 7.75kB ± 0% ~ (p=0.738 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 3.88kB ± 0% 3.88kB ± 0% ~ (p=1.000 n=5+5) _directGzipHead-2 3.88kB ± 0% 3.88kB ± 0% ~ (p=0.905 n=5+5) _noDirectGzip-2 6.73kB ±16% 6.75kB ±17% ~ (p=1.000 n=5+5) _directGzip_decode-2 403kB ± 0% 403kB ± 0% ~ (p=1.000 n=5+5) _noDirectGzip_decode-2 6.04kB ± 6% 5.69kB ±11% ~ (p=0.056 n=5+5) _htmlResponse-2 8.02kB ± 0% 8.02kB ± 0% ~ (p=0.413 n=5+5) _jsonBodyManual-2 4.48kB ± 0% 4.48kB ± 0% ~ (p=0.905 n=5+5) _jsonBody-2 10.2kB ± 0% 10.2kB ± 0% ~ (p=0.143 n=5+5) _jsonBodyValidation-2 19.0kB ± 0% 19.0kB ± 0% ~ (p=0.889 n=5+5) _outputHeaders-2 10.4kB ± 0% 10.4kB ± 0% ~ (p=0.810 n=5+5) _requestResponseMapping-2 16.6kB ± 0% 16.6kB ± 0% ~ (p=1.000 n=5+5) _validation-2 16.5kB ± 0% 16.5kB ± 0% -0.03% (p=0.040 n=5+5) _noValidation-2 7.81kB ± 0% 7.81kB ± 0% ~ (p=0.421 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 4.63kB ± 0% 4.63kB ± 0% ~ (p=0.468 n=5+5) _ok-2 4.53kB ± 0% 4.53kB ± 0% ~ (p=0.886 n=4+4) _invalidBody-2 8.25kB ± 0% 8.24kB ± 0% ~ (p=0.686 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.6 ± 3% ~ (p=1.000 n=5+5) _directGzip_decode-2 504 ± 0% 504 ± 0% ~ (p=0.714 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.6 ± 3% 51.8 ± 3% ~ (p=1.000 n=5+5) _directGzip_decode-2 506 ± 0% 506 ± 0% ~ (p=1.000 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) ```