Skip to content

Latest commit

 

History

History
41 lines (36 loc) · 4.42 KB

ListWhereToList.md

File metadata and controls

41 lines (36 loc) · 4.42 KB

ListWhereToList

Source

ListWhereToList.cs

Results:

BenchmarkDotNet=v0.13.2, OS=macOS Monterey 12.3 (21E230) [Darwin 21.4.0]
Apple M1 Pro, 1 CPU, 10 logical and 10 physical cores
.NET SDK=7.0.100
  [Host]     : .NET 6.0.2 (6.0.222.6406), Arm64 RyuJIT AdvSIMD
  DefaultJob : .NET 6.0.2 (6.0.222.6406), Arm64 RyuJIT AdvSIMD

Method Count Mean Error StdDev Ratio RatioSD Gen0 Gen1 Gen2 Allocated Alloc Ratio
Linq 100 448.1 ns 2.18 ns 2.04 ns 1.00 0.00 0.3443 - - 720 B 1.00
LinqGenDelegate 100 468.9 ns 1.24 ns 1.10 ns 1.05 0.01 0.1297 - - 272 B 0.38
LinqGenStruct 100 363.9 ns 1.40 ns 1.24 ns 0.81 0.01 0.1297 - - 272 B 0.38
StructLinqDelegate 100 335.2 ns 1.13 ns 1.05 ns 0.75 0.00 0.1602 - - 336 B 0.47
StructLinqStruct 100 248.1 ns 1.00 ns 0.93 ns 0.55 0.00 0.1297 - - 272 B 0.38
HyperLinqDelegate 100 479.9 ns 1.71 ns 1.60 ns 1.07 0.01 0.1297 - - 272 B 0.38
HyperLinqStruct 100 381.9 ns 1.33 ns 1.24 ns 0.85 0.00 0.1297 - - 272 B 0.38
Linq 10000 68,313.0 ns 343.61 ns 304.60 ns 1.00 0.00 31.1279 - - 65912 B 1.00
LinqGenDelegate 10000 51,511.3 ns 658.79 ns 616.24 ns 0.75 0.01 9.5825 - - 20192 B 0.31
LinqGenStruct 10000 27,460.2 ns 535.24 ns 750.33 ns 0.41 0.01 9.6130 - - 20192 B 0.31
StructLinqDelegate 10000 53,320.2 ns 378.03 ns 335.11 ns 0.78 0.01 9.5825 - - 20256 B 0.31
StructLinqStruct 10000 39,203.4 ns 768.99 ns 944.39 ns 0.57 0.01 9.5825 - - 20192 B 0.31
HyperLinqDelegate 10000 57,776.7 ns 461.99 ns 432.14 ns 0.85 0.01 9.5825 - - 20192 B 0.31
HyperLinqStruct 10000 32,049.3 ns 600.97 ns 1,213.98 ns 0.47 0.02 9.5825 - - 20192 B 0.31
Linq 1000000 6,935,556.2 ns 132,534.34 ns 123,972.71 ns 1.00 0.00 531.2500 476.5625 468.7500 4195400 B 1.00
LinqGenDelegate 1000000 6,187,496.1 ns 36,057.18 ns 30,109.38 ns 0.89 0.02 109.3750 109.3750 109.3750 2001028 B 0.48
LinqGenStruct 1000000 5,177,069.5 ns 28,842.89 ns 26,979.66 ns 0.75 0.01 93.7500 93.7500 93.7500 2001066 B 0.48
StructLinqDelegate 1000000 6,088,602.2 ns 49,569.09 ns 43,941.71 ns 0.88 0.02 117.1875 117.1875 117.1875 2001646 B 0.48
StructLinqStruct 1000000 5,114,236.2 ns 19,588.32 ns 16,357.14 ns 0.74 0.01 148.4375 148.4375 148.4375 2001662 B 0.48
HyperLinqDelegate 1000000 6,035,108.3 ns 53,514.94 ns 47,439.60 ns 0.87 0.01 109.3750 109.3750 109.3750 2001417 B 0.48
HyperLinqStruct 1000000 5,152,535.8 ns 25,858.05 ns 20,188.27 ns 0.74 0.02 179.6875 179.6875 179.6875 2002010 B 0.48