Skip to content

Commit b79f721

Browse files
author
Petr Sramek
committed
updated to .NET 9, nuget packages version are wilcarded for minor version, code styling applied
1 parent ee25257 commit b79f721

25 files changed

+237
-429
lines changed

benchmarks/PolylineAlgorithm.Benchmarks/PolylineAlgorithm.Benchmarks.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
<LangVersion>13.0</LangVersion>
77
<Nullable>enable</Nullable>
88
<ImplicitUsings>enable</ImplicitUsings>
99
<InvariantGlobalization>true</InvariantGlobalization>
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="BenchmarkDotNet" Version="0.13.11" />
13+
<PackageReference Include="BenchmarkDotNet" Version="0.*" />
1414
</ItemGroup>
1515

1616
<ItemGroup>

benchmarks/PolylineAlgorithm.Benchmarks/PolylineEncodingBenchmark.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
44
//
55

6-
namespace PolylineAlgorithm.Benchmarks
7-
{
6+
namespace PolylineAlgorithm.Benchmarks {
87
using BenchmarkDotNet.Attributes;
98
using BenchmarkDotNet.Engines;
109
using PolylineAlgorithm.Encoding;
1110

1211
[MemoryDiagnoser]
1312
[MarkdownExporter]
14-
public class PolylineEncodingBenchmark
15-
{
13+
public class PolylineEncodingBenchmark {
1614
private Consumer _consumer = new Consumer();
1715

1816
[Params(1_000, 100_000, 10_000_000, Priority = 2)]
@@ -25,8 +23,7 @@ public class PolylineEncodingBenchmark
2523
public required string Polyline { get; set; }
2624

2725
[GlobalSetup]
28-
public void Setup()
29-
{
26+
public void Setup() {
3027
Encoder = new DefaultPolylineEncoding();
3128
Coordinates = [(42.88895, -100.30630), (44.91513, 19.22495), (20.40244, 7.97495), (-15.52130, -63.74380), (-78.95116, -72.18130), (38.63072, 88.13120), (60.81071, 151.41245), (-58.20769, -173.43130), (59.40939, 83.91245), (-58.20769, 61.41245), (-20.86278, -119.99380), (34.10374, -150.93130), (-71.15367, 31.88120), (-72.04138, -153.74380), (-49.99635, -107.33755), (76.12614, 135.94370), (70.05664, 41.72495), (63.43879, -77.80630), (13.68456, -90.46255), (-75.90519, -7.49380), (74.71112, -127.02505), (-66.61109, 17.81870), (-49.08384, 37.50620)];
3229
Polyline = "}vwdGjafcRsvjKi}pxUhsrtCngtcAjjgzEdqvtLrscbKj}nr@wetlUc`nq]}_kfCyrfaK~wluUl`u}|@wa{lUmmuap@va{lU~oihCu||bF`|era@wsnnIjny{DxamaScqxza@dklDf{}kb@mtpeCavfzGqhx`Wyzzkm@jm`d@dba~Pppkg@h}pxU|rtnHp|flA|~xaPuykyN}fhv[h}pxUx~p}Ymx`sZih~iB{edwB";

benchmarks/PolylineAlgorithm.Benchmarks/Program.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
44
//
55

6-
namespace PolylineAlgorithm.Benchmarks
7-
{
6+
namespace PolylineAlgorithm.Benchmarks {
87
using BenchmarkDotNet.Running;
98

10-
internal class Program
11-
{
12-
static void Main(string[] args)
13-
{
9+
internal class Program {
10+
static void Main(string[] args) {
1411
BenchmarkRunner
1512
.Run<PolylineEncodingBenchmark>();
1613
}

benchmarks/PolylineAlgorithm.Implementation.Benchmarks/Constants.cs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
44
//
55

6-
namespace PolylineAlgorithm.Implementation.Benchmarks
7-
{
6+
namespace PolylineAlgorithm.Implementation.Benchmarks {
87
/// <summary>
98
/// Defines global constant values
109
/// </summary>
11-
internal static class Constants
12-
{
10+
internal static class Constants {
1311
#region Constants
1412

1513
/// <summary>
@@ -27,8 +25,7 @@ internal static class Constants
2725
/// <summary>
2826
/// Defines ASCII characters constant values
2927
/// </summary>
30-
internal static class ASCII
31-
{
28+
internal static class ASCII {
3229
#region Constants
3330

3431
/// <summary>
@@ -52,8 +49,7 @@ internal static class ASCII
5249
/// <summary>
5350
/// Defines coordinates constant values
5451
/// </summary>
55-
internal static class Coordinate
56-
{
52+
internal static class Coordinate {
5753
#region Constants
5854

5955
/// <summary>

0 commit comments

Comments
 (0)