Skip to content

Commit

Permalink
chore: iperf3 y u no there
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Nov 17, 2023
1 parent e31177d commit 0fab986
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions perf/runner/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}'`;
Expand All @@ -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'`;
Expand Down

0 comments on commit 0fab986

Please sign in to comment.