Skip to content

Commit

Permalink
don't try to run Json_FromString.Jil_ benchmark on ARM64 as it throws…
Browse files Browse the repository at this point in the history
… AccessViolationException

details: dotnet/runtime#64657
  • Loading branch information
adamsitnik committed Mar 1, 2022
1 parent 15f5498 commit eeca195
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/benchmarks/micro/Serializers/Json_FromString.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ public class Json_FromString<T>

[BenchmarkCategory(Categories.ThirdParty)]
[Benchmark(Description = "Jil")]
#if NET7_0 // https://github.com/dotnet/runtime/issues/64657
[OperatingSystemsArchitectureFilter(false, Architecture.Arm64)]
#endif
public T Jil_() => Jil.JSON.Deserialize<T>(serialized, Jil.Options.ISO8601);

[GlobalSetup(Target = nameof(JsonNet_))]
Expand Down

0 comments on commit eeca195

Please sign in to comment.