Skip to content

Commit 3ee9696

Browse files
author
Petr Sramek
committed
added more .NET framewroks to becnhmarks
1 parent 8254939 commit 3ee9696

File tree

4 files changed

+51
-2
lines changed

4 files changed

+51
-2
lines changed

.github/workflows/dotnet.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
run: dotnet test --no-restore --no-build --configuration Release --verbosity normal
5555

5656
benchmark:
57-
name: Benchmarks on ${{ matrix.os }}
57+
name: Benchmark on ${{ matrix.os }}
5858
needs: [build]
5959

6060
strategy:
@@ -65,6 +65,34 @@ jobs:
6565

6666
steps:
6767
- uses: actions/checkout@v3
68+
- name: Setup .NET Core 2.0
69+
uses: actions/setup-dotnet@v3
70+
with:
71+
dotnet-version: 2.0.x
72+
- name: Setup .NET Core 2.1
73+
uses: actions/setup-dotnet@v3
74+
with:
75+
dotnet-version: 2.1.x
76+
- name: Setup .NET Core 2.2
77+
uses: actions/setup-dotnet@v3
78+
with:
79+
dotnet-version: 2.2.x
80+
- name: Setup .NET Core 3.0
81+
uses: actions/setup-dotnet@v3
82+
with:
83+
dotnet-version: 3.0.x
84+
- name: Setup .NET Core 3.1
85+
uses: actions/setup-dotnet@v3
86+
with:
87+
dotnet-version: 3.1.x
88+
- name: Setup .NET 5
89+
uses: actions/setup-dotnet@v3
90+
with:
91+
dotnet-version: 5.x
92+
- name: Setup .NET 6
93+
uses: actions/setup-dotnet@v3
94+
with:
95+
dotnet-version: 6.x
6896
- name: Setup .NET 7
6997
uses: actions/setup-dotnet@v3
7098
with:
@@ -89,4 +117,4 @@ jobs:
89117
merge-multiple: true
90118
- name: Benchmark
91119
working-directory: ./benchmarks/PolylineAlgorithm.Benchmarks
92-
run: dotnet run -c Release -f net9.0 --runtimes net7.0 net8.0 net9.0 --filter '*Benchmark*'
120+
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 '*Benchmark*'

benchmarks/PolylineAlgorithm.Benchmarks/DecodeBenchmark.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ namespace PolylineAlgorithm.Benchmarks;
1515

1616
[RankColumn]
1717
[MemoryDiagnoser]
18+
[SimpleJob(RuntimeMoniker.NetCoreApp20)]
19+
[SimpleJob(RuntimeMoniker.NetCoreApp21)]
20+
[SimpleJob(RuntimeMoniker.NetCoreApp22)]
21+
[SimpleJob(RuntimeMoniker.NetCoreApp30)]
22+
[SimpleJob(RuntimeMoniker.NetCoreApp31)]
23+
[SimpleJob(RuntimeMoniker.Net50)]
24+
[SimpleJob(RuntimeMoniker.Net60)]
1825
[SimpleJob(RuntimeMoniker.Net70)]
1926
[SimpleJob(RuntimeMoniker.Net80)]
2027
[SimpleJob(RuntimeMoniker.Net90)]

benchmarks/PolylineAlgorithm.Benchmarks/EncodeBenchmark.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ namespace PolylineAlgorithm.Benchmarks;
1515

1616
[RankColumn]
1717
[MemoryDiagnoser]
18+
[SimpleJob(RuntimeMoniker.NetCoreApp20)]
19+
[SimpleJob(RuntimeMoniker.NetCoreApp21)]
20+
[SimpleJob(RuntimeMoniker.NetCoreApp22)]
21+
[SimpleJob(RuntimeMoniker.NetCoreApp30)]
22+
[SimpleJob(RuntimeMoniker.NetCoreApp31)]
23+
[SimpleJob(RuntimeMoniker.Net50)]
24+
[SimpleJob(RuntimeMoniker.Net60)]
1825
[SimpleJob(RuntimeMoniker.Net70)]
1926
[SimpleJob(RuntimeMoniker.Net80)]
2027
[SimpleJob(RuntimeMoniker.Net90)]

benchmarks/PolylineAlgorithm.Benchmarks/Program.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ namespace PolylineAlgorithm.Benchmarks;
1313
internal class Program {
1414
static void Main(string[] args) {
1515
var config = DefaultConfig.Instance
16+
.AddJob(Job.Default.WithRuntime(CoreRuntime.Core20))
17+
.AddJob(Job.Default.WithRuntime(CoreRuntime.Core21))
18+
.AddJob(Job.Default.WithRuntime(CoreRuntime.Core22))
19+
.AddJob(Job.Default.WithRuntime(CoreRuntime.Core30))
20+
.AddJob(Job.Default.WithRuntime(CoreRuntime.Core31))
21+
.AddJob(Job.Default.WithRuntime(CoreRuntime.Core50))
22+
.AddJob(Job.Default.WithRuntime(CoreRuntime.Core60))
1623
.AddJob(Job.Default.WithRuntime(CoreRuntime.Core70))
1724
.AddJob(Job.Default.WithRuntime(CoreRuntime.Core80))
1825
.AddJob(Job.Default.WithRuntime(CoreRuntime.Core90));

0 commit comments

Comments
 (0)