BewareMyPower commented on PR #23052: URL: https://github.com/apache/pulsar/pull/23052#issuecomment-2241080069
Here is the benchmark's source code: https://github.com/BewareMyPower/CacheBenchmark A typical output: ``` CacheReadBenchmark.testCaffine thrpt 5 7432187.879 ± 746705.561 ops/s CacheReadBenchmark.testGuava thrpt 5 6962764.989 ± 222299.106 ops/s CacheReadBenchmark.testMapComputeIfAbsent thrpt 5 34219723.889 ± 686448.613 ops/s CacheReadBenchmark.testMapGet thrpt 5 72643406.351 ± 1312709.392 ops/s ``` The overhead for expiration seems significant. @ben-manes @lhotari Please help review if there is something wrong with it. The motivation is that the time cost of parsing a `TopicName` (with an efficient implementation, the current Pulsar implementation is inefficient) is just similar to getting the cached object from Guava `LoadingCache`. -- 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]
