vearutop / plt

⏱️ Pocket load tester
MIT License
50 stars 4 forks source link

Add a flag to save downloaded S3 resource to a file #24

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 14 1931 (+22) 1520 (+17) 58 353 (+5) 242 (+8) 50.9K (+407B)
github-actions[bot] commented 2 years ago

Unit Test Coverage

total: (statements) 55.0%

Coverage diff with base branch ```diff ```
codecov-commenter commented 2 years ago

Codecov Report

Merging #24 (563ec17) into master (41d0f59) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #24   +/-   ##
=======================================
  Coverage   48.07%   48.07%           
=======================================
  Files           7        7           
  Lines         597      597           
=======================================
  Hits          287      287           
  Misses        268      268           
  Partials       42       42           
Flag Coverage Δ
unittests 48.07% <ø> (ø)

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


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 41d0f59...563ec17. Read the comment docs.

github-actions[bot] commented 2 years ago

Go API Changes

# github.com/vearutop/plt/s3
## compatible changes
Flags.Save: added

# summary
Inferred base version: v0.3.2
Suggested version: v0.4.0
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/vearutop/plt/fasthttp goos:linux goarch:amd64 JobProducer_Job-2 20.2µs ± 9% 19.8µs ± 1% ~ (p=1.000 n=5+5) pkg:github.com/vearutop/plt/nethttp goos:linux goarch:amd64 JobProducer_Job-2 1.00ms ± 0% 1.00ms ± 0% ~ (p=0.548 n=5+5) name old alloc/op new alloc/op delta pkg:github.com/vearutop/plt/fasthttp goos:linux goarch:amd64 JobProducer_Job-2 1.83kB ± 0% 1.83kB ± 0% ~ (p=1.000 n=5+5) pkg:github.com/vearutop/plt/nethttp goos:linux goarch:amd64 JobProducer_Job-2 5.90kB ± 0% 5.91kB ± 0% ~ (p=0.524 n=5+5) name old allocs/op new allocs/op delta pkg:github.com/vearutop/plt/fasthttp goos:linux goarch:amd64 JobProducer_Job-2 26.0 ± 0% 26.0 ± 0% ~ (all equal) pkg:github.com/vearutop/plt/nethttp goos:linux goarch:amd64 JobProducer_Job-2 87.0 ± 0% 87.0 ± 0% ~ (all equal) ```
Benchmark result ``` name time/op pkg:github.com/vearutop/plt/fasthttp goos:linux goarch:amd64 JobProducer_Job-2 19.8µs ± 1% pkg:github.com/vearutop/plt/nethttp goos:linux goarch:amd64 JobProducer_Job-2 1.00ms ± 0% name alloc/op pkg:github.com/vearutop/plt/fasthttp goos:linux goarch:amd64 JobProducer_Job-2 1.83kB ± 0% pkg:github.com/vearutop/plt/nethttp goos:linux goarch:amd64 JobProducer_Job-2 5.91kB ± 0% name allocs/op pkg:github.com/vearutop/plt/fasthttp goos:linux goarch:amd64 JobProducer_Job-2 26.0 ± 0% pkg:github.com/vearutop/plt/nethttp goos:linux goarch:amd64 JobProducer_Job-2 87.0 ± 0% ```