Skip to content

Commit 35869c2

Browse files
author
Petr Sramek
committed
updated benchmark runs settings
1 parent b8344f4 commit 35869c2

File tree

3 files changed

+3
-25
lines changed

3 files changed

+3
-25
lines changed

.github/workflows/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ jobs:
6262
merge-multiple: true
6363
- name: Benchmark
6464
working-directory: ./benchmarks/PolylineAlgorithm.Benchmarks
65-
run: dotnet run -c Release -f net9.0 --runtimes netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 net5.0 net6.0 net7.0 net8.0 net9.0 --filter *
65+
run: dotnet run -c Release -f net9.0 --filter *

benchmarks/PolylineAlgorithm.Benchmarks/DecodeBenchmark.cs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ namespace PolylineAlgorithm.Benchmarks;
77

88
using BenchmarkDotNet.Attributes;
99
using BenchmarkDotNet.Engines;
10-
using BenchmarkDotNet.Jobs;
1110
using BenchmarkDotNet.Order;
1211
using Cloudikka.PolylineAlgorithm.Encoding;
1312
using PolylineAlgorithm;
@@ -16,17 +15,7 @@ namespace PolylineAlgorithm.Benchmarks;
1615
[RankColumn]
1716
[MemoryDiagnoser]
1817
[MarkdownExporter]
19-
[SimpleJob(RuntimeMoniker.NetCoreApp20)]
20-
[SimpleJob(RuntimeMoniker.NetCoreApp21)]
21-
[SimpleJob(RuntimeMoniker.NetCoreApp22)]
22-
[SimpleJob(RuntimeMoniker.NetCoreApp30)]
23-
[SimpleJob(RuntimeMoniker.NetCoreApp31)]
24-
[SimpleJob(RuntimeMoniker.Net50)]
25-
[SimpleJob(RuntimeMoniker.Net60)]
26-
[SimpleJob(RuntimeMoniker.Net70)]
27-
[SimpleJob(RuntimeMoniker.Net80)]
28-
[SimpleJob(RuntimeMoniker.Net90)]
29-
[Orderer(SummaryOrderPolicy.Default)]
18+
[Orderer(SummaryOrderPolicy.Method)]
3019
public class DecodeBenchmark {
3120
private readonly Consumer _consumer = new();
3221
public static string String_Polyline { get; } = "}adrJh}}cVazlw@uykyNhaqeE`vfzG_~kY}~`eTsr{~Cwn~aOty_g@thapJvvoqKxt{sStfahDmtvmIfmiqBhjq|HujpgComs{Z}dhdKcidPymnvBqmquE~qrfI`x{lPf|ftGn~}d_@q}saAurjmu@bwr_DxrfaK~{rO~bidPwfduXwlioFlpum@twvfFpmi~VzxcsOqyejYhh|i@pbnr[twvfF_ueUujvbSa_d~ZkcnjZla~f[pmquEebxo[j}nr@xnn|H{gyiKbh{yH`oenn@y{mpIrbd~EmipgH}fuov@hjqtTp|flAttvkFrym_d@|eyCwn~aOfvdNmeawM??{yxdUcidPca{}D_atqGenzcAlra{@trgWhn{aZ??tluqOgu~sH";

benchmarks/PolylineAlgorithm.Benchmarks/EncodeBenchmark.cs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
namespace PolylineAlgorithm.Benchmarks;
77

88
using BenchmarkDotNet.Attributes;
9-
using BenchmarkDotNet.Jobs;
109
using BenchmarkDotNet.Order;
1110
using Cloudikka.PolylineAlgorithm.Encoding;
1211
using PolylineAlgorithm;
@@ -16,17 +15,7 @@ namespace PolylineAlgorithm.Benchmarks;
1615
[RankColumn]
1716
[MemoryDiagnoser]
1817
[MarkdownExporter]
19-
[SimpleJob(RuntimeMoniker.NetCoreApp20)]
20-
[SimpleJob(RuntimeMoniker.NetCoreApp21)]
21-
[SimpleJob(RuntimeMoniker.NetCoreApp22)]
22-
[SimpleJob(RuntimeMoniker.NetCoreApp30)]
23-
[SimpleJob(RuntimeMoniker.NetCoreApp31)]
24-
[SimpleJob(RuntimeMoniker.Net50)]
25-
[SimpleJob(RuntimeMoniker.Net60)]
26-
[SimpleJob(RuntimeMoniker.Net70)]
27-
[SimpleJob(RuntimeMoniker.Net80)]
28-
[SimpleJob(RuntimeMoniker.Net90)]
29-
[Orderer(SummaryOrderPolicy.Default)]
18+
[Orderer(SummaryOrderPolicy.Method)]
3019
public class EncodeBenchmark {
3120
public static IEnumerable<Coordinate> Coordinates_Enumerable { get; } = [new(60.81071, -121.40005), new(70.05664, -38.43130), new(37.52379, -84.83755), new(41.85003, 26.25620), new(68.04709, 110.63120), new(61.48922, 50.16245), new(-4.46018, -58.11880), new(-32.16061, -3.27505), new(-50.89185, -55.30630), new(-28.52070, 90.94370), new(35.26009, 93.75620), new(54.83622, 128.91245), new(1.16022, 37.50620), new(-44.26398, -131.24380), new(-33.34325, 154.22495), new(-59.65879, 90.94370), new(-62.38215, 0.94370), new(72.32117, 40.31870), new(64.66910, 2.34995), new(-61.04971, -84.83755), new(77.10238, -91.86880), new(-72.88859, -129.83755), new(-69.24987, -24.36880), new(77.41254, 119.06870), new(-70.69409, 83.91245), new(78.85650, 75.47495), new(26.83989, 140.16245), new(-24.75069, -108.74380), new(30.53968, -145.30630), new(79.12503, 145.78745), new(-34.51006, 133.13120), new(-73.29753, -60.93130), new(-74.08712, 23.44370), new(-76.57404, 100.78745), new(-76.57404, 100.78745), new(39.72082, 103.59995), new(70.99412, 148.59995), new(82.27591, 138.75620), new(78.29964, -3.27505), new(78.29964, -3.27505), new(-8.65039, 47.34995)];
3221
public static List<PolylinePoint> PolylinePoint_List { get; } = [new(60.81071, -121.40005), new(70.05664, -38.43130), new(37.52379, -84.83755), new(41.85003, 26.25620), new(68.04709, 110.63120), new(61.48922, 50.16245), new(-4.46018, -58.11880), new(-32.16061, -3.27505), new(-50.89185, -55.30630), new(-28.52070, 90.94370), new(35.26009, 93.75620), new(54.83622, 128.91245), new(1.16022, 37.50620), new(-44.26398, -131.24380), new(-33.34325, 154.22495), new(-59.65879, 90.94370), new(-62.38215, 0.94370), new(72.32117, 40.31870), new(64.66910, 2.34995), new(-61.04971, -84.83755), new(77.10238, -91.86880), new(-72.88859, -129.83755), new(-69.24987, -24.36880), new(77.41254, 119.06870), new(-70.69409, 83.91245), new(78.85650, 75.47495), new(26.83989, 140.16245), new(-24.75069, -108.74380), new(30.53968, -145.30630), new(79.12503, 145.78745), new(-34.51006, 133.13120), new(-73.29753, -60.93130), new(-74.08712, 23.44370), new(-76.57404, 100.78745), new(-76.57404, 100.78745), new(39.72082, 103.59995), new(70.99412, 148.59995), new(82.27591, 138.75620), new(78.29964, -3.27505), new(78.29964, -3.27505), new(-8.65039, 47.34995)];

0 commit comments

Comments
 (0)