From d0aeb8467d67c9b17e9f9f6d5d91f880d7778034 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20K=C3=A4gi?= Date: Sat, 6 Dec 2025 12:39:45 +0100 Subject: [PATCH 1/4] reference sphere v0.4.1 --- .../Atmoos.Sphere.BenchmarkDotNet.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Atmoos.Sphere.BenchmarkDotNet/Atmoos.Sphere.BenchmarkDotNet.csproj b/source/Atmoos.Sphere.BenchmarkDotNet/Atmoos.Sphere.BenchmarkDotNet.csproj index 6b00e77..0a0c586 100644 --- a/source/Atmoos.Sphere.BenchmarkDotNet/Atmoos.Sphere.BenchmarkDotNet.csproj +++ b/source/Atmoos.Sphere.BenchmarkDotNet/Atmoos.Sphere.BenchmarkDotNet.csproj @@ -9,7 +9,7 @@ - + From 80bea67c79437924a7e6d7db7b8e1ee9f05a29c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20K=C3=A4gi?= Date: Sat, 6 Dec 2025 13:33:27 +0100 Subject: [PATCH 2/4] update benchmark results --- .../Async/OrderByCompletionBenchmark.cs | 32 ++++++++--------- .../Sync/SynchronousAwaitBenchmark.cs | 12 +++---- .../Text/InsertFileBenchmark.cs | 12 +++---- .../Text/InsertStreamBenchmark.cs | 34 +++++++++---------- 4 files changed, 45 insertions(+), 45 deletions(-) diff --git a/source/Atmoos.Sphere.Benchmark/Async/OrderByCompletionBenchmark.cs b/source/Atmoos.Sphere.Benchmark/Async/OrderByCompletionBenchmark.cs index 4f46949..105cf1f 100644 --- a/source/Atmoos.Sphere.Benchmark/Async/OrderByCompletionBenchmark.cs +++ b/source/Atmoos.Sphere.Benchmark/Async/OrderByCompletionBenchmark.cs @@ -57,28 +57,28 @@ static async Task Next(HashSet> set) /* Summary BenchmarkDotNet v0.15.7, Linux Arch Linux -Intel Core i7-8565U CPU 1.80GHz (Max: 3.99GHz) (Whiskey Lake), 1 CPU, 8 logical and 4 physical cores -.NET SDK 9.0.110 - [Host] : .NET 9.0.9 (9.0.9, 9.0.925.41916), X64 RyuJIT x86-64-v3 - Job-CNUJVU : .NET 9.0.9 (9.0.9, 9.0.925.41916), X64 RyuJIT x86-64-v3 +Intel Core i7-8565U CPU 1.80GHz (Max: 0.40GHz) (Whiskey Lake), 1 CPU, 8 logical and 4 physical cores +.NET SDK 10.0.100 + [Host] : .NET 10.0.0 (10.0.0, 42.42.42.42424), X64 RyuJIT x86-64-v3 + Job-CNUJVU : .NET 10.0.0 (10.0.0, 42.42.42.42424), X64 RyuJIT x86-64-v3 InvocationCount=1 UnrollFactor=1 | Method | Count | Mean | Error | Ratio | Gen0 | Allocated | Alloc Ratio | |------------------------ |------ |-----------:|--------:|------:|----------:|----------:|------------:| -| Unordered | 128 | 256.3 ms | 0.30 ms | 1.00 | - | 336 B | 0.01 | -| OrderedByCompletion | 128 | 256.4 ms | 0.52 ms | 1.00 | - | 31104 B | 1.00 | -| NaiveCompletionOrdering | 128 | 256.6 ms | 0.39 ms | 1.00 | - | 119392 B | 3.84 | +| Unordered | 128 | 256.3 ms | 0.38 ms | 1.00 | - | 336 B | 0.01 | +| OrderedByCompletion | 128 | 256.6 ms | 0.50 ms | 1.00 | - | 31360 B | 1.00 | +| NaiveCompletionOrdering | 128 | 256.4 ms | 0.54 ms | 1.00 | - | 115512 B | 3.68 | | | | | | | | | | -| Unordered | 256 | 511.9 ms | 0.54 ms | 1.00 | - | 336 B | 0.005 | -| OrderedByCompletion | 256 | 512.4 ms | 0.37 ms | 1.00 | - | 61568 B | 1.000 | -| NaiveCompletionOrdering | 256 | 512.4 ms | 0.50 ms | 1.00 | - | 377616 B | 6.133 | +| Unordered | 256 | 512.5 ms | 0.64 ms | 1.00 | - | 336 B | 0.005 | +| OrderedByCompletion | 256 | 512.1 ms | 0.72 ms | 1.00 | - | 61440 B | 1.000 | +| NaiveCompletionOrdering | 256 | 512.9 ms | 0.55 ms | 1.00 | - | 384440 B | 6.257 | | | | | | | | | | -| Unordered | 512 | 1,023.3 ms | 0.59 ms | 1.00 | - | 1384 B | 0.01 | -| OrderedByCompletion | 512 | 1,023.8 ms | 0.58 ms | 1.00 | - | 123008 B | 1.00 | -| NaiveCompletionOrdering | 512 | 1,023.8 ms | 0.62 ms | 1.00 | - | 1257208 B | 10.22 | +| Unordered | 512 | 1,023.3 ms | 0.44 ms | 1.00 | - | 336 B | 0.003 | +| OrderedByCompletion | 512 | 1,023.9 ms | 0.59 ms | 1.00 | - | 123392 B | 1.000 | +| NaiveCompletionOrdering | 512 | 1,023.7 ms | 0.71 ms | 1.00 | - | 1257656 B | 10.192 | | | | | | | | | | -| Unordered | 1024 | 2,045.6 ms | 6.07 ms | 1.00 | - | 336 B | 0.001 | -| OrderedByCompletion | 1024 | 2,047.2 ms | 0.97 ms | 1.00 | - | 246144 B | 1.000 | -| NaiveCompletionOrdering | 1024 | 2,045.5 ms | 5.49 ms | 1.00 | 1000.0000 | 4614024 B | 18.745 | +| Unordered | 1024 | 2,046.8 ms | 1.33 ms | 1.00 | - | 336 B | 0.001 | +| OrderedByCompletion | 1024 | 2,048.0 ms | 1.57 ms | 1.00 | - | 246272 B | 1.000 | +| NaiveCompletionOrdering | 1024 | 2,047.4 ms | 1.62 ms | 1.00 | 1000.0000 | 4591816 B | 18.645 | Summary */ diff --git a/source/Atmoos.Sphere.Benchmark/Sync/SynchronousAwaitBenchmark.cs b/source/Atmoos.Sphere.Benchmark/Sync/SynchronousAwaitBenchmark.cs index 57b0215..1e72730 100644 --- a/source/Atmoos.Sphere.Benchmark/Sync/SynchronousAwaitBenchmark.cs +++ b/source/Atmoos.Sphere.Benchmark/Sync/SynchronousAwaitBenchmark.cs @@ -22,16 +22,16 @@ public class SynchronousAwaitBenchmark /* Summary BenchmarkDotNet v0.15.7, Linux Arch Linux -Intel Core i7-8565U CPU 1.80GHz (Max: 3.99GHz) (Whiskey Lake), 1 CPU, 8 logical and 4 physical cores -.NET SDK 9.0.110 - [Host] : .NET 9.0.9 (9.0.9, 9.0.925.41916), X64 RyuJIT x86-64-v3 - ShortRun : .NET 9.0.9 (9.0.9, 9.0.925.41916), X64 RyuJIT x86-64-v3 +Intel Core i7-8565U CPU 1.80GHz (Max: 0.40GHz) (Whiskey Lake), 1 CPU, 8 logical and 4 physical cores +.NET SDK 10.0.100 + [Host] : .NET 10.0.0 (10.0.0, 42.42.42.42424), X64 RyuJIT x86-64-v3 + ShortRun : .NET 10.0.0 (10.0.0, 42.42.42.42424), X64 RyuJIT x86-64-v3 Job=ShortRun IterationCount=9 LaunchCount=1 WarmupCount=5 | Method | Mean | Error | Ratio | Allocated | Alloc Ratio | |-------------------- |---------:|---------:|------:|----------:|------------:| -| AsyncAwaitTaskDelay | 63.26 ms | 0.200 ms | 1.00 | 336 B | 1.00 | -| SyncAwaitTaskDelay | 63.33 ms | 0.129 ms | 1.00 | 232 B | 0.69 | +| AsyncAwaitTaskDelay | 63.89 ms | 0.252 ms | 1.00 | 336 B | 1.00 | +| SyncAwaitTaskDelay | 63.86 ms | 0.287 ms | 1.00 | 232 B | 0.69 | Summary */ diff --git a/source/Atmoos.Sphere.Benchmark/Text/InsertFileBenchmark.cs b/source/Atmoos.Sphere.Benchmark/Text/InsertFileBenchmark.cs index 657bb65..7fcd6c4 100644 --- a/source/Atmoos.Sphere.Benchmark/Text/InsertFileBenchmark.cs +++ b/source/Atmoos.Sphere.Benchmark/Text/InsertFileBenchmark.cs @@ -41,16 +41,16 @@ public async Task InsertAsynchronously() /* Summary BenchmarkDotNet v0.15.7, Linux Arch Linux -Intel Core i7-8565U CPU 1.80GHz (Max: 3.99GHz) (Whiskey Lake), 1 CPU, 8 logical and 4 physical cores -.NET SDK 9.0.110 - [Host] : .NET 9.0.9 (9.0.9, 9.0.925.41916), X64 RyuJIT x86-64-v3 - ShortRun : .NET 9.0.9 (9.0.9, 9.0.925.41916), X64 RyuJIT x86-64-v3 +Intel Core i7-8565U CPU 1.80GHz (Max: 0.40GHz) (Whiskey Lake), 1 CPU, 8 logical and 4 physical cores +.NET SDK 10.0.100 + [Host] : .NET 10.0.0 (10.0.0, 42.42.42.42424), X64 RyuJIT x86-64-v3 + ShortRun : .NET 10.0.0 (10.0.0, 42.42.42.42424), X64 RyuJIT x86-64-v3 Job=ShortRun IterationCount=11 LaunchCount=1 WarmupCount=5 | Method | Mean | Error | Ratio | Gen0 | Gen1 | Allocated | Alloc Ratio | |--------------------- |---------:|---------:|------:|--------:|-------:|----------:|------------:| -| InsertSynchronously | 248.0 μs | 13.04 μs | 0.34 | 30.7617 | 0.9766 | 126.28 KB | 0.34 | -| InsertAsynchronously | 734.4 μs | 26.10 μs | 1.00 | 89.8438 | 3.9063 | 367.66 KB | 1.00 | +| InsertSynchronously | 231.6 μs | 1.82 μs | 0.34 | 30.7617 | 0.4883 | 126.28 KB | 0.34 | +| InsertAsynchronously | 689.8 μs | 86.53 μs | 1.01 | 89.8438 | 5.8594 | 367.75 KB | 1.00 | Summary */ diff --git a/source/Atmoos.Sphere.Benchmark/Text/InsertStreamBenchmark.cs b/source/Atmoos.Sphere.Benchmark/Text/InsertStreamBenchmark.cs index 9b080ca..812ca70 100644 --- a/source/Atmoos.Sphere.Benchmark/Text/InsertStreamBenchmark.cs +++ b/source/Atmoos.Sphere.Benchmark/Text/InsertStreamBenchmark.cs @@ -79,25 +79,25 @@ public override async Task WriteLineAsync(ReadOnlyMemory value, Cancellati /* Summary BenchmarkDotNet v0.15.7, Linux Arch Linux -Intel Core i7-8565U CPU 1.80GHz (Max: 3.99GHz) (Whiskey Lake), 1 CPU, 8 logical and 4 physical cores -.NET SDK 9.0.110 - [Host] : .NET 9.0.9 (9.0.9, 9.0.925.41916), X64 RyuJIT x86-64-v3 - ShortRun : .NET 9.0.9 (9.0.9, 9.0.925.41916), X64 RyuJIT x86-64-v3 +Intel Core i7-8565U CPU 1.80GHz (Max: 0.40GHz) (Whiskey Lake), 1 CPU, 8 logical and 4 physical cores +.NET SDK 10.0.100 + [Host] : .NET 10.0.0 (10.0.0, 42.42.42.42424), X64 RyuJIT x86-64-v3 + ShortRun : .NET 10.0.0 (10.0.0, 42.42.42.42424), X64 RyuJIT x86-64-v3 Job=ShortRun InvocationCount=1 IterationCount=3 LaunchCount=1 UnrollFactor=1 WarmupCount=3 -| Method | MsDelay | Mean | Error | Ratio | Allocated | Alloc Ratio | -|--------------------- |-------- |-----------:|---------:|------:|----------:|------------:| -| InsertSynchronously | 1 | 495.5 ms | 16.91 ms | 1.44 | 6.66 KB | 0.13 | -| InsertAsynchronously | 1 | 344.3 ms | 27.26 ms | 1.00 | 50.75 KB | 1.00 | -| | | | | | | | -| InsertSynchronously | 2 | 958.5 ms | 31.75 ms | 1.45 | 6.66 KB | 0.13 | -| InsertAsynchronously | 2 | 660.3 ms | 9.76 ms | 1.00 | 50.75 KB | 1.00 | -| | | | | | | | -| InsertSynchronously | 4 | 1,884.0 ms | 16.50 ms | 1.46 | 6.66 KB | 0.13 | -| InsertAsynchronously | 4 | 1,291.3 ms | 7.29 ms | 1.00 | 50.75 KB | 1.00 | -| | | | | | | | -| InsertSynchronously | 8 | 3,741.4 ms | 36.57 ms | 1.46 | 6.66 KB | 0.13 | -| InsertAsynchronously | 8 | 2,556.6 ms | 23.77 ms | 1.00 | 50.75 KB | 1.00 | +| Method | MsDelay | Mean | Error | Ratio | Allocated | Alloc Ratio | +|--------------------- |-------- |-----------:|----------:|------:|----------:|------------:| +| InsertSynchronously | 1 | 495.9 ms | 11.57 ms | 1.42 | 6.66 KB | 0.13 | +| InsertAsynchronously | 1 | 348.2 ms | 21.83 ms | 1.00 | 50.75 KB | 1.00 | +| | | | | | | | +| InsertSynchronously | 2 | 976.8 ms | 20.06 ms | 1.44 | 6.66 KB | 0.13 | +| InsertAsynchronously | 2 | 676.7 ms | 29.65 ms | 1.00 | 50.75 KB | 1.00 | +| | | | | | | | +| InsertSynchronously | 4 | 1,898.8 ms | 10.56 ms | 1.45 | 6.66 KB | 0.13 | +| InsertAsynchronously | 4 | 1,306.2 ms | 18.65 ms | 1.00 | 50.75 KB | 1.00 | +| | | | | | | | +| InsertSynchronously | 8 | 4,071.8 ms | 257.00 ms | 1.46 | 6.66 KB | 0.13 | +| InsertAsynchronously | 8 | 2,793.0 ms | 203.01 ms | 1.00 | 50.75 KB | 1.00 | Summary */ From 77fb87570500de006fcdd4135e70ba8c62be164d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20K=C3=A4gi?= Date: Sat, 6 Dec 2025 19:31:08 +0100 Subject: [PATCH 3/4] upgrade to benchmark .Net 0.15.8 --- .../Atmoos.Sphere.BenchmarkDotNet.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Atmoos.Sphere.BenchmarkDotNet/Atmoos.Sphere.BenchmarkDotNet.csproj b/source/Atmoos.Sphere.BenchmarkDotNet/Atmoos.Sphere.BenchmarkDotNet.csproj index 0a0c586..d4254bc 100644 --- a/source/Atmoos.Sphere.BenchmarkDotNet/Atmoos.Sphere.BenchmarkDotNet.csproj +++ b/source/Atmoos.Sphere.BenchmarkDotNet/Atmoos.Sphere.BenchmarkDotNet.csproj @@ -3,14 +3,14 @@ - 0.15.7 + 0.15.8 benchmark, benchmarking, export benchmark results Atmoos Sphere BenchmarkDotNet:Exports benchmark results into the defining benchmark source files. - + From bc20c2f0c104391c61e7eb8204eb81425d33012b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20K=C3=A4gi?= Date: Sat, 6 Dec 2025 20:09:54 +0100 Subject: [PATCH 4/4] run benchmarks with v0.15.8 --- .../Async/OrderByCompletionBenchmark.cs | 28 ++++++++--------- .../Sync/SynchronousAwaitBenchmark.cs | 8 ++--- .../Text/InsertFileBenchmark.cs | 8 ++--- .../Text/InsertStreamBenchmark.cs | 30 +++++++++---------- 4 files changed, 37 insertions(+), 37 deletions(-) diff --git a/source/Atmoos.Sphere.Benchmark/Async/OrderByCompletionBenchmark.cs b/source/Atmoos.Sphere.Benchmark/Async/OrderByCompletionBenchmark.cs index 105cf1f..282676d 100644 --- a/source/Atmoos.Sphere.Benchmark/Async/OrderByCompletionBenchmark.cs +++ b/source/Atmoos.Sphere.Benchmark/Async/OrderByCompletionBenchmark.cs @@ -56,8 +56,8 @@ static async Task Next(HashSet> set) /* Summary -BenchmarkDotNet v0.15.7, Linux Arch Linux -Intel Core i7-8565U CPU 1.80GHz (Max: 0.40GHz) (Whiskey Lake), 1 CPU, 8 logical and 4 physical cores +BenchmarkDotNet v0.15.8, Linux Arch Linux +Intel Core i7-8565U CPU 1.80GHz (Max: 3.60GHz) (Whiskey Lake), 1 CPU, 8 logical and 4 physical cores .NET SDK 10.0.100 [Host] : .NET 10.0.0 (10.0.0, 42.42.42.42424), X64 RyuJIT x86-64-v3 Job-CNUJVU : .NET 10.0.0 (10.0.0, 42.42.42.42424), X64 RyuJIT x86-64-v3 @@ -66,19 +66,19 @@ .NET SDK 10.0.100 | Method | Count | Mean | Error | Ratio | Gen0 | Allocated | Alloc Ratio | |------------------------ |------ |-----------:|--------:|------:|----------:|----------:|------------:| -| Unordered | 128 | 256.3 ms | 0.38 ms | 1.00 | - | 336 B | 0.01 | -| OrderedByCompletion | 128 | 256.6 ms | 0.50 ms | 1.00 | - | 31360 B | 1.00 | -| NaiveCompletionOrdering | 128 | 256.4 ms | 0.54 ms | 1.00 | - | 115512 B | 3.68 | +| Unordered | 128 | 256.3 ms | 0.65 ms | 1.00 | - | 336 B | 0.01 | +| OrderedByCompletion | 128 | 256.4 ms | 0.37 ms | 1.00 | - | 31360 B | 1.00 | +| NaiveCompletionOrdering | 128 | 256.1 ms | 0.54 ms | 1.00 | - | 125656 B | 4.01 | | | | | | | | | | -| Unordered | 256 | 512.5 ms | 0.64 ms | 1.00 | - | 336 B | 0.005 | -| OrderedByCompletion | 256 | 512.1 ms | 0.72 ms | 1.00 | - | 61440 B | 1.000 | -| NaiveCompletionOrdering | 256 | 512.9 ms | 0.55 ms | 1.00 | - | 384440 B | 6.257 | +| Unordered | 256 | 512.3 ms | 0.49 ms | 1.00 | - | 336 B | 0.005 | +| OrderedByCompletion | 256 | 512.3 ms | 0.64 ms | 1.00 | - | 62080 B | 1.000 | +| NaiveCompletionOrdering | 256 | 512.3 ms | 0.60 ms | 1.00 | - | 362368 B | 5.837 | | | | | | | | | | -| Unordered | 512 | 1,023.3 ms | 0.44 ms | 1.00 | - | 336 B | 0.003 | -| OrderedByCompletion | 512 | 1,023.9 ms | 0.59 ms | 1.00 | - | 123392 B | 1.000 | -| NaiveCompletionOrdering | 512 | 1,023.7 ms | 0.71 ms | 1.00 | - | 1257656 B | 10.192 | +| Unordered | 512 | 1,023.3 ms | 0.74 ms | 1.00 | - | 336 B | 0.003 | +| OrderedByCompletion | 512 | 1,023.7 ms | 0.60 ms | 1.00 | - | 123520 B | 1.000 | +| NaiveCompletionOrdering | 512 | 1,024.1 ms | 0.33 ms | 1.00 | - | 1247088 B | 10.096 | | | | | | | | | | -| Unordered | 1024 | 2,046.8 ms | 1.33 ms | 1.00 | - | 336 B | 0.001 | -| OrderedByCompletion | 1024 | 2,048.0 ms | 1.57 ms | 1.00 | - | 246272 B | 1.000 | -| NaiveCompletionOrdering | 1024 | 2,047.4 ms | 1.62 ms | 1.00 | 1000.0000 | 4591816 B | 18.645 | +| Unordered | 1024 | 2,047.4 ms | 0.91 ms | 1.00 | - | 336 B | 0.001 | +| OrderedByCompletion | 1024 | 2,047.3 ms | 1.47 ms | 1.00 | - | 245632 B | 1.000 | +| NaiveCompletionOrdering | 1024 | 2,047.4 ms | 1.23 ms | 1.00 | 1000.0000 | 4682208 B | 19.062 | Summary */ diff --git a/source/Atmoos.Sphere.Benchmark/Sync/SynchronousAwaitBenchmark.cs b/source/Atmoos.Sphere.Benchmark/Sync/SynchronousAwaitBenchmark.cs index 1e72730..5a4690e 100644 --- a/source/Atmoos.Sphere.Benchmark/Sync/SynchronousAwaitBenchmark.cs +++ b/source/Atmoos.Sphere.Benchmark/Sync/SynchronousAwaitBenchmark.cs @@ -21,8 +21,8 @@ public class SynchronousAwaitBenchmark /* Summary -BenchmarkDotNet v0.15.7, Linux Arch Linux -Intel Core i7-8565U CPU 1.80GHz (Max: 0.40GHz) (Whiskey Lake), 1 CPU, 8 logical and 4 physical cores +BenchmarkDotNet v0.15.8, Linux Arch Linux +Intel Core i7-8565U CPU 1.80GHz (Max: 3.60GHz) (Whiskey Lake), 1 CPU, 8 logical and 4 physical cores .NET SDK 10.0.100 [Host] : .NET 10.0.0 (10.0.0, 42.42.42.42424), X64 RyuJIT x86-64-v3 ShortRun : .NET 10.0.0 (10.0.0, 42.42.42.42424), X64 RyuJIT x86-64-v3 @@ -32,6 +32,6 @@ .NET SDK 10.0.100 | Method | Mean | Error | Ratio | Allocated | Alloc Ratio | |-------------------- |---------:|---------:|------:|----------:|------------:| -| AsyncAwaitTaskDelay | 63.89 ms | 0.252 ms | 1.00 | 336 B | 1.00 | -| SyncAwaitTaskDelay | 63.86 ms | 0.287 ms | 1.00 | 232 B | 0.69 | +| AsyncAwaitTaskDelay | 63.41 ms | 0.062 ms | 1.00 | 336 B | 1.00 | +| SyncAwaitTaskDelay | 63.39 ms | 0.098 ms | 1.00 | 232 B | 0.69 | Summary */ diff --git a/source/Atmoos.Sphere.Benchmark/Text/InsertFileBenchmark.cs b/source/Atmoos.Sphere.Benchmark/Text/InsertFileBenchmark.cs index 7fcd6c4..bc66c04 100644 --- a/source/Atmoos.Sphere.Benchmark/Text/InsertFileBenchmark.cs +++ b/source/Atmoos.Sphere.Benchmark/Text/InsertFileBenchmark.cs @@ -40,8 +40,8 @@ public async Task InsertAsynchronously() /* Summary -BenchmarkDotNet v0.15.7, Linux Arch Linux -Intel Core i7-8565U CPU 1.80GHz (Max: 0.40GHz) (Whiskey Lake), 1 CPU, 8 logical and 4 physical cores +BenchmarkDotNet v0.15.8, Linux Arch Linux +Intel Core i7-8565U CPU 1.80GHz (Max: 3.60GHz) (Whiskey Lake), 1 CPU, 8 logical and 4 physical cores .NET SDK 10.0.100 [Host] : .NET 10.0.0 (10.0.0, 42.42.42.42424), X64 RyuJIT x86-64-v3 ShortRun : .NET 10.0.0 (10.0.0, 42.42.42.42424), X64 RyuJIT x86-64-v3 @@ -51,6 +51,6 @@ .NET SDK 10.0.100 | Method | Mean | Error | Ratio | Gen0 | Gen1 | Allocated | Alloc Ratio | |--------------------- |---------:|---------:|------:|--------:|-------:|----------:|------------:| -| InsertSynchronously | 231.6 μs | 1.82 μs | 0.34 | 30.7617 | 0.4883 | 126.28 KB | 0.34 | -| InsertAsynchronously | 689.8 μs | 86.53 μs | 1.01 | 89.8438 | 5.8594 | 367.75 KB | 1.00 | +| InsertSynchronously | 225.6 μs | 2.56 μs | 0.33 | 30.7617 | 0.9766 | 126.28 KB | 0.34 | +| InsertAsynchronously | 677.9 μs | 49.24 μs | 1.00 | 89.8438 | 3.9063 | 367.66 KB | 1.00 | Summary */ diff --git a/source/Atmoos.Sphere.Benchmark/Text/InsertStreamBenchmark.cs b/source/Atmoos.Sphere.Benchmark/Text/InsertStreamBenchmark.cs index 812ca70..5a76b00 100644 --- a/source/Atmoos.Sphere.Benchmark/Text/InsertStreamBenchmark.cs +++ b/source/Atmoos.Sphere.Benchmark/Text/InsertStreamBenchmark.cs @@ -78,8 +78,8 @@ public override async Task WriteLineAsync(ReadOnlyMemory value, Cancellati /* Summary -BenchmarkDotNet v0.15.7, Linux Arch Linux -Intel Core i7-8565U CPU 1.80GHz (Max: 0.40GHz) (Whiskey Lake), 1 CPU, 8 logical and 4 physical cores +BenchmarkDotNet v0.15.8, Linux Arch Linux +Intel Core i7-8565U CPU 1.80GHz (Max: 3.60GHz) (Whiskey Lake), 1 CPU, 8 logical and 4 physical cores .NET SDK 10.0.100 [Host] : .NET 10.0.0 (10.0.0, 42.42.42.42424), X64 RyuJIT x86-64-v3 ShortRun : .NET 10.0.0 (10.0.0, 42.42.42.42424), X64 RyuJIT x86-64-v3 @@ -87,17 +87,17 @@ .NET SDK 10.0.100 Job=ShortRun InvocationCount=1 IterationCount=3 LaunchCount=1 UnrollFactor=1 WarmupCount=3 -| Method | MsDelay | Mean | Error | Ratio | Allocated | Alloc Ratio | -|--------------------- |-------- |-----------:|----------:|------:|----------:|------------:| -| InsertSynchronously | 1 | 495.9 ms | 11.57 ms | 1.42 | 6.66 KB | 0.13 | -| InsertAsynchronously | 1 | 348.2 ms | 21.83 ms | 1.00 | 50.75 KB | 1.00 | -| | | | | | | | -| InsertSynchronously | 2 | 976.8 ms | 20.06 ms | 1.44 | 6.66 KB | 0.13 | -| InsertAsynchronously | 2 | 676.7 ms | 29.65 ms | 1.00 | 50.75 KB | 1.00 | -| | | | | | | | -| InsertSynchronously | 4 | 1,898.8 ms | 10.56 ms | 1.45 | 6.66 KB | 0.13 | -| InsertAsynchronously | 4 | 1,306.2 ms | 18.65 ms | 1.00 | 50.75 KB | 1.00 | -| | | | | | | | -| InsertSynchronously | 8 | 4,071.8 ms | 257.00 ms | 1.46 | 6.66 KB | 0.13 | -| InsertAsynchronously | 8 | 2,793.0 ms | 203.01 ms | 1.00 | 50.75 KB | 1.00 | +| Method | MsDelay | Mean | Error | Ratio | Allocated | Alloc Ratio | +|--------------------- |-------- |-----------:|---------:|------:|----------:|------------:| +| InsertSynchronously | 1 | 496.1 ms | 17.50 ms | 1.44 | 6.66 KB | 0.13 | +| InsertAsynchronously | 1 | 344.1 ms | 23.44 ms | 1.00 | 50.75 KB | 1.00 | +| | | | | | | | +| InsertSynchronously | 2 | 959.3 ms | 6.18 ms | 1.45 | 6.66 KB | 0.13 | +| InsertAsynchronously | 2 | 660.0 ms | 11.94 ms | 1.00 | 50.75 KB | 1.00 | +| | | | | | | | +| InsertSynchronously | 4 | 1,883.3 ms | 10.38 ms | 1.46 | 6.66 KB | 0.13 | +| InsertAsynchronously | 4 | 1,290.1 ms | 10.02 ms | 1.00 | 50.75 KB | 1.00 | +| | | | | | | | +| InsertSynchronously | 8 | 3,744.6 ms | 12.82 ms | 1.46 | 6.66 KB | 0.13 | +| InsertAsynchronously | 8 | 2,558.9 ms | 2.43 ms | 1.00 | 50.75 KB | 1.00 | Summary */