diff --git a/Benchmarks.md b/Benchmarks.md index 6d1a08b..677cd21 100644 --- a/Benchmarks.md +++ b/Benchmarks.md @@ -165,4 +165,56 @@ ______ # Queue +| Method | Size | Mean | Ratio | Allocated | +|--------------------------- |-------- |---------------:|------:|----------:| +| **StackMemoryCollections** | **100** | **389.9 ns** | **0.71** | **400 B** | +| System.Collections.Generic | 100 | 550.1 ns | 1.00 | 464 B | +| | | | | | +| **StackMemoryCollections** | **1000** | **3,177.2 ns** | **0.58** | **4000 B** | +| System.Collections.Generic | 1000 | 5,499.3 ns | 1.00 | 4064 B | +| | | | | | +| **StackMemoryCollections** | **10000** | **31,035.0 ns** | **0.60** | **40000 B** | +| System.Collections.Generic | 10000 | 51,680.2 ns | 1.00 | 40064 B | +| | | | | | +| **StackMemoryCollections** | **100000** | **327,341.1 ns** | **0.53** | **400000 B** | +| System.Collections.Generic | 100000 | 619,905.5 ns | 1.00 | 400106 B | +| | | | | | +| **StackMemoryCollections** | **250000** | **815,390.2 ns** | **0.52** | **1000000 B** | +| System.Collections.Generic | 250000 | 1,556,367.8 ns | 1.00 | 1000148 B | +| | | | | | +| **StackMemoryCollections** | **500000** | **1,868,335.4 ns** | **0.60** | **2000001 B** | +| System.Collections.Generic | 500000 | 3,118,756.4 ns | 1.00 | 2000233 B | +| | | | | | +| **StackMemoryCollections** | **1000000** | **4,244,397.5 ns** | **0.66** | **4000004 B** | +| System.Collections.Generic | 1000000 | 6,273,466.6 ns | 1.00 | 4000402 B | + +[Code](https://github.com/SoftStoneDevelop/StackMemoryCollections/blob/main/Src/Benchmarks/Queue/Simple/PrimitiveSimpleJob.cs) +______ + +| Method | Size | Mean | Ratio | Allocated | +|--------------------------- |-------- |----------------:|------:|------------:| +| **StackMemoryCollections** | **100** | **68.32 μs** | **0.83** | **2400 B** | +| System.Collections.Generic | 100 | 81.52 μs | 1.00 | 92800 B | +| | | | | | +| **StackMemoryCollections** | **1000** | **666.10 μs** | **0.80** | **24000 B** | +| System.Collections.Generic | 1000 | 826.18 μs | 1.00 | 812801 B | +| | | | | | +| **StackMemoryCollections** | **10000** | **6,284.88 μs** | **0.79** | **240005 B** | +| System.Collections.Generic | 10000 | 7,960.78 μs | 1.00 | 8012808 B | +| | | | | | +| **StackMemoryCollections** | **100000** | **57,392.77 μs** | **0.56** | **2400053 B** | +| System.Collections.Generic | 100000 | 102,318.69 μs | 1.00 | 80021846 B | +| | | | | | +| **StackMemoryCollections** | **250000** | **142,255.49 μs** | **0.57** | **6000268 B** | +| System.Collections.Generic | 250000 | 247,818.64 μs | 1.00 | 200029648 B | +| | | | | | +| **StackMemoryCollections** | **500000** | **285,382.63 μs** | **0.58** | **12000288 B** | +| System.Collections.Generic | 500000 | 493,753.23 μs | 1.00 | 400049648 B | +| | | | | | +| **StackMemoryCollections** | **1000000** | **570,681.45 μs** | **0.57** | **24002224 B** | +| System.Collections.Generic | 1000000 | 1,003,561.57 μs | 1.00 | 800080144 B | + +[Code](https://github.com/SoftStoneDevelop/StackMemoryCollections/blob/main/Src/Benchmarks/Queue/Optimal/PrimitiveOptimalJob.cs) +______ + # List