Use scenario name for measurements and metadata (#18609)
This commit is contained in:
parent
24be2992de
commit
bb1b2c4bf2
|
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue