ImmutableArray.Int32.ImmutableArrayInt32Where.md

February 14, 2024 ยท View on GitHub

ImmutableArray.Int32.ImmutableArrayInt32Where

Source

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


MethodRuntimeCountMeanErrorStdDevRatioRatioSDGen0AllocatedAlloc Ratio
ForLoop.NET 8.010065.66 ns1.041 ns0.923 nsbaseline--NA
ForeachLoop.NET 8.010080.71 ns1.586 ns2.006 ns1.24x slower0.04x--NA
Linq.NET 8.0100183.91 ns2.738 ns2.137 ns2.81x slower0.04x0.022948 BNA
LinqFasterer.NET 8.0100287.72 ns5.344 ns4.463 ns4.38x slower0.10x0.3443720 BNA
StructLinq.NET 8.0100148.45 ns1.285 ns1.139 ns2.26x slower0.03x0.015332 BNA
StructLinq_ValueDelegate.NET 8.010070.27 ns0.483 ns0.403 ns1.07x slower0.02x--NA
Hyperlinq.NET 8.0100132.96 ns1.859 ns1.451 ns2.03x slower0.03x--NA
Hyperlinq_ValueDelegate.NET 8.010075.13 ns1.295 ns1.542 ns1.15x slower0.03x--NA
ForLoop.NET 9.010066.18 ns1.290 ns1.144 nsbaseline--NA
ForeachLoop.NET 9.010066.79 ns0.834 ns0.651 ns1.01x slower0.02x--NA
Linq.NET 9.0100171.24 ns1.394 ns1.088 ns2.58x slower0.05x0.022948 BNA
LinqFasterer.NET 9.0100301.08 ns5.997 ns7.139 ns4.58x slower0.15x0.3443720 BNA
StructLinq.NET 9.0100141.89 ns1.682 ns1.405 ns2.14x slower0.04x0.015332 BNA
StructLinq_ValueDelegate.NET 9.010054.08 ns0.936 ns1.457 ns1.22x faster0.05x--NA
Hyperlinq.NET 9.0100104.25 ns1.782 ns1.580 ns1.58x slower0.03x--NA
Hyperlinq_ValueDelegate.NET 9.010088.16 ns1.799 ns2.522 ns1.33x slower0.04x--NA