vearutop / plt

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

Customize dynamic requests #23

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 (+2) 1901 (+110) 1497 (+75) 58 (+12) 346 (+23) 228 (+7) 50.5K (+2.5K)
Markdown 1 241 (+13) 192 (+10) 0 49 (+3) 0 9K (+545B)
github-actions[bot] commented 2 years ago

Go API Changes

# github.com/vearutop/plt/curl
## incompatible changes
AddCommand: changed from func(*github.com/vearutop/plt/loadgen.Flags) to func(*github.com/vearutop/plt/loadgen.Flags, ...func(lf *github.com/vearutop/plt/loadgen.Flags, f *github.com/vearutop/plt/nethttp.Flags, j github.com/vearutop/plt/loadgen.JobProducer))

# github.com/vearutop/plt/loadgen
## compatible changes
(*Flags).Register: added

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

Unit Test Coverage

total: (statements) 55.5%

Coverage diff with base branch ```diff 6a7 > github.com/vearutop/plt/loadgen/app.go Register 0.0% 8c9,18 < github.com/vearutop/plt/loadgen/run.go Run 66.3% --- > github.com/vearutop/plt/loadgen/run.go Run 69.4% > github.com/vearutop/plt/loadgen/run.go newRunner 66.7% > github.com/vearutop/plt/loadgen/run.go report 83.3% > github.com/vearutop/plt/loadgen/run.go captureLiveUI 21.4% > github.com/vearutop/plt/loadgen/run.go increaseConcurrency 0.0% > github.com/vearutop/plt/loadgen/run.go decreaseConcurrency 0.0% > github.com/vearutop/plt/loadgen/run.go getRateLimit 0.0% > github.com/vearutop/plt/loadgen/run.go refreshRateLimiter 0.0% > github.com/vearutop/plt/loadgen/run.go increaseRateLimit 0.0% > github.com/vearutop/plt/loadgen/run.go decreaseRateLimit 0.0% 24c34 < total: (statements) 55.7% --- > total: (statements) 55.5% ```
codecov-commenter commented 2 years ago

Codecov Report

Merging #23 (b33e211) into master (5bdf09b) will increase coverage by 5.23%. The diff coverage is 25.97%.

@@            Coverage Diff             @@
##           master      #23      +/-   ##
==========================================
+ Coverage   48.19%   53.42%   +5.23%     
==========================================
  Files           6        7       +1     
  Lines         581      496      -85     
==========================================
- Hits          280      265      -15     
+ Misses        258      197      -61     
+ Partials       43       34       -9     
Flag Coverage Δ
unittests 53.42% <25.97%> (+5.23%) :arrow_up:

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

Impacted Files Coverage Δ
loadgen/app.go 0.00% <0.00%> (ø)
loadgen/flags.go 0.00% <ø> (ø)
plt.go 0.00% <0.00%> (ø)
loadgen/run.go 24.67% <31.74%> (+2.40%) :arrow_up:

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 5bdf09b...b33e211. 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/vearutop/plt/fasthttp goos:linux goarch:amd64 JobProducer_Job-2 19.7µs ± 5% 20.0µs ± 3% ~ (p=0.421 n=5+5) pkg:github.com/vearutop/plt/nethttp goos:linux goarch:amd64 JobProducer_Job-2 1.00ms ± 0% 1.00ms ± 0% ~ (p=0.095 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.85kB ± 0% 1.84kB ± 0% -0.78% (p=0.008 n=5+5) pkg:github.com/vearutop/plt/nethttp goos:linux goarch:amd64 JobProducer_Job-2 5.93kB ± 0% 5.91kB ± 0% ~ (p=0.095 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 20.0µs ± 3% 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.84kB ± 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% ```