| | 1 | | // See https://aka.ms/new-console-template for more information |
| | 2 | |
|
| | 3 | | using BenchmarkDotNet.Reports; |
| | 4 | | using BenchmarkDotNet.Running; |
| | 5 | | using PointCloud.Benchmark.Benchmarks.Filter; |
| | 6 | | using PointCloud.Benchmark.Benchmarks.Interactivity; |
| | 7 | | using PointCloud.Benchmark.Benchmarks.IteratePointCloud; |
| | 8 | | using PointCloud.Benchmark.Benchmarks.UpdatePointCloud; |
| | 9 | |
|
| | 10 | | namespace PointCloud.Benchmark; |
| | 11 | |
|
| | 12 | | public class Program |
| | 13 | | { |
| | 14 | | public static void Main(string[] args) |
| 0 | 15 | | { |
| | 16 | | // var summary1 = BenchmarkBoxFilter(); |
| | 17 | | // |
| | 18 | | // var summary2 = BenchmarkIteration1(); |
| | 19 | |
|
| | 20 | | // var summary3 = BenchmarkIteration2(); |
| | 21 | |
|
| | 22 | | // var summary4 = BenchmarkUpdate(); |
| | 23 | |
|
| | 24 | | // var summary5 = BenchmarkCopy(); |
| | 25 | |
|
| | 26 | | // var summary6 = BenchmarkInteractions(); |
| | 27 | |
|
| 0 | 28 | | var summary7 = BenchmarkConfidenceFilter(); |
| | 29 | |
|
| 0 | 30 | | } |
| | 31 | |
|
| 0 | 32 | | private static Summary BenchmarkBoxFilter() => BenchmarkRunner.Run<BoxBlur>(); |
| | 33 | |
|
| 0 | 34 | | private static Summary BenchmarkIteration1() => BenchmarkRunner.Run<IterationMethods>(); |
| | 35 | |
|
| 0 | 36 | | private static Summary BenchmarkIteration2() => BenchmarkRunner.Run<IterationMethods2>(); |
| | 37 | |
|
| 0 | 38 | | private static Summary BenchmarkUpdate() => BenchmarkRunner.Run<UpdateMethods>(); |
| | 39 | |
|
| 0 | 40 | | private static Summary BenchmarkCopy() => BenchmarkRunner.Run<CopyPointCloud>(); |
| | 41 | |
|
| 0 | 42 | | private static Summary BenchmarkInteractions() => BenchmarkRunner.Run<MultiInteractionObserverBenchmark>(); |
| | 43 | |
|
| 0 | 44 | | private static Summary BenchmarkConfidenceFilter() => BenchmarkRunner.Run<ConfidenceFilterBenchmark>(); |
| | 45 | |
|
| | 46 | | } |