Skip to content

Commit 9b6298c

Browse files
committed
more runs
1 parent 659ea29 commit 9b6298c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/perf/src/memtest.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const supportedFlags = [
3232
* - `short` Runs the loadtest for `30s` and the calmdown for `10s` instead of the defaults.
3333
* - `cleanheapsnaps` Remove any existing heap snapshot (`*.heapsnapshot`) files before the test.
3434
* - `noheapsnaps` Disable taking heap snapshots.
35-
* - `moreruns` Does `5` runs instead of the defaults.
35+
* - `moreruns` Does `10` runs instead of the defaults.
3636
* - `chart` Writes the memory consumption chart.
3737
* - `sampling` Perform and write the heap sampling profile.
3838
*/
@@ -98,9 +98,9 @@ export interface MemtestOptions
9898
/**
9999
* How many times to run the loadtests?
100100
*
101-
* Ignores the `default` and does `5` runs if {@link flags MEMTEST has the `moreruns` flag}.
101+
* Ignores the `default` and does `10` runs if {@link flags MEMTEST has the `moreruns` flag}.
102102
*
103-
* @default 3
103+
* @default 5
104104
*/
105105
runs?: number;
106106
}
@@ -112,7 +112,7 @@ export function memtest(opts: MemtestOptions, setup: () => Promise<Server>) {
112112
idle = 5_000,
113113
duration = flags.includes('short') ? 10_000 : 30_000,
114114
calmdown = flags.includes('short') ? 5_000 : 10_000,
115-
runs = flags.includes('moreruns') ? 5 : 3,
115+
runs = flags.includes('moreruns') ? 10 : 5,
116116
takeHeapSnapshots = !flags.includes('noheapsnaps'),
117117
performHeapSampling = flags.includes('sampling'),
118118
onMemorySample,

0 commit comments

Comments
 (0)