Array.ValueType.ArrayValueTypeSelectSum.md

February 14, 2024 ยท View on GitHub

Array.ValueType.ArrayValueTypeSelectSum

Source

ArrayValueTypeSelectSum.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.010043.11 ns0.889 ns1.303 nsbaseline--NA
ForeachLoop.NET 8.010042.56 ns0.631 ns0.559 ns1.02x faster0.04x--NA
Linq.NET 8.0100227.58 ns3.760 ns4.023 ns5.29x slower0.15x0.015332 BNA
LinqFaster.NET 8.0100135.68 ns2.542 ns2.253 ns3.14x slower0.13x--NA
LinqFasterer.NET 8.0100132.64 ns2.047 ns1.709 ns3.06x slower0.12x--NA
LinqAF.NET 8.0100243.16 ns1.735 ns1.448 ns5.61x slower0.21x--NA
StructLinq.NET 8.0100178.06 ns3.271 ns3.766 ns4.15x slower0.14x0.015332 BNA
StructLinq_ValueDelegate.NET 8.010083.61 ns0.451 ns0.400 ns1.93x slower0.07x--NA
Hyperlinq.NET 8.0100122.32 ns1.175 ns1.099 ns2.83x slower0.10x--NA
Hyperlinq_ValueDelegate.NET 8.010042.91 ns0.739 ns0.821 ns1.00x faster0.03x--NA
Faslinq.NET 8.0100278.56 ns4.840 ns4.291 ns6.44x slower0.26x0.2027424 BNA
ForLoop.NET 9.010043.12 ns0.816 ns1.386 nsbaseline--NA
ForeachLoop.NET 9.010042.53 ns0.566 ns0.502 ns1.03x faster0.04x--NA
Linq.NET 9.0100224.89 ns2.228 ns1.860 ns5.14x slower0.21x0.015332 BNA
LinqFaster.NET 9.0100135.08 ns2.248 ns1.877 ns3.09x slower0.11x--NA
LinqFasterer.NET 9.0100177.80 ns2.865 ns3.185 ns4.11x slower0.14x--NA
LinqAF.NET 9.0100288.77 ns1.272 ns0.993 ns6.59x slower0.27x--NA
StructLinq.NET 9.0100179.01 ns3.595 ns3.362 ns4.11x slower0.14x0.015332 BNA
StructLinq_ValueDelegate.NET 9.010051.88 ns0.871 ns1.132 ns1.20x slower0.05x--NA
Hyperlinq.NET 9.0100100.63 ns1.271 ns1.127 ns2.31x slower0.10x--NA
Hyperlinq_ValueDelegate.NET 9.010043.44 ns0.902 ns0.753 ns1.01x faster0.04x--NA
Faslinq.NET 9.0100255.68 ns5.115 ns7.497 ns5.91x slower0.28x0.2027424 BNA