ImmutableArray.Int32.ImmutableArrayInt32SkipTakeSelect.md

February 14, 2024 ยท View on GitHub

ImmutableArray.Int32.ImmutableArrayInt32SkipTakeSelect

Source

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


MethodRuntimeSkipCountMeanErrorStdDevRatioRatioSDGen0AllocatedAlloc Ratio
ForLoop.NET 8.0100010057.43 ns0.624 ns0.553 nsbaseline--NA
Linq.NET 8.01000100342.77 ns6.603 ns6.485 ns5.96x slower0.12x0.0839176 BNA
LinqFasterer.NET 8.01000100598.79 ns7.342 ns7.210 ns10.44x slower0.19x2.54445328 BNA
StructLinq.NET 8.01000100160.00 ns2.207 ns1.843 ns2.79x slower0.03x0.045896 BNA
StructLinq_ValueDelegate.NET 8.0100010087.39 ns1.773 ns2.110 ns1.52x slower0.04x--NA
Hyperlinq.NET 8.0100010069.26 ns0.490 ns0.382 ns1.21x slower0.01x--NA
Hyperlinq_ValueDelegate.NET 8.0100010049.54 ns0.880 ns0.865 ns1.16x faster0.02x--NA
ForLoop.NET 9.0100010057.95 ns1.164 ns1.340 nsbaseline--NA
Linq.NET 9.01000100348.78 ns7.026 ns7.518 ns6.02x slower0.22x0.0839176 BNA
LinqFasterer.NET 9.01000100658.84 ns7.152 ns5.584 ns11.30x slower0.29x2.54445328 BNA
StructLinq.NET 9.01000100158.71 ns2.355 ns2.892 ns2.74x slower0.08x0.045896 BNA
StructLinq_ValueDelegate.NET 9.0100010061.33 ns0.774 ns0.605 ns1.05x slower0.03x--NA
Hyperlinq.NET 9.01000100116.63 ns2.328 ns2.178 ns2.01x slower0.07x--NA
Hyperlinq_ValueDelegate.NET 9.0100010061.00 ns0.387 ns0.343 ns1.05x slower0.03x--NA