List.Int32.ListInt32ToArray.md

February 14, 2024 ยท View on GitHub

List.Int32.ListInt32ToArray

Source

ListInt32ToArray.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
List_ToArray.NET 8.010031.89 ns0.449 ns0.375 nsbaseline0.2027424 B
Linq.NET 8.010038.78 ns0.752 ns0.628 ns1.22x slower0.02x0.2027424 B1.00x more
LinqFasterer.NET 8.010036.21 ns0.767 ns1.323 ns1.16x slower0.05x0.2027424 B1.00x more
LinqAF.NET 8.010039.93 ns0.826 ns1.044 ns1.26x slower0.05x0.2027424 B1.00x more
StructLinq.NET 8.010092.09 ns1.266 ns1.300 ns2.89x slower0.05x0.2180456 B1.08x more
StructLinq_ValueDelegate.NET 8.010073.02 ns1.285 ns1.670 ns2.29x slower0.08x0.2027424 B1.00x more
Hyperlinq.NET 8.010029.86 ns0.432 ns0.591 ns1.07x faster0.03x0.2027424 B1.00x more
Hyperlinq_ValueDelegate.NET 8.010031.79 ns0.318 ns0.249 ns1.00x faster0.01x0.2027424 B1.00x more
List_ToArray.NET 9.010034.16 ns0.734 ns0.901 nsbaseline0.2027424 B
Linq.NET 9.010039.85 ns0.814 ns0.680 ns1.17x slower0.03x0.2027424 B1.00x more
LinqFasterer.NET 9.010040.78 ns0.818 ns1.321 ns1.21x slower0.05x0.2027424 B1.00x more
LinqAF.NET 9.010043.07 ns0.919 ns2.037 ns1.28x slower0.06x0.2027424 B1.00x more
StructLinq.NET 9.010090.59 ns0.599 ns0.531 ns2.65x slower0.08x0.2179456 B1.08x more
StructLinq_ValueDelegate.NET 9.010072.74 ns1.256 ns0.981 ns2.14x slower0.05x0.2027424 B1.00x more
Hyperlinq.NET 9.010032.74 ns0.485 ns0.539 ns1.04x faster0.04x0.2027424 B1.00x more
Hyperlinq_ValueDelegate.NET 9.010032.46 ns0.386 ns0.322 ns1.05x faster0.04x0.2027424 B1.00x more