Skip to content

Benchmarks

Ben Manes edited this page Feb 1, 2015 · 30 revisions

The Java microbenchmark harness was used to provide a fair and robust benchmark.

In this benchmark the caches are unbounded, initially empty, and the computation returns a constant value. This benchmark demonstrates the overhead due to locking. Caffeine performs a lock-free prescreening before falling back to an atomic compute if absent call.

In this benchmark 8 threads concurrently read from a cache configured with a maximum size.

In this benchmark 8 threads concurrently write to a cache configured with a maximum size.

In this benchmark 6 threads concurrently read from and 2 threads write to a cache configured with a maximum size.

Clone this wiki locally