File tree Expand file tree Collapse file tree 4 files changed +51
-2
lines changed
benchmarks/PolylineAlgorithm.Benchmarks Expand file tree Collapse file tree 4 files changed +51
-2
lines changed Original file line number Diff line number Diff line change 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 :
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 :
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*'
Original file line number Diff line number Diff 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 ) ]
Original file line number Diff line number Diff 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 ) ]
Original file line number Diff line number Diff line change @@ -13,6 +13,13 @@ namespace PolylineAlgorithm.Benchmarks;
1313internal 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 ) ) ;
You can’t perform that action at this time.
0 commit comments