Use scenario name for measurements and metadata (#18609)

This commit is contained in:
Pranav K 2020-01-28 09:08:57 -08:00 committed by GitHub
parent 24be2992de
commit bb1b2c4bf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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,
});
}