From 23cb3fcfefcca4a1d75c4b0c62b22b751d4cffbf Mon Sep 17 00:00:00 2001 From: Richard Webb Date: Sat, 24 Aug 2024 02:54:01 +0100 Subject: [PATCH] Update BenchmarkDotNet to 0.14.0 (#502) * Update BenchmarkDotNet to 0.14.0 * Update release notes --- .../Expecto.BenchmarkDotNet.fs | 7 ++ RELEASE_NOTES.md | 4 + paket.dependencies | 2 +- paket.lock | 83 +++++++++++-------- 4 files changed, 61 insertions(+), 35 deletions(-) diff --git a/Expecto.BenchmarkDotNet/Expecto.BenchmarkDotNet.fs b/Expecto.BenchmarkDotNet/Expecto.BenchmarkDotNet.fs index daee159d..9898f16c 100644 --- a/Expecto.BenchmarkDotNet/Expecto.BenchmarkDotNet.fs +++ b/Expecto.BenchmarkDotNet/Expecto.BenchmarkDotNet.fs @@ -10,6 +10,7 @@ open BenchmarkDotNet.Analysers open BenchmarkDotNet.Columns open BenchmarkDotNet.Diagnosers open BenchmarkDotNet.Exporters +open BenchmarkDotNet.EventProcessors open BenchmarkDotNet.Filters open BenchmarkDotNet.Jobs open BenchmarkDotNet.Loggers @@ -46,6 +47,8 @@ module BenchmarkDotNet = buildTimeout: TimeSpan configAnalysisConclusion: IReadOnlyList columnHidingRules: IColumnHidingRule list + eventProcessors: EventProcessor list + categoryDiscoverer: ICategoryDiscoverer } interface IConfig with member x.GetColumnProviders() = Seq.ofList x.columnProviders @@ -67,6 +70,8 @@ module BenchmarkDotNet = member x.GetColumnHidingRules() = Seq.ofList x.columnHidingRules member x.BuildTimeout = x.buildTimeout member x.ConfigAnalysisConclusion = x.configAnalysisConclusion + member x.GetEventProcessors() = Seq.ofList x.eventProcessors + member x.CategoryDiscoverer = x.categoryDiscoverer let private synchronisedLogger = let cl = ConsoleLogger.Default @@ -106,6 +111,8 @@ module BenchmarkDotNet = columnHidingRules = def.GetColumnHidingRules() |> List.ofSeq buildTimeout = def.BuildTimeout configAnalysisConclusion = def.ConfigAnalysisConclusion + eventProcessors = def.GetEventProcessors() |> List.ofSeq + categoryDiscoverer = def.CategoryDiscoverer } /// Run a performance test: pass the annotated type as a type param diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 17c05cbc..4497a01f 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,3 +1,7 @@ +### 11.0.0-alpha2 - 2024-08-18 +* Breaking change: Update BenchmarkDotNet in Expecto.BenchmarkDotNet to 0.14.0 (#502) + * 'BenchmarkConfig' has new 'eventProcessors' and 'categoryDiscoverer' properties. + ### 11.0.0-alpha1 - 2024-08-14 * Fix testTheory issue where null and empty string produce duplicate test names (#494), thanks @Numpsy * Breaking Change: FsCheck 3 is now the default for Expecto.FsCheck, since FsCheck 2 is no longer supported. FsCheck 2 support is still available under the `-fscheck2` version suffix (i.e. install Expecto.FsCheck with version [11.0.0-alpha1-fscheck2](https://www.nuget.org/packages/Expecto.FsCheck/11.0.0-alpha1-fscheck2)) diff --git a/paket.dependencies b/paket.dependencies index 3c2052b3..2ded04dd 100644 --- a/paket.dependencies +++ b/paket.dependencies @@ -8,7 +8,7 @@ nuget FsCheck ~> 2.14 nuget Hopac ~> 0.4 nuget DiffPlex ~> 1.5 nuget Mono.Cecil ~> 0.11 -nuget BenchmarkDotNet ~> 0.13.5 +nuget BenchmarkDotNet ~> 0.14.0 group FsCheck3 source https://api.nuget.org/v3/index.json diff --git a/paket.lock b/paket.lock index 05cdb1d2..e1287fd6 100644 --- a/paket.lock +++ b/paket.lock @@ -2,24 +2,24 @@ STORAGE: NONE RESTRICTION: || (== net6.0) (== netstandard2.1) NUGET remote: https://api.nuget.org/v3/index.json - BenchmarkDotNet (0.13.5) - BenchmarkDotNet.Annotations (>= 0.13.5) - CommandLineParser (>= 2.4.3) + BenchmarkDotNet (0.14) + BenchmarkDotNet.Annotations (>= 0.14) + CommandLineParser (>= 2.9.1) Gee.External.Capstone (>= 2.3) Iced (>= 1.17) - Microsoft.CodeAnalysis.CSharp (>= 3.0) + Microsoft.CodeAnalysis.CSharp (>= 4.1) Microsoft.Diagnostics.Runtime (>= 2.2.332302) - Microsoft.Diagnostics.Tracing.TraceEvent (>= 3.0.2) + Microsoft.Diagnostics.Tracing.TraceEvent (>= 3.1.8) Microsoft.DotNet.PlatformAbstractions (>= 3.1.6) Microsoft.Win32.Registry (>= 5.0) - restriction: == netstandard2.1 - Perfolizer (>= 0.2.1) - System.Management (>= 6.0) + Perfolizer (0.3.17) + System.Management (>= 5.0) System.Numerics.Vectors (>= 4.5) - restriction: == netstandard2.1 System.Reflection.Emit (>= 4.7) - restriction: == netstandard2.1 System.Reflection.Emit.Lightweight (>= 4.7) - restriction: == netstandard2.1 System.Threading.Tasks.Extensions (>= 4.5.4) - restriction: == netstandard2.1 - BenchmarkDotNet.Annotations (0.13.5) - CommandLineParser (2.7.82) + BenchmarkDotNet.Annotations (0.14) + CommandLineParser (2.9.1) DiffPlex (1.7.1) FsCheck (2.16.5) FSharp.Core (>= 4.2.3) @@ -29,17 +29,28 @@ NUGET FSharp.Core (>= 4.5.2) Iced (1.18) Microsoft.Bcl.AsyncInterfaces (7.0) - Microsoft.CodeAnalysis.Analyzers (3.0) - Microsoft.CodeAnalysis.Common (3.5) - Microsoft.CodeAnalysis.Analyzers (>= 3.0.0-beta2.20059.3) - System.Collections.Immutable (>= 1.5) - System.Memory (>= 4.5.3) - System.Reflection.Metadata (>= 1.6) - System.Runtime.CompilerServices.Unsafe (>= 4.6) - System.Text.Encoding.CodePages (>= 4.5.1) - System.Threading.Tasks.Extensions (>= 4.5.3) - Microsoft.CodeAnalysis.CSharp (3.5) - Microsoft.CodeAnalysis.Common (3.5) + Microsoft.CodeAnalysis.Analyzers (3.3.4) + Microsoft.CodeAnalysis.Common (4.10) + Microsoft.CodeAnalysis.Analyzers (>= 3.3.4) + System.Buffers (>= 4.5.1) + System.Collections.Immutable (>= 8.0) + System.Memory (>= 4.5.5) + System.Numerics.Vectors (>= 4.5) + System.Reflection.Metadata (>= 8.0) + System.Runtime.CompilerServices.Unsafe (>= 6.0) + System.Text.Encoding.CodePages (>= 7.0) + System.Threading.Tasks.Extensions (>= 4.5.4) + Microsoft.CodeAnalysis.CSharp (4.10) + Microsoft.CodeAnalysis.Analyzers (>= 3.3.4) + Microsoft.CodeAnalysis.Common (4.10) + System.Buffers (>= 4.5.1) + System.Collections.Immutable (>= 8.0) + System.Memory (>= 4.5.5) + System.Numerics.Vectors (>= 4.5) + System.Reflection.Metadata (>= 8.0) + System.Runtime.CompilerServices.Unsafe (>= 6.0) + System.Text.Encoding.CodePages (>= 7.0) + System.Threading.Tasks.Extensions (>= 4.5.4) Microsoft.Diagnostics.NETCore.Client (0.2.410101) Microsoft.Bcl.AsyncInterfaces (>= 1.1) Microsoft.Extensions.Logging (>= 2.1.1) @@ -47,8 +58,12 @@ NUGET Microsoft.Diagnostics.NETCore.Client (>= 0.2.251802) System.Collections.Immutable (>= 5.0) System.Runtime.CompilerServices.Unsafe (>= 5.0) - Microsoft.Diagnostics.Tracing.TraceEvent (3.0.8) - System.Runtime.CompilerServices.Unsafe (>= 5.0) + Microsoft.Diagnostics.Tracing.TraceEvent (3.1.13) + Microsoft.Win32.Registry (>= 5.0) + System.Collections.Immutable (>= 8.0) + System.Reflection.Metadata (>= 8.0) + System.Reflection.TypeExtensions (>= 4.7) + System.Runtime.CompilerServices.Unsafe (>= 6.0) Microsoft.DotNet.PlatformAbstractions (3.1.6) Microsoft.Extensions.DependencyInjection (7.0) Microsoft.Extensions.DependencyInjection.Abstractions (>= 7.0) @@ -68,18 +83,16 @@ NUGET Microsoft.Extensions.Primitives (7.0) System.Memory (>= 4.5.5) - restriction: || (&& (== net6.0) (>= net462)) (== netstandard2.1) System.Runtime.CompilerServices.Unsafe (>= 6.0) - Microsoft.NETCore.Platforms (3.1) - restriction: || (== net6.0) (&& (== netstandard2.1) (>= netcoreapp2.0)) (&& (== netstandard2.1) (>= netcoreapp3.1)) - Microsoft.Win32.Registry (5.0) - restriction: == netstandard2.1 + Microsoft.Win32.Registry (5.0) System.Buffers (>= 4.5.1) - restriction: || (&& (== net6.0) (>= monoandroid) (< netstandard1.3)) (&& (== net6.0) (>= monotouch)) (&& (== net6.0) (< netcoreapp2.0)) (&& (== net6.0) (>= xamarinios)) (&& (== net6.0) (>= xamarinmac)) (&& (== net6.0) (>= xamarintvos)) (&& (== net6.0) (>= xamarinwatchos)) (== netstandard2.1) System.Memory (>= 4.5.4) - restriction: || (&& (== net6.0) (< netcoreapp2.0)) (&& (== net6.0) (< netcoreapp2.1)) (&& (== net6.0) (>= uap10.1)) (== netstandard2.1) System.Security.AccessControl (>= 5.0) System.Security.Principal.Windows (>= 5.0) Mono.Cecil (0.11.4) - Perfolizer (0.2.1) - System.Memory (>= 4.5.3) - System.Buffers (4.5.1) - restriction: == netstandard2.1 + Perfolizer (0.3.17) + System.Buffers (4.5.1) System.CodeDom (7.0) - System.Collections.Immutable (7.0) + System.Collections.Immutable (8.0) System.Memory (>= 4.5.5) - restriction: || (&& (== net6.0) (>= net462)) (== netstandard2.1) System.Runtime.CompilerServices.Unsafe (>= 6.0) System.Diagnostics.DiagnosticSource (7.0.2) - restriction: || (&& (== net6.0) (>= net462)) (&& (== net6.0) (< netstandard2.1)) (== netstandard2.1) @@ -91,18 +104,20 @@ NUGET System.Buffers (>= 4.5.1) - restriction: || (&& (== net6.0) (>= monotouch)) (&& (== net6.0) (>= net461)) (&& (== net6.0) (< netcoreapp2.0)) (&& (== net6.0) (< netstandard1.1)) (&& (== net6.0) (< netstandard2.0)) (&& (== net6.0) (>= xamarinios)) (&& (== net6.0) (>= xamarinmac)) (&& (== net6.0) (>= xamarintvos)) (&& (== net6.0) (>= xamarinwatchos)) (== netstandard2.1) System.Numerics.Vectors (>= 4.4) - restriction: || (&& (== net6.0) (< netcoreapp2.0)) (== netstandard2.1) System.Runtime.CompilerServices.Unsafe (>= 4.5.3) - restriction: || (&& (== net6.0) (>= monotouch)) (&& (== net6.0) (>= net461)) (&& (== net6.0) (< netcoreapp2.0)) (&& (== net6.0) (< netcoreapp2.1)) (&& (== net6.0) (< netstandard1.1)) (&& (== net6.0) (< netstandard2.0)) (&& (== net6.0) (>= uap10.1)) (&& (== net6.0) (>= xamarinios)) (&& (== net6.0) (>= xamarinmac)) (&& (== net6.0) (>= xamarintvos)) (&& (== net6.0) (>= xamarinwatchos)) (== netstandard2.1) - System.Numerics.Vectors (4.5) - restriction: == netstandard2.1 + System.Numerics.Vectors (4.5) System.Reflection.Emit (4.7) - restriction: == netstandard2.1 System.Reflection.Emit.Lightweight (4.7) - restriction: == netstandard2.1 - System.Reflection.Metadata (1.8) - System.Collections.Immutable (>= 1.7) - restriction: || (&& (== net6.0) (>= net45)) (&& (== net6.0) (< netcoreapp3.1)) (&& (== net6.0) (< netstandard1.1)) (&& (== net6.0) (< netstandard2.0)) (== netstandard2.1) + System.Reflection.Metadata (8.0) + System.Collections.Immutable (>= 8.0) + System.Memory (>= 4.5.5) - restriction: || (&& (== net6.0) (>= net462)) (== netstandard2.1) + System.Reflection.TypeExtensions (4.7) System.Runtime.CompilerServices.Unsafe (6.0) System.Security.AccessControl (6.0) - restriction: == netstandard2.1 System.Security.Principal.Windows (>= 5.0) - restriction: || (&& (== net6.0) (>= net461)) (== netstandard2.1) System.Security.Principal.Windows (5.0) - restriction: == netstandard2.1 - System.Text.Encoding.CodePages (4.7) - Microsoft.NETCore.Platforms (>= 3.1) - restriction: || (== net6.0) (&& (== netstandard2.1) (>= netcoreapp2.0)) (&& (== netstandard2.1) (>= netcoreapp3.1)) - System.Runtime.CompilerServices.Unsafe (>= 4.7) - restriction: || (&& (== net6.0) (>= net461)) (&& (== net6.0) (< netcoreapp2.0)) (&& (== net6.0) (< netcoreapp3.1)) (== netstandard2.1) + System.Text.Encoding.CodePages (8.0) + System.Memory (>= 4.5.5) - restriction: || (&& (== net6.0) (>= net462)) (== netstandard2.1) + System.Runtime.CompilerServices.Unsafe (>= 6.0) System.Threading.Tasks.Extensions (4.5.4) System.Runtime.CompilerServices.Unsafe (>= 4.5.3) - restriction: || (&& (== net6.0) (>= net461)) (&& (== net6.0) (< netcoreapp2.1)) (&& (== net6.0) (< netstandard1.0)) (&& (== net6.0) (< netstandard2.0)) (&& (== net6.0) (>= wp8)) (== netstandard2.1)