From 86d87426d23c846ccfe59830287d74c16603e9a3 Mon Sep 17 00:00:00 2001 From: darrenge Date: Fri, 6 Sep 2024 10:13:47 -0700 Subject: [PATCH] Fix to the NA in the cluster calls --- benchmark/BDN.benchmark/Cluster/RespClusterBench.cs | 2 ++ test/BDNPerfTests/run_bdnperftest.ps1 | 8 -------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/benchmark/BDN.benchmark/Cluster/RespClusterBench.cs b/benchmark/BDN.benchmark/Cluster/RespClusterBench.cs index 02b04dc1e5..e9af4ba3f2 100644 --- a/benchmark/BDN.benchmark/Cluster/RespClusterBench.cs +++ b/benchmark/BDN.benchmark/Cluster/RespClusterBench.cs @@ -2,6 +2,7 @@ // Licensed under the MIT license. using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; using System.Text; using BenchmarkDotNet.Attributes; using Embedded.perftest; @@ -48,6 +49,7 @@ public void SetupSingleInstance() EnableCluster = true, Port = Port, CleanClusterConfig = true, + CheckpointDir = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? "/tmp" : null }; server = new EmbeddedRespServer(opt); session = server.GetRespSession(); diff --git a/test/BDNPerfTests/run_bdnperftest.ps1 b/test/BDNPerfTests/run_bdnperftest.ps1 index 2ca76c8b2f..5a58d272f4 100644 --- a/test/BDNPerfTests/run_bdnperftest.ps1 +++ b/test/BDNPerfTests/run_bdnperftest.ps1 @@ -77,14 +77,6 @@ param ($ResultsLine, $columnNum) $foundValue = $column[$columnNum].Trim(' us') $foundValue = $column[$columnNum].Trim(' ns') - # Just double check found results is not NA - if ($foundResultsValue -eq "NA") { - Write-Error -Message "** << Data Error! >> The BDN benchmark Mean Value is not a valid value. Mean value found: $dblfoundResultValue" - Write-Host "** " - - return 0 - } - return $foundValue }