Skip to content

Commit

Permalink
prepend -scenario (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
ProjectsByJackHe authored Nov 26, 2024
1 parent 0306907 commit 77b624b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
16 changes: 8 additions & 8 deletions dashboard/src/pages/hps.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ export default function HpsPage() {

if (data) {
// TODO: Should we find the max of windows / linux run and use that as our baseline?
let rep = accessData(`${windowsOs}-${env}-iocp-schannel`, data, `hps-tcp`, `${testType}-tcp`);
let linuxRep = accessData(`${linuxOs}-${env}-epoll-openssl`, data, `hps-tcp`, `${testType}-tcp`);
let rep = accessData(`${windowsOs}-${env}-iocp-schannel`, data, `scenario-hps-tcp`, `${testType}-tcp`);
let linuxRep = accessData(`${linuxOs}-${env}-epoll-openssl`, data, `scenario-hps-tcp`, `${testType}-tcp`);
let indices = Array.from({length: Math.max(rep.length, linuxRep.length)}, (_, i) => i);
indices.reverse();
const tcpiocp = accessData(`${windowsOs}-${env}-iocp-schannel`, data, `hps-tcp`, `${testType}-tcp`);
const quiciocp = accessData(`${windowsOs}-${env}-iocp-schannel`, data, `hps-quic`, `${testType}-quic`);
const tcpepoll = accessData(`${linuxOs}-${env}-epoll-openssl`, data, `hps-tcp`, `${testType}-tcp`);
const quicepoll = accessData(`${linuxOs}-${env}-epoll-openssl`, data, `hps-quic`, `${testType}-quic`);
const quicxdp = accessData(`${windowsOs}-${env}-xdp-schannel`, data, `hps-quic`, `${testType}-quic`);
const tcpiocp = accessData(`${windowsOs}-${env}-iocp-schannel`, data, `scenario-hps-tcp`, `${testType}-tcp`);
const quiciocp = accessData(`${windowsOs}-${env}-iocp-schannel`, data, `scenario-hps-quic`, `${testType}-quic`);
const tcpepoll = accessData(`${linuxOs}-${env}-epoll-openssl`, data, `scenario-hps-tcp`, `${testType}-tcp`);
const quicepoll = accessData(`${linuxOs}-${env}-epoll-openssl`, data, `scenario-hps-quic`, `${testType}-quic`);
const quicxdp = accessData(`${windowsOs}-${env}-xdp-schannel`, data, `scenario-hps-quic`, `${testType}-quic`);
// const quicwsk = data[`${windowsOs}-${env}-wsk-schannel`][`${testType}-quic`]['data'].slice().reverse();

const TCPIOCP = tcpiocp.map(x => x[0]);
Expand Down Expand Up @@ -242,7 +242,7 @@ export default function HpsPage() {
onChange={handleChangeTestType}
defaultValue={0}
>
<MenuItem value={'hps-conns-100'}>100 Connections</MenuItem>
<MenuItem value={'hps-conns-100'}>HPS Scenario</MenuItem>
</Select>
</FormControl>
</Box>
Expand Down
18 changes: 9 additions & 9 deletions dashboard/src/pages/latency.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,17 @@ export default function LatencyPage() {

if (data) {
// TODO: Should we find the max of windows / linux run and use that as our baseline?
rep = accessData(`${windowsOs}-${env}-iocp-schannel`, data, `latency-tcp`, `${testType}-tcp`);
linuxRep = accessData(`${linuxOs}-${env}-epoll-openssl`, data, `latency-tcp`, `${testType}-tcp`);
rep = accessData(`${windowsOs}-${env}-iocp-schannel`, data, `scenario-latency-tcp`, `${testType}-tcp`);
linuxRep = accessData(`${linuxOs}-${env}-epoll-openssl`, data, `scenario-latency-tcp`, `${testType}-tcp`);
indices = Array.from({ length: Math.max(rep.length, linuxRep.length) }, (_, i) => i);
indices.reverse();

tcpiocp = accessData(`${windowsOs}-${env}-iocp-schannel`, data, `latency-tcp`, `${testType}-tcp`);
quiciocp = accessData(`${windowsOs}-${env}-iocp-schannel`, data, `latency-quic`, `${testType}-quic`);
tcpepoll = accessData(`${linuxOs}-${env}-epoll-openssl`, data, `latency-tcp`, `${testType}-tcp`);
quicepoll = accessData(`${linuxOs}-${env}-epoll-openssl`, data, `latency-quic`, `${testType}-quic`);
quicxdp = accessData(`${windowsOs}-${env}-xdp-schannel`, data, `latency-quic`, `${testType}-quic`);
quicwsk = accessData(`${windowsOs}-${env}-wsk-schannel`, data, `latency-quic`, `${testType}-quic`);
tcpiocp = accessData(`${windowsOs}-${env}-iocp-schannel`, data, `scenario-latency-tcp`, `${testType}-tcp`);
quiciocp = accessData(`${windowsOs}-${env}-iocp-schannel`, data, `scenario-latency-quic`, `${testType}-quic`);
tcpepoll = accessData(`${linuxOs}-${env}-epoll-openssl`, data, `scenario-latency-tcp`, `${testType}-tcp`);
quicepoll = accessData(`${linuxOs}-${env}-epoll-openssl`, data, `scenario-latency-quic`, `${testType}-quic`);
quicxdp = accessData(`${windowsOs}-${env}-xdp-schannel`, data, `scenario-latency-quic`, `${testType}-quic`);
quicwsk = accessData(`${windowsOs}-${env}-wsk-schannel`, data, `scenario-latency-quic`, `${testType}-quic`);

mode1View =
<GraphView title={`Detailed Latency`}
Expand Down Expand Up @@ -270,7 +270,7 @@ export default function LatencyPage() {
onChange={handleChangeTestType}
defaultValue={0}
>
<MenuItem value={'rps-up-512-down-4000'}>512 Kb upload, 4000 Kb download</MenuItem>
<MenuItem value={'rps-up-512-down-4000'}>Latency Scenario</MenuItem>
</Select>
</FormControl>
</Box>
Expand Down
18 changes: 9 additions & 9 deletions dashboard/src/pages/rps.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,17 @@ export default function RpsPage() {

if (data) {
// TODO: Should we find the max of windows / linux run and use that as our baseline?
let rep = accessData(`${windowsOs}-${env}-iocp-schannel`, data, `rps-tcp`, `${testType}-tcp`);
let linuxRep = accessData(`${linuxOs}-${env}-epoll-openssl`, data, `rps-tcp`, `${testType}-tcp`);
let rep = accessData(`${windowsOs}-${env}-iocp-schannel`, data, `scenario-rps-tcp`, `${testType}-tcp`);
let linuxRep = accessData(`${linuxOs}-${env}-epoll-openssl`, data, `scenario-rps-tcp`, `${testType}-tcp`);
let indices = Array.from({length: Math.max(rep.length, linuxRep.length)}, (_, i) => i);
indices.reverse();

const tcpiocp = accessData(`${windowsOs}-${env}-iocp-schannel`, data, `rps-tcp`, `${testType}-tcp`);
const quiciocp = accessData(`${windowsOs}-${env}-iocp-schannel`, data, `rps-quic`, `${testType}-quic`);
const tcpepoll = accessData(`${linuxOs}-${env}-epoll-openssl`, data, `rps-tcp`, `${testType}-tcp`);
const quicepoll = accessData(`${linuxOs}-${env}-epoll-openssl`, data, `rps-quic`, `${testType}-quic`);
const quicxdp = accessData(`${windowsOs}-${env}-xdp-schannel`, data, `rps-quic`, `${testType}-quic`);
const quicwsk = accessData(`${windowsOs}-${env}-wsk-schannel`, data, `rps-quic`, `${testType}-quic`);
const tcpiocp = accessData(`${windowsOs}-${env}-iocp-schannel`, data, `scenario-rps-tcp`, `${testType}-tcp`);
const quiciocp = accessData(`${windowsOs}-${env}-iocp-schannel`, data, `scenario-rps-quic`, `${testType}-quic`);
const tcpepoll = accessData(`${linuxOs}-${env}-epoll-openssl`, data, `scenario-rps-tcp`, `${testType}-tcp`);
const quicepoll = accessData(`${linuxOs}-${env}-epoll-openssl`, data, `scenario-rps-quic`, `${testType}-quic`);
const quicxdp = accessData(`${windowsOs}-${env}-xdp-schannel`, data, `scenario-rps-quic`, `${testType}-quic`);
const quicwsk = accessData(`${windowsOs}-${env}-wsk-schannel`, data, `scenario-rps-quic`, `${testType}-quic`);

const TCPIOCP = tcpiocp.map(x => x[0]);
const QUICIOCP = quiciocp.map(x => x[0]);
Expand Down Expand Up @@ -242,7 +242,7 @@ export default function RpsPage() {
onChange={handleChangeTestType}
defaultValue={0}
>
<MenuItem value={'rps-up-512-down-4000'}>512 kb upload, 4000 kb download</MenuItem>
<MenuItem value={'rps-up-512-down-4000'}>RPS Scenario</MenuItem>
</Select>
</FormControl>
</Box>
Expand Down

0 comments on commit 77b624b

Please sign in to comment.