Skip to content

Commit

Permalink
Added Allocated values to config files
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenge committed Oct 2, 2024
1 parent a48fb9d commit 735f02c
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 18 deletions.
25 changes: 22 additions & 3 deletions test/BDNPerfTests/ConfigFiles/CI_BDN_Config_Lua.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"_comment": "To get proper expected results, the ExpectedCoresToTestOn needs to match the number of cores on test machine. NOT SURE IF CHECKING CORES",
"ExpectedCoresToTestOn_win": 2,
"ExpectedCoresToTestOn_linux": 2,
"configuration": "Release",
"framework": "net8.0",
"filter": "*Lua*",
Expand All @@ -13,14 +10,36 @@
"expectedBasicLuaRunner2MeanValue_win": 173,
"expectedBasicLuaRunner3MeanValue_win": 686,
"expectedBasicLua4RunnerMeanValue_win": 2711,

"expectedBasicLuaRunner1AllocatedValue_linux": 24,
"expectedBasicLuaRunner2AllocatedValue_linux": 144,
"expectedBasicLuaRunner3AllocatedValue_linux": 328,
"expectedBasicLua4RunnerAllocatedValue_linux": 864,
"expectedBasicLuaRunner1AllocatedValue_win": 24,
"expectedBasicLuaRunner2AllocatedValue_win": 144,
"expectedBasicLuaRunner3AllocatedValue_win": 328,
"expectedBasicLua4RunnerAllocatedValue_win": 864,


"expectedBasicLua1MeanValue_linux": 169,
"expectedBasicLua2MeanValue_linux": 284,
"expectedBasicLua3MeanValue_linux": 1407,
"expectedBasicLua4MeanValue_linux": 2733,
"expectedBasicLua1AllocatedValue_linux": 24,
"expectedBasicLua2AllocatedValue_linux": 144,
"expectedBasicLua3AllocatedValue_linux": 328,
"expectedBasicLua4AllocatedValue_linux": 832,

"expectedBasicLua1MeanValue_win": 107,
"expectedBasicLua2MeanValue_win": 180,
"expectedBasicLua3MeanValue_win": 660,
"expectedBasicLua4MeanValue_win": 1805,
"expectedBasicLua1AllocatedValue_win": 24,
"expectedBasicLua2AllocatedValue_win": 144,
"expectedBasicLua3AllocatedValue_win": 328,
"expectedBasicLua4AllocatedValue_win": 832,


"acceptableMeanRange": 10,
"acceptableError": ".1",
"acceptableStdDev": ".1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"_comment": "To get proper expected results, the ExpectedCoresToTestOn needs to match the number of cores on test machine. NOT SURE IF CHECKING CORES",
"ExpectedCoresToTestOn_win": 2,
"ExpectedCoresToTestOn_linux": 2,
"configuration": "Release",
"framework": "net8.0",
"filter": "*RespClusterBench*",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"_comment": "To get proper expected results, the ExpectedCoresToTestOn needs to match the number of cores on test machine. NOT SURE IF CHECKING CORES",
"ExpectedCoresToTestOn_win": 2,
"ExpectedCoresToTestOn_linux": 2,
"configuration": "Release",
"framework": "net8.0",
"filter": "*RespClusterMigrateBench*",
Expand Down
18 changes: 15 additions & 3 deletions test/BDNPerfTests/ConfigFiles/CI_BDN_Config_RespParseStress.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"_comment": "To get proper expected results, the ExpectedCoresToTestOn needs to match the number of cores on test machine. NOT SURE IF CHECKING CORES",
"ExpectedCoresToTestOn_win": 2,
"ExpectedCoresToTestOn_linux": 2,
"configuration": "Release",
"framework": "net8.0",
"filter": "*RespParseStress*",
Expand All @@ -14,6 +11,14 @@
"expectedSAddRemMeanValue_linux": 172,
"expectedHSetDelMeanValue_linux": 200,
"expectedMyDictSetGetMeanValue_linux": 235,

"expectedZAddRemAllocatedValue_linux": 23552,
"expectedLPushPopAllocatedValue_linux": 30721,
"expectedSAddRemAllocatedValue_linux": 16384,
"expectedHSetDelAllocatedValue_linux": 55297,
"expectedMyDictSetGetAllocatedValue_linux": 30720,


"expectedInLinePingMeanValue_win": 2.4,
"expectedSETMeanValue_win": 19,
"expectedSETEXMeanValue_win": 26,
Expand All @@ -23,6 +28,13 @@
"expectedSAddRemMeanValue_win": 130,
"expectedHSetDelMeanValue_win": 160,
"expectedMyDictSetGetMeanValue_win": 242,

"expectedZAddRemAllocatedValue_win": 23552,
"expectedLPushPopAllocatedValue_win": 30721,
"expectedSAddRemAllocatedValue_win": 16384,
"expectedHSetDelAllocatedValue_win": 55297,
"expectedMyDictSetGetAllocatedValue_win": 30720,

"acceptableMeanRange": 10,
"acceptableError": ".1",
"acceptableStdDev": ".1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"_comment": "To get proper expected results, the ExpectedCoresToTestOn needs to match the number of cores on test machine. NOT SURE IF CHECKING CORES",
"ExpectedCoresToTestOn_win": 2,
"ExpectedCoresToTestOn_linux": 2,
"configuration": "Release",
"framework": "net8.0",
"filter": "*RespTsavoriteStress*",
Expand Down
7 changes: 4 additions & 3 deletions test/BDNPerfTests/run_bdnperftest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ function AnalyzeResult {

# Check if the actual value is within the bounds
if ($dblfoundResultValue -ge $LowerBound -and $dblfoundResultValue -le $UpperBound) {
Write-Host "** ** PASS! ** Mean Value result ($dblfoundResultValue) is in the acceptable range +/-$acceptablePercentRange% ($LowerBound -> $UpperBound) of expected value: $expectedResultValue "
Write-Host "** ** PASS! ** Test Value result ($dblfoundResultValue) is in the acceptable range +/-$acceptablePercentRange% ($LowerBound -> $UpperBound) of expected value: $expectedResultValue "
Write-Host "** "
return $true # the values are close enough
}
else {
if ($warnonly) {
Write-Host "** << PERF REGRESSION WARNING! >> The BDN benchmark Mean Value result ($dblfoundResultValue) is OUT OF RANGE +/-$acceptablePercentRange% ($LowerBound -> $UpperBound) of expected value: $expectedResultValue"
Write-Host "** << PERF REGRESSION WARNING! >> The BDN benchmark Value result ($dblfoundResultValue) is OUT OF RANGE +/-$acceptablePercentRange% ($LowerBound -> $UpperBound) of expected value: $expectedResultValue"
Write-Host "** "
}
else {
Write-Host "** << PERF REGRESSION FAIL! >> The BDN benchmark Mean Value ($dblfoundResultValue) is OUT OF ACCEPTABLE RANGE +/-$acceptablePercentRange% ($LowerBound -> $UpperBound) of expected value: $expectedResultValue"
Write-Host "** << PERF REGRESSION FAIL! >> The BDN benchmark Value ($dblfoundResultValue) is OUT OF ACCEPTABLE RANGE +/-$acceptablePercentRange% ($LowerBound -> $UpperBound) of expected value: $expectedResultValue"
Write-Host "** "
}
return $false # the values are too different
Expand All @@ -76,6 +76,7 @@ param ($ResultsLine, $columnNum)
$column = $columns | ForEach-Object { $_.Trim() }
$foundValue = $column[$columnNum].Trim(' us')
$foundValue = $foundValue.Trim(' ns')
$foundValue = $foundValue.Trim(' B')

return $foundValue
}
Expand Down

0 comments on commit 735f02c

Please sign in to comment.