Skip to content

Commit 7867e2c

Browse files
authored
Update README.md
1 parent 4f869fb commit 7867e2c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ These charts summarize the percentage increase in hit rate ConcurrentLru vs LRU.
141141

142142
## ConcurrentLru Benchmarks
143143

144-
In the benchmarks, a cache miss is essentially free. These tests exist purely to compare the raw execution speed of the cache code. In a real setting, where a cache miss is presumably quite expensive, the relative overhead of the cache will be very small.
144+
In these benchmarks, a cache miss is essentially free. These tests exist purely to compare the raw execution speed of the cache bookkeeping code. In a real setting, where a cache miss is presumably quite expensive, the relative overhead of the cache will be very small.
145145

146-
Benchmarks are based on BenchmarkDotNet, so are single threaded. The ConcurrentLru family of classes can outperform ClassicLru in multithreaded workloads.
146+
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.
147147

148-
All benchmarks below are run on this measly laptop:
148+
All benchmarks below are run on the same computer:
149149

150150
~~~
151151
BenchmarkDotNet=v0.12.1, OS=Windows 10.0.19041.264 (2004/?/20H1)
@@ -164,7 +164,7 @@ Take 1000 samples of a [Zipfian distribution](https://en.wikipedia.org/wiki/Zipf
164164
*s* = 0.86 (yields approx 80/20 distribution)<br>
165165
*N* = 500
166166

167-
Cache size = *N* / 10 (so we can cache 10% of the total set). ConcurrentLru has approximately the same performance as a standard Lru in this single threaded test.
167+
Cache size = *N* / 10 (so we can cache 10% of the total set). ConcurrentLru has approximately the same computational overhead as a standard LRU in this single threaded test.
168168

169169
| Method | Mean | Error | StdDev | Ratio | RatioSD |
170170
|------------------- |---------:|--------:|--------:|------:|--------:|

0 commit comments

Comments
 (0)