diff options
| author | Will Hawkins <[email protected]> | 2022-08-17 22:17:30 -0400 |
|---|---|---|
| committer | Will Hawkins <[email protected]> | 2022-08-17 22:17:30 -0400 |
| commit | b96c0e0afda482d6841584d0f2e35a2883b346b6 (patch) | |
| tree | 9c148c2be9e3b9526370dd8137dd517ac3412e9a /data-analysis-router/ciphers/data.ps1 | |
| parent | 79c53ee4dfc86c290fc3d05aa5061ed522bf3bcf (diff) | |
Removing (old) experiment data files.
Diffstat (limited to 'data-analysis-router/ciphers/data.ps1')
| -rw-r--r-- | data-analysis-router/ciphers/data.ps1 | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/data-analysis-router/ciphers/data.ps1 b/data-analysis-router/ciphers/data.ps1 deleted file mode 100644 index 7210813..0000000 --- a/data-analysis-router/ciphers/data.ps1 +++ /dev/null @@ -1,22 +0,0 @@ -$FILENAME = "./CHACHA/originalSamples.log" -$OUTPUTFILE = "./CHACHAOut.csv" - -$RAWDATA = Get-Content $FILENAME -Raw - -# Expected Output -# Download: 66.228 Mbps ( 8.279 MBps), using 16 parallel connections. -# Upload: 36.257 Mbps ( 4.532 MBps), using 16 parallel connections. -# Total measurements: 15 -# RPM: 213 - -$PATTERN = ("Download:\s+(?<Download>\d*\.\d*) Mbps.*using (?<DownloadConnections>\d*) parallel connections.\n" + - "Upload:\s+(?<Upload>\d*\.\d*) Mbps.*using (?<UploadConnections>\d*) parallel connections.\n" + - ".*\n" + - "RPM:\s+(?<RPM>\d*)") - -"Download (Mbps), Upload(Mbps), Download Connections, Upload Connections, RPM" > $OUTPUTFILE - -$Matches = $RAWDATA | Select-String -Pattern $PATTERN -AllMatches -Foreach ($Match in $Matches.Matches) { - $Match.groups["Download"].Value.ToString() + "," + $Match.groups["Upload"].Value.ToString() + "," + $Match.groups["DownloadConnections"].Value.ToString() + "," + $Match.groups["UploadConnections"].Value.ToString() + "," + $Match.groups["RPM"].Value.ToString() >> $OUTPUTFILE -}
\ No newline at end of file |
