Load Testing · Middle · Question 14 of 76

Why load a big CSV of users with SharedArray?

Show the answer

Correct answer: The data is loaded once and shared, instead of a copy in every VU

Explanation

Each VU is a separate JS runtime. A normal array is copied into each of them, which with 1000 VUs can use gigabytes of memory.

Further reading

Problem with a question

Load Testing · Middle · question 14

Test yourself

Take the Load Testing · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz