List.Int32.ListInt32Sum.md

February 14, 2024 ยท View on GitHub

List.Int32.ListInt32Sum

Source

ListInt32Sum.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.010059.49 ns1.231 ns1.600 ns58.75 nsbaseline--NA
ForeachLoop.NET 8.010065.52 ns0.282 ns0.220 ns65.48 ns1.09x slower0.03x--NA
Linq.NET 8.010016.99 ns0.255 ns0.331 ns16.85 ns3.50x faster0.12x--NA
LinqFaster.NET 8.010076.53 ns1.144 ns0.955 ns76.27 ns1.27x slower0.04x--NA
LinqFasterer.NET 8.010090.53 ns1.072 ns0.837 ns90.27 ns1.50x slower0.04x0.2027424 BNA
LinqAF.NET 8.0100256.69 ns4.842 ns5.382 ns254.59 ns4.30x slower0.16x--NA
StructLinq.NET 8.010060.39 ns0.324 ns0.270 ns60.25 ns1.00x slower0.03x0.015332 BNA
StructLinq_ValueDelegate.NET 8.010048.86 ns0.922 ns1.514 ns48.40 ns1.22x faster0.05x--NA
Hyperlinq.NET 8.010012.48 ns0.282 ns0.732 ns12.14 ns4.77x faster0.28x--NA
ForLoop.NET 9.010057.87 ns1.069 ns1.144 ns57.37 nsbaseline--NA
ForeachLoop.NET 9.010065.10 ns0.244 ns0.216 ns65.11 ns1.12x slower0.02x--NA
Linq.NET 9.010017.27 ns0.355 ns0.365 ns17.14 ns3.35x faster0.10x--NA
LinqFaster.NET 9.010082.60 ns1.272 ns1.190 ns82.09 ns1.43x slower0.04x--NA
LinqFasterer.NET 9.0100103.46 ns1.822 ns2.942 ns102.43 ns1.79x slower0.04x0.2027424 BNA
LinqAF.NET 9.0100253.66 ns2.539 ns2.120 ns252.71 ns4.38x slower0.09x--NA
StructLinq.NET 9.010060.38 ns0.585 ns0.457 ns60.21 ns1.04x slower0.02x0.015332 BNA
StructLinq_ValueDelegate.NET 9.010045.28 ns0.937 ns2.315 ns44.37 ns1.29x faster0.06x--NA
Hyperlinq.NET 9.010011.51 ns0.167 ns0.164 ns11.50 ns5.04x faster0.07x--NA