MCPcopy
hub / github.com/triggerdotdev/trigger.dev / mainLong

Function mainLong

perf/src/index.ts:160–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158}
159
160async function mainLong() {
161 console.log("Preparing long perf tests...");
162
163 // wait for 10 seconds
164 await new Promise((resolve) => setTimeout(resolve, 10000));
165
166 console.log("Starting long perf tests in 1 second...");
167
168 // wait for 1 seconds
169 await new Promise((resolve) => setTimeout(resolve, 1000));
170
171 // Send 1 events every 5 seconds for 30 minutes
172 for (let i = 0; i < 360; i++) {
173 console.log("Sending 1 events...");
174
175 await sendEvent();
176
177 await new Promise((resolve) => setTimeout(resolve, 5000));
178 }
179}
180
181async function mainSerial() {
182 console.log("Preparing serial perf tests...");

Callers

nothing calls this directly

Calls 2

sendEventFunction · 0.85
logMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…