Range.Range.md

February 14, 2024 ยท View on GitHub

Range.Range

Source

Range.cs

References:

Results:


BenchmarkDotNet v0.13.12, Windows 10 (10.0.19045.3996/22H2/2022Update)
Intel Core i7-7567U CPU 3.50GHz (Kaby Lake), 1 CPU, 4 logical and 2 physical cores
.NET SDK 9.0.100-preview.1.24101.2
  [Host]     : .NET 6.0.26 (6.0.2623.60508), X64 RyuJIT AVX2
  Job-THTHEP : .NET 8.0.0 (8.0.23.53103), X64 RyuJIT AVX2
  Job-OQLBIM : .NET 9.0.0 (9.0.24.8009), X64 RyuJIT AVX2


MethodRuntimeStartCountMeanErrorStdDevRatioRatioSDGen0AllocatedAlloc Ratio
ForLoop.NET 8.0010033.65 ns0.499 ns0.442 nsbaseline--NA
Linq.NET 8.00100212.26 ns0.723 ns0.641 ns6.31x slower0.09x0.019140 BNA
LinqFaster.NET 8.00100134.25 ns8.429 ns24.852 ns3.25x slower0.15x0.2027424 BNA
LinqFaster_SIMD.NET 8.00100100.81 ns2.641 ns7.705 ns3.05x slower0.20x0.2027424 BNA
LinqAF.NET 8.0010061.40 ns1.226 ns2.449 ns1.76x slower0.07x--NA
StructLinq.NET 8.0010040.76 ns1.188 ns3.446 ns1.30x slower0.08x--NA
Hyperlinq.NET 8.0010045.72 ns0.909 ns1.082 ns1.37x slower0.03x--NA
ForLoop.NET 9.0010033.66 ns0.382 ns0.484 nsbaseline--NA
Linq.NET 9.00100212.99 ns1.365 ns1.210 ns6.31x slower0.12x0.019140 BNA
LinqFaster.NET 9.00100113.49 ns2.247 ns2.760 ns3.37x slower0.10x0.2027424 BNA
LinqFaster_SIMD.NET 9.0010090.77 ns1.250 ns1.337 ns2.69x slower0.05x0.2027424 BNA
LinqAF.NET 9.0010053.87 ns1.064 ns1.225 ns1.60x slower0.05x--NA
StructLinq.NET 9.0010041.36 ns0.473 ns0.395 ns1.23x slower0.02x--NA
Hyperlinq.NET 9.0010050.35 ns0.892 ns1.466 ns1.50x slower0.05x--NA