fixed couple of issues in the perf tests (#693)

This commit is contained in:
Leila Lali
2018-09-18 14:35:47 -07:00
committed by GitHub
parent d8c088e0f6
commit 0c1648b1c4
3 changed files with 13 additions and 5 deletions

View File

@@ -73,11 +73,11 @@ namespace Microsoft.SqlTools.ServiceLayer.Test.Common
double elapsed = Percentile(iterationArray, 0.5);
var currentColor = Console.ForegroundColor;
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine(string.Format(CultureInfo.InvariantCulture, "Test Name: {0} Run time in milliSeconds: {1}", testName, TotalMilliSeconds));
Console.WriteLine(string.Format(CultureInfo.InvariantCulture, "Test Name: {0} Run time in milliSeconds: {1}", testName, elapsed));
Console.ForegroundColor = currentColor;
string resultContent = Newtonsoft.Json.JsonConvert.SerializeObject(new TestResult
{
ElapsedTime = TotalMilliSeconds,
ElapsedTime = elapsed,
MetricValue = elapsed,
PrimaryMetric = "ElapsedTimeMetric",
Iterations = iterationArray,