Array.ValueType.ArrayValueTypeSelect.md

February 14, 2024 ยท View on GitHub

Array.ValueType.ArrayValueTypeSelect

Source

ArrayValueTypeSelect.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


MethodRuntimeCountMeanErrorStdDevRatioRatioSDGen0AllocatedAlloc Ratio
ForLoop.NET 8.0100106.32 ns1.862 ns2.843 nsbaseline--NA
ForeachLoop.NET 8.010099.85 ns2.029 ns3.036 ns1.07x faster0.03x--NA
Linq.NET 8.0100957.70 ns5.144 ns4.016 ns8.97x slower0.26x0.0496104 BNA
LinqFaster.NET 8.0100727.04 ns9.560 ns7.464 ns6.81x slower0.18x3.06706424 BNA
LinqFasterer.NET 8.0100968.19 ns11.624 ns9.075 ns9.06x slower0.31x3.08616456 BNA
LinqAF.NET 8.01001,054.60 ns12.803 ns10.691 ns9.88x slower0.32x--NA
StructLinq.NET 8.0100248.60 ns3.421 ns2.671 ns2.33x slower0.08x0.015332 BNA
StructLinq_ValueDelegate.NET 8.0100138.90 ns2.641 ns3.871 ns1.31x slower0.06x--NA
Hyperlinq.NET 8.0100296.81 ns2.602 ns2.173 ns2.78x slower0.09x--NA
Hyperlinq_ValueDelegate.NET 8.010097.66 ns1.922 ns2.288 ns1.10x faster0.05x--NA
Faslinq.NET 8.0100768.24 ns8.693 ns10.676 ns7.19x slower0.25x3.06706424 BNA
ForLoop.NET 9.0100105.95 ns2.123 ns1.986 nsbaseline--NA
ForeachLoop.NET 9.010097.93 ns1.686 ns2.008 ns1.08x faster0.03x--NA
Linq.NET 9.0100953.42 ns6.885 ns5.749 ns8.98x slower0.18x0.0496104 BNA
LinqFaster.NET 9.0100720.89 ns10.191 ns7.956 ns6.78x slower0.15x3.06706424 BNA
LinqFasterer.NET 9.0100930.53 ns15.475 ns14.475 ns8.79x slower0.22x3.08616456 BNA
LinqAF.NET 9.01001,071.91 ns4.416 ns3.915 ns10.11x slower0.21x--NA
StructLinq.NET 9.0100236.82 ns3.306 ns3.092 ns2.24x slower0.04x0.015332 BNA
StructLinq_ValueDelegate.NET 9.0100114.49 ns1.005 ns0.891 ns1.08x slower0.02x--NA
Hyperlinq.NET 9.0100292.94 ns2.127 ns1.661 ns2.75x slower0.05x--NA
Hyperlinq_ValueDelegate.NET 9.0100105.19 ns1.449 ns1.488 ns1.01x faster0.03x--NA
Faslinq.NET 9.0100704.00 ns9.847 ns7.688 ns6.62x slower0.14x3.06706424 BNA