You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//// Licensed under the MIT License. See LICENSE file in the project root for full license information.
4
-
////
5
-
6
-
//namespace PolylineAlgorithm.Benchmarks;
7
-
8
-
//using BenchmarkDotNet.Attributes;
9
-
//using BenchmarkDotNet.Engines;
10
-
//using PolylineAlgorithm.Utility;
11
-
//using System.Collections.Generic;
12
-
13
-
///// <summary>
14
-
///// Benchmarks for <see cref="PolylineEncoder"/>.
15
-
///// </summary>
16
-
//public class PolylineEncoderBenchmark {
17
-
// private readonly Consumer _consumer = new();
18
-
19
-
// /// <summary>
20
-
// /// Number of coordinates for benchmarks.
21
-
// /// </summary>
22
-
// [Params(1, 100, 1_000)]
23
-
// public int CoordinatesCount { get; set; }
24
-
25
-
//#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring as nullable.
26
-
// /// <summary>
27
-
// /// Coordinates as list.
28
-
// /// </summary>
29
-
// public List<(double Latitude, double Longitude)> List { get; private set; }
//#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring as nullable.
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
4
+
//
5
+
6
+
namespacePolylineAlgorithm.Benchmarks;
7
+
8
+
usingBenchmarkDotNet.Attributes;
9
+
usingBenchmarkDotNet.Engines;
10
+
usingPolylineAlgorithm.Abstraction;
11
+
usingPolylineAlgorithm.Extensions;
12
+
usingPolylineAlgorithm.Utility;
13
+
usingSystem.Collections.Generic;
14
+
15
+
/// <summary>
16
+
/// Benchmarks for <see cref="AbstractPolylineEncoder{TCoordinate, TPolyline}"/>.
17
+
/// </summary>
18
+
publicclassPolylineEncoderBenchmark{
19
+
privatereadonlyConsumer_consumer=new();
20
+
21
+
/// <summary>
22
+
/// Number of coordinates for benchmarks.
23
+
/// </summary>
24
+
[Params(1,100,1_000)]
25
+
publicintCoordinatesCount{get;set;}
26
+
27
+
#pragma warning disable CS8618// Non-nullable field must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring as nullable.
#pragma warning restore CS8618// Non-nullable field must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring as nullable.
0 commit comments