diff --git a/perf/runner/src/index.ts b/perf/runner/src/index.ts index 4726c377b..d161a1177 100644 --- a/perf/runner/src/index.ts +++ b/perf/runner/src/index.ts @@ -57,7 +57,7 @@ async function main(clientPublicIP: string, serverPublicIP: string, testing: boo } function runPing(clientPublicIP: string, serverPublicIP: string, testing: boolean): PingResults { - const pingCount = 1; + const pingCount = testing ? 1 : 100; console.error(`= run ${pingCount} pings from client to server`); const cmd = `ssh -o StrictHostKeyChecking=no ec2-user@${clientPublicIP} 'ping -c ${pingCount} ${serverPublicIP}'`; @@ -76,7 +76,7 @@ function runPing(clientPublicIP: string, serverPublicIP: string, testing: boolea } function runIPerf(clientPublicIP: string, serverPublicIP: string, testing: boolean): IperfResults { - const iPerfIterations = 1; + const iPerfIterations = testing ? 1 : 60; console.error(`= run ${iPerfIterations} iPerf TCP from client to server`); const killCMD = `ssh -o StrictHostKeyChecking=no ec2-user@${serverPublicIP} 'kill $(cat pidfile); rm pidfile; rm server.log || true'`;