0

How does k6 interpret the following case: I have two requests which I run in parallel with batch() and command line switch -u 4, that is 4 users. In that case is k6 running the 2 requests per user? that is 2x4 = 8 times ? And is that one user after the other in sequential order?

microwth
  • 1,016
  • 1
  • 14
  • 27

1 Answers1

2

Your first assumption is correct, k6 will make 8 requests, but this will happen concurrently, not sequentially, since VUs are also run in parallel.

Note that it would be 8 requests if you limited the number of total iterations with -i 4, otherwise if you specified a --duration it would run as many iterations, and thus requests, as possible.

Consider posting on the k6 community forum if you need further help. (Disclaimer: I'm a k6 maintainer.)

imiric
  • 8,315
  • 4
  • 35
  • 39