Array.Int32.ArrayInt32Sum.md

February 14, 2024 ยท View on GitHub

Array.Int32.ArrayInt32Sum

Source

ArrayInt32Sum.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.010040.88 ns0.643 ns0.537 ns40.719 nsbaseline--NA
ForeachLoop.NET 8.010040.80 ns0.307 ns0.256 ns40.841 ns1.00x faster0.02x--NA
Linq.NET 8.010017.82 ns0.381 ns0.439 ns17.648 ns2.29x faster0.08x--NA
LinqFaster.NET 8.010043.01 ns0.902 ns0.926 ns42.627 ns1.06x slower0.03x--NA
LinqFaster_SIMD.NET 8.010014.09 ns0.288 ns0.554 ns13.884 ns2.84x faster0.16x--NA
LinqFasterer.NET 8.010083.58 ns0.367 ns0.307 ns83.606 ns2.04x slower0.02x--NA
LinqAF.NET 8.0100222.67 ns4.316 ns4.432 ns220.784 ns5.47x slower0.14x--NA
StructLinq.NET 8.010062.05 ns0.531 ns0.471 ns61.876 ns1.52x slower0.02x0.015332 BNA
StructLinq_ValueDelegate.NET 8.010083.18 ns1.075 ns0.898 ns82.794 ns2.03x slower0.03x--NA
Hyperlinq.NET 8.010011.25 ns0.255 ns0.559 ns11.317 ns3.79x faster0.18x--NA
ForLoop.NET 9.010041.48 ns0.391 ns0.326 ns41.441 nsbaseline--NA
ForeachLoop.NET 9.010043.56 ns0.893 ns0.917 ns43.218 ns1.05x slower0.03x--NA
Linq.NET 9.010017.44 ns0.203 ns0.159 ns17.404 ns2.38x faster0.03x--NA
LinqFaster.NET 9.010042.81 ns0.876 ns0.900 ns42.445 ns1.04x slower0.03x--NA
LinqFaster_SIMD.NET 9.010016.85 ns0.208 ns0.163 ns16.794 ns2.46x faster0.03x--NA
LinqFasterer.NET 9.010059.40 ns0.524 ns0.438 ns59.321 ns1.43x slower0.01x--NA
LinqAF.NET 9.0100220.98 ns4.363 ns4.285 ns218.685 ns5.34x slower0.13x--NA
StructLinq.NET 9.010061.13 ns1.118 ns0.991 ns60.796 ns1.47x slower0.02x0.015332 BNA
StructLinq_ValueDelegate.NET 9.010044.18 ns0.518 ns0.404 ns44.119 ns1.07x slower0.01x--NA
Hyperlinq.NET 9.010010.16 ns0.228 ns0.624 ns9.863 ns4.00x faster0.25x--NA