List.ValueType.ListValueTypeSelectSum.md

February 14, 2024 ยท View on GitHub

List.ValueType.ListValueTypeSelectSum

Source

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


MethodRuntimeCountMeanErrorStdDevMedianRatioRatioSDGen0AllocatedAlloc Ratio
ForLoop.NET 8.010064.77 ns0.792 ns0.702 ns64.57 nsbaseline--NA
ForeachLoop.NET 8.0100117.12 ns1.601 ns1.337 ns116.83 ns1.81x slower0.02x--NA
Linq.NET 8.0100332.15 ns6.307 ns8.842 ns328.48 ns5.12x slower0.09x0.045896 BNA
LinqFaster.NET 8.0100143.68 ns2.849 ns4.518 ns141.82 ns2.22x slower0.06x--NA
LinqFasterer.NET 8.0100542.80 ns10.000 ns17.515 ns538.01 ns8.45x slower0.31x3.06706424 BNA
LinqAF.NET 8.0100419.47 ns8.148 ns17.365 ns417.51 ns6.73x slower0.20x--NA
StructLinq.NET 8.0100178.56 ns2.945 ns2.459 ns177.73 ns2.76x slower0.05x0.019140 BNA
StructLinq_ValueDelegate.NET 8.010051.85 ns0.763 ns0.677 ns51.67 ns1.25x faster0.02x--NA
Hyperlinq.NET 8.0100123.59 ns1.657 ns1.384 ns122.96 ns1.91x slower0.02x--NA
Hyperlinq_ValueDelegate.NET 8.010041.77 ns0.457 ns0.357 ns41.73 ns1.55x faster0.02x--NA
Faslinq.NET 8.0100426.30 ns8.343 ns18.661 ns417.28 ns6.54x slower0.23x0.56601184 BNA
ForLoop.NET 9.010064.37 ns0.853 ns0.756 ns64.19 nsbaseline--NA
ForeachLoop.NET 9.0100119.12 ns2.409 ns3.454 ns117.78 ns1.84x slower0.05x--NA
Linq.NET 9.0100307.39 ns3.292 ns2.918 ns306.51 ns4.78x slower0.07x0.045896 BNA
LinqFaster.NET 9.0100163.83 ns3.071 ns3.884 ns162.61 ns2.56x slower0.08x--NA
LinqFasterer.NET 9.0100585.17 ns6.270 ns5.236 ns583.57 ns9.08x slower0.15x3.06706424 BNA
LinqAF.NET 9.0100426.79 ns11.554 ns34.068 ns410.43 ns6.37x slower0.35x--NA
StructLinq.NET 9.0100180.79 ns3.246 ns4.221 ns179.27 ns2.80x slower0.08x0.019140 BNA
StructLinq_ValueDelegate.NET 9.010058.79 ns1.040 ns1.556 ns58.06 ns1.09x faster0.03x--NA
Hyperlinq.NET 9.0100102.41 ns2.087 ns1.742 ns101.84 ns1.59x slower0.03x--NA
Hyperlinq_ValueDelegate.NET 9.010043.78 ns0.598 ns0.500 ns43.54 ns1.47x faster0.03x--NA
Faslinq.NET 9.0100422.16 ns6.566 ns10.027 ns417.22 ns6.61x slower0.17x0.56551184 BNA