diff --git a/src/benchmarks/micro/MicroBenchmarks.csproj b/src/benchmarks/micro/MicroBenchmarks.csproj index 95802da72cf..6343e031d70 100644 --- a/src/benchmarks/micro/MicroBenchmarks.csproj +++ b/src/benchmarks/micro/MicroBenchmarks.csproj @@ -15,6 +15,7 @@ true true false + $(DefineConstants);NET7_0_PREVIEW2_OR_GREATER diff --git a/src/benchmarks/micro/Serializers/Json_FromString.cs b/src/benchmarks/micro/Serializers/Json_FromString.cs index a1b89ded024..ed2b3aa0c6d 100644 --- a/src/benchmarks/micro/Serializers/Json_FromString.cs +++ b/src/benchmarks/micro/Serializers/Json_FromString.cs @@ -21,6 +21,9 @@ public class Json_FromString [BenchmarkCategory(Categories.ThirdParty)] [Benchmark(Description = "Jil")] +#if NET7_0 // https://github.com/dotnet/runtime/issues/64657 + [OperatingSystemsArchitectureFilter(false, System.Runtime.InteropServices.Architecture.Arm64)] +#endif public T Jil_() => Jil.JSON.Deserialize(serialized, Jil.Options.ISO8601); [GlobalSetup(Target = nameof(JsonNet_))] diff --git a/src/benchmarks/micro/libraries/System.Collections/Concurrent/AddRemoveFromDifferentThreads.cs b/src/benchmarks/micro/libraries/System.Collections/Concurrent/AddRemoveFromDifferentThreads.cs index 7a63020c671..b824a672c3f 100644 --- a/src/benchmarks/micro/libraries/System.Collections/Concurrent/AddRemoveFromDifferentThreads.cs +++ b/src/benchmarks/micro/libraries/System.Collections/Concurrent/AddRemoveFromDifferentThreads.cs @@ -104,6 +104,9 @@ public void SetupConcurrentStackIteration() } [Benchmark] +#if NET7_0 // https://github.com/dotnet/runtime/issues/64980 + [OperatingSystemsArchitectureFilter(false, System.Runtime.InteropServices.Architecture.Arm64)] +#endif public void ConcurrentStack() => SignalAndWaitForAllTasks(); [IterationSetup(Target = nameof(ConcurrentQueue))] diff --git a/src/benchmarks/micro/libraries/System.Text.RegularExpressions/Perf.Regex.Industry.cs b/src/benchmarks/micro/libraries/System.Text.RegularExpressions/Perf.Regex.Industry.cs index cf251721fba..19a642ee830 100644 --- a/src/benchmarks/micro/libraries/System.Text.RegularExpressions/Perf.Regex.Industry.cs +++ b/src/benchmarks/micro/libraries/System.Text.RegularExpressions/Perf.Regex.Industry.cs @@ -26,7 +26,7 @@ public static string ReadInputFile(string name) public static int Count(Regex r, string input) { -#if NET7_0_OR_GREATER +#if NET7_0_PREVIEW2_OR_GREATER return r.Count(input); #else int count = 0;