We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi, i test your benchmark and get unexcepted results: my first test was on this class : https://github.com/aalmada/ArrayIteration/blob/master/Benchmarks/ReadSliceBenchmarks.cs
result :
and when i remove some of methods get me other result. code:
public class ReadSliceBenchmarks : ReadBenchmarksBase { [Benchmark(Baseline = true)] public int Array_ForEach() => Sum.ForEach(_array); [Benchmark] public int Array_For() => Sum.For(_array, 0, _array.Length); [Benchmark] public int Span_ForEach() => Sum.ForEach(_array.AsSpan()); [Benchmark] public int ArraySegment_For() => Sum.For(_arraySegment); //[Benchmark] //public int ArraySegment_ForEach() // => Sum.ForEach(_arraySegment); //[Benchmark] //public int ArraySegment_Linq() // => _arraySegment.Sum(); //[Benchmark] //public int ArraySegment_ArrayFor() // => Sum.For(_arraySegment.Array, _arraySegment.Offset, _arraySegment.Count); //[Benchmark] //public int ArraySegment_SpanForEach() // => Sum.ForEach(_arraySegment.AsSpan()); }
Result:
this is related to dotnet/runtime#54758
The text was updated successfully, but these errors were encountered:
No branches or pull requests
hi, i test your benchmark and get unexcepted results:
my first test was on this class :
https://github.com/aalmada/ArrayIteration/blob/master/Benchmarks/ReadSliceBenchmarks.cs
result :
and when i remove some of methods get me other result.
code:
Result:
this is related to dotnet/runtime#54758
The text was updated successfully, but these errors were encountered: