ImmutableArray.Int32.ImmutableArrayInt32Select.md

February 14, 2024 ยท View on GitHub

ImmutableArray.Int32.ImmutableArrayInt32Select

Source

ImmutableArrayInt32Select.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.010045.47 ns0.806 ns0.792 ns45.19 nsbaseline--NA
ForeachLoop.NET 8.010049.42 ns0.995 ns1.941 ns48.62 ns1.09x slower0.04x--NA
Linq.NET 8.0100188.19 ns3.772 ns9.254 ns183.56 ns4.17x slower0.22x0.022948 BNA
LinqFasterer.NET 8.0100357.58 ns4.457 ns3.480 ns357.01 ns7.86x slower0.19x0.4320904 BNA
StructLinq.NET 8.0100115.40 ns0.921 ns0.719 ns115.13 ns2.54x slower0.05x0.015332 BNA
StructLinq_ValueDelegate.NET 8.010083.19 ns1.343 ns1.599 ns82.71 ns1.83x slower0.05x--NA
Hyperlinq.NET 8.010067.25 ns0.249 ns0.233 ns67.30 ns1.48x slower0.03x--NA
Hyperlinq_ValueDelegate.NET 8.010046.17 ns0.911 ns0.894 ns45.90 ns1.02x slower0.02x--NA
ForLoop.NET 9.010047.19 ns0.978 ns1.338 ns46.68 nsbaseline--NA
ForeachLoop.NET 9.010056.57 ns0.406 ns0.339 ns56.42 ns1.20x slower0.03x--NA
Linq.NET 9.0100184.20 ns3.224 ns3.960 ns182.64 ns3.90x slower0.14x0.022948 BNA
LinqFasterer.NET 9.0100368.52 ns6.433 ns10.924 ns364.97 ns7.83x slower0.33x0.4320904 BNA
StructLinq.NET 9.0100139.49 ns0.789 ns0.700 ns139.26 ns2.95x slower0.09x0.015332 BNA
StructLinq_ValueDelegate.NET 9.010058.38 ns0.544 ns0.509 ns58.20 ns1.23x slower0.04x--NA
Hyperlinq.NET 9.010084.99 ns1.027 ns0.802 ns84.96 ns1.81x slower0.05x--NA
Hyperlinq_ValueDelegate.NET 9.010058.10 ns0.955 ns0.798 ns57.72 ns1.23x slower0.04x--NA