ImmutableArray.Int32.ImmutableArrayInt32Sum.md

February 14, 2024 ยท View on GitHub

ImmutableArray.Int32.ImmutableArrayInt32Sum

Source

ImmutableArrayInt32Sum.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.994 ns0.5290 ns0.5880 ns40.876 nsbaseline--NA
ForeachLoop.NET 8.010040.060 ns0.6265 ns0.4891 ns39.912 ns1.02x faster0.02x--NA
Linq.NET 8.0100177.230 ns1.3646 ns1.1395 ns176.803 ns4.32x slower0.07x0.026756 BNA
LinqFasterer.NET 8.010099.545 ns1.8023 ns3.5994 ns98.261 ns2.43x slower0.10x0.2142448 BNA
StructLinq.NET 8.0100113.599 ns0.5021 ns0.4451 ns113.457 ns2.77x slower0.05x0.015332 BNA
StructLinq_ValueDelegate.NET 8.010083.281 ns0.5347 ns0.4740 ns83.333 ns2.03x slower0.03x--NA
Hyperlinq.NET 8.01009.982 ns0.1598 ns0.1335 ns9.976 ns4.11x faster0.10x--NA
ForLoop.NET 9.010040.754 ns0.3270 ns0.2553 ns40.746 nsbaseline--NA
ForeachLoop.NET 9.010049.506 ns0.9175 ns1.2559 ns48.970 ns1.21x slower0.03x--NA
Linq.NET 9.0100164.449 ns1.7715 ns1.4793 ns164.460 ns4.03x slower0.03x0.026756 BNA
LinqFasterer.NET 9.0100106.945 ns1.9792 ns3.9068 ns105.502 ns2.64x slower0.13x0.2142448 BNA
StructLinq.NET 9.010079.313 ns0.6960 ns0.5434 ns79.225 ns1.95x slower0.02x0.015332 BNA
StructLinq_ValueDelegate.NET 9.010045.702 ns0.9433 ns1.9481 ns44.706 ns1.14x slower0.06x--NA
Hyperlinq.NET 9.010010.421 ns0.2344 ns0.2078 ns10.333 ns3.91x faster0.08x--NA