< Summary - ReFlex - Library

Information
Class: PointCloud.Benchmark.Program
Assembly: ReFlex.PointCloud.Benchmark
File(s): D:\a\reflex\reflex\test\Library\Performance\PointCloud.Benchmark\Program.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 18
Coverable lines: 18
Total lines: 57
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 2
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
Main(...)0%620%
BenchmarkBoxFilter()100%210%
BenchmarkIteration1()100%210%
BenchmarkIteration2()100%210%
BenchmarkUpdate()100%210%
BenchmarkCopy()100%210%
BenchmarkInteractions()100%210%
BenchmarkConfidenceFilter()100%210%

File(s)

D:\a\reflex\reflex\test\Library\Performance\PointCloud.Benchmark\Program.cs

#LineLine coverage
 1// See https://aka.ms/new-console-template for more information
 2
 3using BenchmarkDotNet.Reports;
 4using BenchmarkDotNet.Configs;
 5using BenchmarkDotNet.Jobs;
 6using BenchmarkDotNet.Running;
 7using PointCloud.Benchmark.Benchmarks.Filter;
 8using PointCloud.Benchmark.Benchmarks.Interactivity;
 9using PointCloud.Benchmark.Benchmarks.IteratePointCloud;
 10using PointCloud.Benchmark.Benchmarks.UpdatePointCloud;
 11
 12namespace PointCloud.Benchmark;
 13
 14public class Program
 15{
 16    public static void Main(string[] args)
 017    {
 018        if (args.Contains("--observer-comparison"))
 019        {
 020            BenchmarkSwitcher.FromTypes(new[] { typeof(ObserverExtremumComparison), typeof(ObserverSmoothingComparison) 
 021                .Run(args.Where(arg => arg != "--observer-comparison").ToArray(),
 022                    BenchmarkDotNet.Configs.DefaultConfig.Instance.AddJob(
 023                        BenchmarkDotNet.Jobs.Job.ShortRun.WithToolchain(
 024                            BenchmarkDotNet.Toolchains.InProcess.Emit.InProcessEmitToolchain.Instance)));
 025            return;
 26        }
 27        // var summary1 = BenchmarkBoxFilter();
 28        //
 29        // var summary2 = BenchmarkIteration1();
 30
 31        // var summary3 = BenchmarkIteration2();
 32
 33        // var summary4 = BenchmarkUpdate();
 34
 35        // var summary5 = BenchmarkCopy();
 36
 37        // var summary6 = BenchmarkInteractions();
 38
 039        var summary7 = BenchmarkConfidenceFilter();
 40
 041    }
 42
 043    private static Summary BenchmarkBoxFilter() => BenchmarkRunner.Run<BoxBlur>();
 44
 045    private static Summary BenchmarkIteration1() => BenchmarkRunner.Run<IterationMethods>();
 46
 047    private static Summary BenchmarkIteration2() => BenchmarkRunner.Run<IterationMethods2>();
 48
 049    private static Summary BenchmarkUpdate() => BenchmarkRunner.Run<UpdateMethods>();
 50
 051    private static Summary BenchmarkCopy() => BenchmarkRunner.Run<CopyPointCloud>();
 52
 053    private static Summary BenchmarkInteractions() => BenchmarkRunner.Run<MultiInteractionObserverBenchmark>();
 54
 055    private static Summary BenchmarkConfidenceFilter() => BenchmarkRunner.Run<ConfidenceFilterBenchmark>();
 56
 57}