Skip to content

Commit fb77942

Browse files
authored
Update README.md
1 parent 3ee0aaf commit fb77942

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ MemoryCache is perfectly servicable, but it has some limitations:
9393

9494
# Performance
9595

96+
*DISCLAIMER: Always measure performance in the context of your application. The results provided here are intended as a guide.*
97+
9698
The cache replacement policy must maximize the cache hit rate, and minimize the computational and space overhead involved in implementing the policy. Below an analysis of hit rate vs cache size, latency and throughput is provided.
9799

98100
## ConcurrentLru Hit rate
@@ -145,7 +147,7 @@ In these benchmarks, a cache miss is essentially free. These tests exist purely
145147

146148
Benchmarks are based on BenchmarkDotNet, so are single threaded. The ConcurrentLru family of classes are composed internally of ConcurrentDictionary.GetOrAdd and ConcurrentQueue.Enqueue/Dequeue method calls, and scale well to concurrent workloads.
147149

148-
All benchmarks below are run on the same computer:
150+
Benchmark results below are from a computer with a mobile class Broadwell CPU with small caches (128kb L1/512kb L2/4mb L3):
149151

150152
~~~
151153
BenchmarkDotNet=v0.12.1, OS=Windows 10.0.19041.264 (2004/?/20H1)
@@ -156,6 +158,8 @@ Intel Core i7-5600U CPU 2.60GHz (Broadwell), 1 CPU, 4 logical and 2 physical cor
156158
157159
Job=RyuJitX64 Jit=RyuJit Platform=X64
158160
~~~
161+
162+
Benchmarks have been repeated across supported .NET Frameworks and on the CPU architectures available in Azure (e.g. Intel Skylake, AMD Zen). Results are repeatable within +/-5%.
159163

160164
### What are FastConcurrentLru/FastConcurrentTLru?
161165

0 commit comments

Comments
 (0)