myzhan / locust4j

Locust4j is a load generator for locust, written in Java.
MIT License
81 stars 30 forks source link

Ordered task set #4

Closed nejckorasa closed 3 years ago

nejckorasa commented 5 years ago

Adds ordered task set.

The idea is that task are executed in order.

The downside is that by default weights of individual tasks inside the set are completely ignored. For that reason distributeWeights() is added that creates ordered weighing distribution of tasks. Weights of individual tasks then represent the exact number of executions for that task in each loop.

codecov-io commented 5 years ago

Codecov Report

Merging #4 into master will increase coverage by 0.17%. The diff coverage is 74.35%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #4      +/-   ##
==========================================
+ Coverage   74.85%   75.02%   +0.17%     
==========================================
  Files          20       21       +1     
  Lines         843      881      +38     
  Branches       81       89       +8     
==========================================
+ Hits          631      661      +30     
- Misses        185      191       +6     
- Partials       27       29       +2
Impacted Files Coverage Δ
.../java/com/github/myzhan/locust4j/AbstractTask.java 11.11% <0%> (-0.66%) :arrow_down:
...ithub/myzhan/locust4j/taskset/AbstractTaskSet.java 75% <0%> (-25%) :arrow_down:
...c/main/java/com/github/myzhan/locust4j/Locust.java 47.5% <0%> (ø) :arrow_up:
...github/myzhan/locust4j/taskset/OrderedTaskSet.java 80.55% <80.55%> (ø)
...n/java/com/github/myzhan/locust4j/stats/Stats.java 95.27% <0%> (+0.78%) :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 57a177f...1ca09ec. Read the comment docs.