Do not use generator in reader VU #118

Open
opened 2024-01-12 14:05:55 +00:00 by fyrchik · 1 comment
Owner

Even after #117 we still have a problem: generator is created in every thread.
We can share it between threads (albeit with a possible loss in perfomance -- now the returned slice must be copied, so the problem is not solved)

The problem is that there is no per-VU init stage, but maybe we can find some kludge.

Even after #117 we still have a problem: generator is created in every thread. We can share it between threads (albeit with a possible loss in perfomance -- now the returned slice must be copied, so the problem is not solved) The problem is that there is no per-VU init stage, but maybe we can find some kludge.
fyrchik added the
bug
label 2024-01-12 14:06:12 +00:00
Author
Owner

Because we do not have per-VU init stage, I see 2 options:

  1. Create generator on the first usage in each thread. Could skew results for short tests.
  2. Create an array of generators in setup and use VU id so that each VU uses its own.
Because we do not have per-VU init stage, I see 2 options: 1. Create generator on the first usage in each thread. Could skew results for short tests. 2. Create an array of generators in `setup` and use VU id so that each VU uses its own.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/xk6-frostfs#118
No description provided.