Skip to content

Commit

Permalink
Update benchmark handling for latest BenchmarkDotNet
Browse files Browse the repository at this point in the history
(The JSON file format has changed a little.)
  • Loading branch information
jskeet committed May 20, 2018
1 parent 76978b5 commit ac42918
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions build/BenchmarkUploader/BriefJsonModel.cs
Expand Up @@ -28,9 +28,9 @@ public class HostEnvironment
public bool HasRyuJit { get; set; }
public string BenchmarkDotNetVersion { get; set; }
public string JitModules { get; set; }
public OptionalString OsVersion { get; set; }
public OptionalString ProcessorName { get; set; }
public int ProcessorCount { get; set; }
public string OsVersion { get; set; }
public string ProcessorName { get; set; }
public int LogicalCoreCount { get; set; }
}

public class JsonBenchmark
Expand Down
6 changes: 3 additions & 3 deletions build/BenchmarkUploader/Program.cs
Expand Up @@ -88,9 +88,9 @@ private static void ProcessRun(BenchmarkRepository environmentRepository, string
var environment = new BenchmarkEnvironment
{
Machine = Environment.MachineName.ToLowerInvariant(),
OperatingSystem = hostEnvironment.OsVersion?.GetValue() ?? "",
Processor = hostEnvironment.ProcessorName?.GetValue() ?? "",
ProcessorCount = hostEnvironment.ProcessorCount,
OperatingSystem = hostEnvironment.OsVersion ?? "",
Processor = hostEnvironment.ProcessorName ?? "",
ProcessorCount = hostEnvironment.LogicalCoreCount,
TargetFramework = tfm,
JitModules = hostEnvironment.JitModules,
HasRyuJit = hostEnvironment.HasRyuJit,
Expand Down

0 comments on commit ac42918

Please sign in to comment.