зеркало из https://github.com/microsoft/msquic.git
Max RPS NetPerf Test (#4589)
This commit is contained in:
Родитель
a159816b04
Коммит
c8d66e80f8
|
@ -469,7 +469,7 @@ function Check-TestFilter {
|
|||
# Parses the console output of secnetperf to extract the metric value.
|
||||
function Get-TestOutput {
|
||||
param ($Output, $Metric)
|
||||
if ($Metric -eq "latency") {
|
||||
if ($Metric -eq "latency" -or $Metric -eq "rps") {
|
||||
$latency_percentiles = "(?<=\d{1,3}(?:\.\d{1,2})?th: )\d+"
|
||||
$RPS_regex = "(?<=Result: )\d+"
|
||||
$percentiles = [regex]::Matches($Output, $latency_percentiles) | ForEach-Object {$_.Value}
|
||||
|
@ -536,7 +536,9 @@ function Invoke-Secnetperf {
|
|||
$tcpSupported = 0
|
||||
}
|
||||
$metric = "throughput"
|
||||
if ($exeArgs.Contains("plat:1")) {
|
||||
if ($exeArgs.Contains("conns:16cpu")) { # TODO: figure out a better way to detect max RPS tests
|
||||
$metric = "rps"
|
||||
} elseif ($exeArgs.Contains("plat:1")) {
|
||||
$metric = "latency"
|
||||
$latency = @(@(), @())
|
||||
$extraOutput = Repo-Path "latency.txt"
|
||||
|
|
|
@ -258,6 +258,7 @@ $allTests["tput-up"] = "-exec:maxtput -up:12s -ptput:1"
|
|||
$allTests["tput-down"] = "-exec:maxtput -down:12s -ptput:1"
|
||||
$allTests["hps-conns-100"] = "-exec:maxtput -rconn:1 -share:1 -conns:100 -run:12s -prate:1"
|
||||
$allTests["rps-up-512-down-4000"] = "-exec:lowlat -rstream:1 -up:512 -down:4000 -run:20s -plat:1"
|
||||
$allTests["max-rps-up-512-down-4000"] = "-exec:lowlat -conns:16cpu -streams:10 -rstream:1 -up:512 -down:4000 -run:20s -plat:1"
|
||||
|
||||
$hasFailures = $false
|
||||
$json["run_args"] = $allTests
|
||||
|
|
Загрузка…
Ссылка в новой задаче