Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement microbenchmark for FileCache
The current implementation of the FileCache uses some hand-rolled data structures that would be nice to replace with library implementations. This benchmark will be useful to compare the performance of any future replacements. Sample results (AWS EC2 Ubuntu machine with 32 vCPUs and 64GB of RAM): ``` Benchmark (concurrencyLevel) (maximumNumberOfEntries) Mode Cnt Score Error Units FileCacheBenchmark.get 1 65536 thrpt 2243.092 ops/ms FileCacheBenchmark.get 1 1048576 thrpt 950.818 ops/ms FileCacheBenchmark.get 8 65536 thrpt 5651.150 ops/ms FileCacheBenchmark.get 8 1048576 thrpt 2831.012 ops/ms FileCacheBenchmark.put 1 65536 thrpt 2206.027 ops/ms FileCacheBenchmark.put 1 1048576 thrpt 921.248 ops/ms FileCacheBenchmark.put 8 65536 thrpt 4421.122 ops/ms FileCacheBenchmark.put 8 1048576 thrpt 2624.550 ops/ms FileCacheBenchmark.remove 1 65536 thrpt 12387.999 ops/ms FileCacheBenchmark.remove 1 1048576 thrpt 6324.643 ops/ms FileCacheBenchmark.remove 8 65536 thrpt 22161.031 ops/ms FileCacheBenchmark.remove 8 1048576 thrpt 14826.586 ops/ms FileCacheBenchmark.replace 1 65536 thrpt 2146.572 ops/ms FileCacheBenchmark.replace 1 1048576 thrpt 947.612 ops/ms FileCacheBenchmark.replace 8 65536 thrpt 4405.339 ops/ms FileCacheBenchmark.replace 8 1048576 thrpt 2707.204 ops/ms ``` Signed-off-by: Andrew Ross <andrross@amazon.com>
- Loading branch information