|
10 | 10 | using System.Collections.Generic; |
11 | 11 |
|
12 | 12 | namespace BitFaster.Caching.Benchmarks |
13 | | -{ |
14 | | - //BenchmarkDotNet=v0.13.1, OS=Windows 10.0.22000 |
15 | | - //Intel Xeon W-2133 CPU 3.60GHz, 1 CPU, 12 logical and 6 physical cores |
16 | | - //.NET SDK= 6.0.100 |
17 | | - // [Host] : .NET 6.0.0 (6.0.21.52210), X64 RyuJIT |
18 | | - // DefaultJob : .NET 6.0.0 (6.0.21.52210), X64 RyuJIT |
19 | | - |
20 | | - |
21 | | - //| Method | Mean | Error | StdDev | Ratio | RatioSD | Code Size | Gen 0 | Allocated | |
22 | | - //|------------------------- |-----------:|----------:|----------:|------:|--------:|----------:|-------:|----------:| |
23 | | - //| ConcurrentDictionary | 7.868 ns | 0.0543 ns | 0.0481 ns | 1.00 | 0.00 | 1,523 B | - | - | |
24 | | - //| FastConcurrentLru | 10.340 ns | 0.0496 ns | 0.0464 ns | 1.31 | 0.01 | 2,185 B | - | - | |
25 | | - //| ConcurrentLru | 13.739 ns | 0.0979 ns | 0.0916 ns | 1.75 | 0.01 | 2,207 B | - | - | |
26 | | - //| FastConcurrentTLru | 25.820 ns | 0.0933 ns | 0.0729 ns | 3.28 | 0.02 | 2,371 B | - | - | |
27 | | - //| ConcurrentTLru | 29.732 ns | 0.1387 ns | 0.1229 ns | 3.78 | 0.03 | 2,442 B | - | - | |
28 | | - //| ClassicLru | 49.041 ns | 0.8575 ns | 0.8021 ns | 6.23 | 0.11 | 3,013 B | - | - | |
29 | | - //| RuntimeMemoryCacheGet | 107.769 ns | 1.1901 ns | 0.9938 ns | 13.69 | 0.15 | 49 B | 0.0074 | 32 B | |
30 | | - //| ExtensionsMemoryCacheGet | 93.188 ns | 0.2321 ns | 0.2171 ns | 11.85 | 0.07 | 78 B | 0.0055 | 24 B | |
| 13 | +{ |
| 14 | + //BenchmarkDotNet=v0.13.1, OS=Windows 10.0.22000 |
| 15 | + //Intel Xeon W-2133 CPU 3.60GHz, 1 CPU, 12 logical and 6 physical cores |
| 16 | + //.NET SDK= 6.0.100 |
| 17 | + // [Host] : .NET 6.0.0 (6.0.21.52210), X64 RyuJIT |
| 18 | + // DefaultJob : .NET 6.0.0 (6.0.21.52210), X64 RyuJIT |
| 19 | + |
| 20 | + |
| 21 | + //| Method | Mean | Error | StdDev | Ratio | RatioSD | Code Size | Gen 0 | Allocated | |
| 22 | + //|------------------------- |-----------:|----------:|----------:|------:|--------:|----------:|-------:|----------:| |
| 23 | + //| ConcurrentDictionary | 7.868 ns | 0.0543 ns | 0.0481 ns | 1.00 | 0.00 | 1,523 B | - | - | |
| 24 | + //| FastConcurrentLru | 10.340 ns | 0.0496 ns | 0.0464 ns | 1.31 | 0.01 | 2,185 B | - | - | |
| 25 | + //| ConcurrentLru | 13.739 ns | 0.0979 ns | 0.0916 ns | 1.75 | 0.01 | 2,207 B | - | - | |
| 26 | + //| FastConcurrentTLru | 25.820 ns | 0.0933 ns | 0.0729 ns | 3.28 | 0.02 | 2,371 B | - | - | |
| 27 | + //| ConcurrentTLru | 29.732 ns | 0.1387 ns | 0.1229 ns | 3.78 | 0.03 | 2,442 B | - | - | |
| 28 | + //| ClassicLru | 49.041 ns | 0.8575 ns | 0.8021 ns | 6.23 | 0.11 | 3,013 B | - | - | |
| 29 | + //| RuntimeMemoryCacheGet | 107.769 ns | 1.1901 ns | 0.9938 ns | 13.69 | 0.15 | 49 B | 0.0074 | 32 B | |
| 30 | + //| ExtensionsMemoryCacheGet | 93.188 ns | 0.2321 ns | 0.2171 ns | 11.85 | 0.07 | 78 B | 0.0055 | 24 B | |
| 31 | +#if Windows |
| 32 | + [DisassemblyDiagnoser(printSource: true, maxDepth: 5)] |
31 | 33 | [SimpleJob(RuntimeMoniker.Net48)] |
| 34 | +#endif |
32 | 35 | [SimpleJob(RuntimeMoniker.Net60)] |
33 | | - [DisassemblyDiagnoser(printSource: true, maxDepth: 5)] |
34 | 36 | [MemoryDiagnoser(displayGenColumns: false)] |
35 | 37 | // [HardwareCounters(HardwareCounter.LlcMisses, HardwareCounter.CacheMisses)] // Requires Admin https://adamsitnik.com/Hardware-Counters-Diagnoser/ |
36 | 38 | // [ThreadingDiagnoser] // Requires .NET Core |
|
0 commit comments