Skip to content

Commit

Permalink
Persist more data for intermdiary JSON files + Add hps collection (mi…
Browse files Browse the repository at this point in the history
…crosoft#4112)

* add path for hps

* persist latest commit data in intermediate json

---------

Co-authored-by: Jack He <[email protected]>
  • Loading branch information
ProjectsByJackHe and ProjectsByJackHe authored Feb 5, 2024
1 parent 368672d commit b9da6e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/secnetperf.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b9da6e3

Please sign in to comment.