Skip to content

Commit

Permalink
Benchmarcs: update to net6.0 and stuff (#65)
Browse files Browse the repository at this point in the history
Done for #64, runs can now be:
```ps
.\Benchmarks.cmd --filter *Lock*
```
  • Loading branch information
NickCraver authored Mar 3, 2023
1 parent 5ca4126 commit f044f67
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Benchmarks.cmd
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@ECHO OFF
dotnet run -p .\tests\Benchmark\ -c Release -f netcoreapp2.2 --runtimes net472 netcoreapp2.2 -m
dotnet run --project .\tests\Benchmark\ -c Release -f net6.0 --runtimes net472 net6.0 -m %*
2 changes: 0 additions & 2 deletions tests/Benchmark/ArrayPoolStreamBenchmark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
namespace Benchmark
{
[MemoryDiagnoser]
[SimpleJob(RuntimeMoniker.NetCoreApp31)]
[SimpleJob(RuntimeMoniker.Net472)]
[WarmupCount(2)]
public class ArrayPoolStreamBenchmark
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Benchmark/Benchmark.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net461;net472;net5.0</TargetFrameworks>
<TargetFrameworks>net461;net472;net6.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
Expand Down
2 changes: 0 additions & 2 deletions tests/Benchmark/DelegateBenchmarks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

namespace Benchmark
{
[SimpleJob(RuntimeMoniker.Net472)]
[SimpleJob(RuntimeMoniker.NetCoreApp31)]
[MemoryDiagnoser, MinColumn, MaxColumn]
[GroupBenchmarksBy(BenchmarkLogicalGroupRule.ByCategory)]
[CategoriesColumn]
Expand Down
2 changes: 0 additions & 2 deletions tests/Benchmark/LockBenchmarks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

namespace Benchmark
{
[SimpleJob(RuntimeMoniker.Net472)]
[SimpleJob(RuntimeMoniker.NetCoreApp31)]
[MemoryDiagnoser, MinColumn, MaxColumn]
public class LockBenchmarks : BenchmarkBase
{
Expand Down
2 changes: 0 additions & 2 deletions tests/Benchmark/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ private static void Main(string[] args)
{
if (args == null || args.Length == 0)
{ // if no args, we're probably using Ctrl+F5 in the IDE; enlargen thyself!
#pragma warning disable CA1416 // windows only
try { Console.WindowWidth = Console.LargestWindowWidth - 20; } catch { }
#pragma warning restore CA1416 // windows only
}
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args);
}
Expand Down

0 comments on commit f044f67

Please sign in to comment.