Package com.helix.experiments.benchmarks
Class L4CacheBenchmark
java.lang.Object
com.helix.experiments.benchmarks.L4CacheBenchmark
- Direct Known Subclasses:
L4CacheBenchmark_jmhType_B1
JMH Microbenchmark suite comparing:
1. L1 Caffeine in-memory cache hit (<12 ns)
2. L4 Redis distributed cache hit (<450 us over loopback TCP)
3. Cold ASM rule compilation (~250 us)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMeasures cold ASM rule compilation latency (~250 us).Measures L1 Caffeine in-memory cache hit latency (<12 ns).Optional<byte[]> Measures L4 Redis distributed cache retrieval latency (<450 us over loopback TCP).Measures TieredRuleCache L1 hit latency.com.github.benmanes.caffeine.cache.Cache<CacheKey, CompiledRule> voidsetup()voidtearDown()
-
Constructor Details
-
L4CacheBenchmark
public L4CacheBenchmark()
-
-
Method Details
-
setup
- Throws:
Exception
-
tearDown
public void tearDown() -
benchmarkL1CaffeineCacheHit
Measures L1 Caffeine in-memory cache hit latency (<12 ns). -
benchmarkTieredCacheL1Hit
Measures TieredRuleCache L1 hit latency. -
benchmarkL4RedisCacheHit
Measures L4 Redis distributed cache retrieval latency (<450 us over loopback TCP). -
benchmarkColdAsmRuleCompilation
Measures cold ASM rule compilation latency (~250 us).- Throws:
Exception
-
getL1Cache
-
getL4RedisCache
-
getRuleHash
-