MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / singleTest

Function singleTest

tools/load-test.js:271–279  ·  view source on GitHub ↗
(clients, iterations)

Source from the content-addressed store, hash-verified

269}
270
271async function singleTest(clients, iterations) {
272 const clientArray = [];
273 for (let i = 0; i < clients; i++) {
274 clientArray.push(singleClientTest(iterations, i, clients));
275 }
276 const clientResults = await Promise.all(clientArray);
277 const aggResults = aggregate(clientResults);
278 return objectStats(aggResults);
279}
280
281async function main() {
282 try {

Callers 1

mainFunction · 0.85

Calls 3

singleClientTestFunction · 0.85
aggregateFunction · 0.85
objectStatsFunction · 0.85

Tested by

no test coverage detected