From b9da6e31bc1d4c9462571943d34ba85e1fb49810 Mon Sep 17 00:00:00 2001 From: "Jack He (Github)" Date: Mon, 5 Feb 2024 09:29:33 -0800 Subject: [PATCH] Persist more data for intermdiary JSON files + Add hps collection (#4112) * add path for hps * persist latest commit data in intermediate json --------- Co-authored-by: Jack He --- scripts/secnetperf.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/secnetperf.ps1 b/scripts/secnetperf.ps1 index 7d5b8afb3e..da90322d98 100644 --- a/scripts/secnetperf.ps1 +++ b/scripts/secnetperf.ps1 @@ -134,7 +134,7 @@ INSERT OR IGNORE INTO Secnetperf_builds (Secnetperf_Commit, Build_date_time, TLS VALUES ("$MsQuicCommit", "$(Get-Date -Format "yyyy-MM-dd HH:mm:ss")", 1, "TODO"); "@ $json = @{} - +$json["commit"] = "$MsQuicCommit" $allTests = [System.Collections.Specialized.OrderedDictionary]::new() # > All tests: @@ -215,7 +215,7 @@ INSERT OR IGNORE INTO Secnetperf_tests (Secnetperf_test_ID, Kernel_mode, Run_arg if ($Test.Values[$tcp].Length -eq 0) { continue } $transport = $tcp -eq 1 ? "tcp" : "quic" $json["$testId-$transport"] = $Test.Values[$tcp] - if ($Test.Metric -eq "throughput") { + if ($Test.Metric -eq "throughput" -or $Test.Metric -eq "hps") { foreach ($item in $Test.Values[$tcp]) { $SQL += @" `nINSERT INTO Secnetperf_test_runs (Secnetperf_test_ID, Secnetperf_commit, Client_environment_ID, Server_environment_ID, Result, Secnetperf_latency_stats_ID, io, tls)