rishabhdaim commented on PR #2898:
URL: https://github.com/apache/jackrabbit-oak/pull/2898#issuecomment-4443924615
Result is :
`SegmentCachePolicyBenchmark` cacheCapacity~=1000 pool=10000 zipf=1.0
- Scenario A: Zipfian steady-state (AbstractTest timed run) ---
> CAFFEINE miss%= 26.0 hits=2,068,329 misses= 727,671 evictions=
726,671 evict%= 26.0
> LIRS miss%= 27.1 hits=2,038,869 misses= 757,131
evictions=1,511,455 evict%= 54.1
> GUAVA miss%= 32.5 hits=1,888,396 misses= 907,604 evictions=
906,604 evict%= 32.4
- Scenario B: scan (50,000 segs) then Zipfian (warmup=20,000
measure=200,000 ops) ---
> CAFFEINE miss%= 26.7 hits= 146,553 misses= 53,447 evictions=
53,447 evict%= 26.7
> LIRS miss%= 27.0 hits= 146,063 misses= 53,937 evictions=
107,873 evict%= 53.9
> GUAVA miss%= 32.4 hits= 135,119 misses= 64,881 evictions=
64,881 evict%= 32.4
- Scenario C: cold-start regression (scan=9,000 working-set=3,000
measure=100,000 ops) ---
scan fills TinyLFU sketch at freq=1; working-set entries start at freq=0
> CAFFEINE miss%= 66.9 hits= 33,060 misses= 66,940 evictions=
66,940 evict%= 66.9
> LIRS miss%= 67.8 hits= 32,187 misses= 67,813 evictions=
135,918 evict%=135.9
> GUAVA miss%= 67.1 hits= 32,947 misses= 67,053 evictions=
67,053 evict%= 67.1
--- Scenario D: uniform random / cache thrash (pool=25,000 = ~25x cache
measure=200,000 ops) ---
no hot data — uniform access over pool 25x cache; expected miss ~95%%
> CAFFEINE miss%= 96.0 hits= 8,043 misses= 191,957 evictions=
191,957 evict%= 96.0
> LIRS miss%= 96.1 hits= 7,866 misses= 192,134 evictions=
384,291 evict%=192.1
> GUAVA miss%= 96.0 hits= 7,972 misses= 192,028 evictions=
192,028 evict%= 96.0
So caffeine is efficient than Guava/CacheLIRS is all scenarios.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]