From bb1b2c4bf29ae69604aef120d1c418566b568db8 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Tue, 28 Jan 2020 09:08:57 -0800 Subject: [PATCH] Use scenario name for measurements and metadata (#18609) --- .../benchmarkapps/Wasm.Performance/Driver/Program.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Components/benchmarkapps/Wasm.Performance/Driver/Program.cs b/src/Components/benchmarkapps/Wasm.Performance/Driver/Program.cs index b5e9189a0d..8d588b6430 100644 --- a/src/Components/benchmarkapps/Wasm.Performance/Driver/Program.cs +++ b/src/Components/benchmarkapps/Wasm.Performance/Driver/Program.cs @@ -75,10 +75,11 @@ namespace Wasm.Performance.Driver var output = new BenchmarkOutput(); foreach (var result in results) { + var scenarioName = result.Descriptor.Name; output.Metadata.Add(new BenchmarkMetadata { Source = "BlazorWasm", - Name = result.Descriptor.Name, + Name = scenarioName, ShortDescription = result.Name, LongDescription = result.Descriptor.Description, Format = "n2" @@ -87,7 +88,7 @@ namespace Wasm.Performance.Driver output.Measurements.Add(new BenchmarkMeasurement { Timestamp = DateTime.UtcNow, - Name = result.Name, + Name = scenarioName, Value = result.Duration, }); }