Skip to content

Commit

Permalink
Fix dotnet#2611 - Add Iteration mode and stage filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
FlatlinerDOA committed Aug 11, 2024
1 parent a739e2c commit 1d7a576
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/BenchmarkDotNet.Exporters.Plotting/ScottPlotExporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using BenchmarkDotNet.Engines;
using BenchmarkDotNet.Loggers;
using BenchmarkDotNet.Properties;
using BenchmarkDotNet.Reports;
Expand Down Expand Up @@ -93,6 +94,7 @@ public IEnumerable<string> ExportToFiles(Summary summary, ILogger consoleLogger)
var timeStats = from report in benchmark
let jobId = report.BenchmarkCase.DisplayInfo.Replace(report.BenchmarkCase.Descriptor.DisplayInfo + ": ", string.Empty)
from measurement in report.AllMeasurements
where measurement.Is(IterationMode.Workload, IterationStage.Result)
let measurementValue = measurement.Nanoseconds / measurement.Operations
group measurementValue / timeScale by (Target: report.BenchmarkCase.Descriptor.WorkloadMethodDisplayInfo, JobId: jobId) into g
select (g.Key.Target, g.Key.JobId, Mean: g.Average(), StdError: StandardError(g.ToList()));
Expand Down

0 comments on commit 1d7a576

Please sign in to comment.