Skip to content

Commit bb1b2c4

Browse files
authored
Use scenario name for measurements and metadata (#18609)
1 parent 24be299 commit bb1b2c4

File tree

1 file changed

+3
-2
lines changed
  • src/Components/benchmarkapps/Wasm.Performance/Driver

1 file changed

+3
-2
lines changed

src/Components/benchmarkapps/Wasm.Performance/Driver/Program.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,11 @@ private static void FormatAsBenchmarksOutput(List<BenchmarkResult> results, (lon
7575
var output = new BenchmarkOutput();
7676
foreach (var result in results)
7777
{
78+
var scenarioName = result.Descriptor.Name;
7879
output.Metadata.Add(new BenchmarkMetadata
7980
{
8081
Source = "BlazorWasm",
81-
Name = result.Descriptor.Name,
82+
Name = scenarioName,
8283
ShortDescription = result.Name,
8384
LongDescription = result.Descriptor.Description,
8485
Format = "n2"
@@ -87,7 +88,7 @@ private static void FormatAsBenchmarksOutput(List<BenchmarkResult> results, (lon
8788
output.Measurements.Add(new BenchmarkMeasurement
8889
{
8990
Timestamp = DateTime.UtcNow,
90-
Name = result.Name,
91+
Name = scenarioName,
9192
Value = result.Duration,
9293
});
9394
}

0 commit comments

Comments
 (0)