public class CacheTestUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CacheTestUtils.ByteArrayCacheable |
Constructor and Description |
---|
CacheTestUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
hammerEviction(BlockCache toBeTested,
int BlockSize,
int numThreads,
int numQueries) |
static void |
hammerSingleKey(BlockCache toBeTested,
int BlockSize,
int numThreads,
int numQueries) |
static void |
testCacheMultiThreaded(BlockCache toBeTested,
int blockSize,
int numThreads,
int numQueries,
double passingScore) |
static void |
testCacheSimple(BlockCache toBeTested,
int blockSize,
int numBlocks) |
static void |
testHeapSizeChanges(BlockCache toBeTested,
int blockSize)
Just checks if heapsize grows when something is cached, and gets smaller
when the same object is evicted
|
public static void testHeapSizeChanges(BlockCache toBeTested, int blockSize)
public static void testCacheMultiThreaded(BlockCache toBeTested, int blockSize, int numThreads, int numQueries, double passingScore) throws Exception
Exception
public static void testCacheSimple(BlockCache toBeTested, int blockSize, int numBlocks) throws Exception
Exception
public static void hammerSingleKey(BlockCache toBeTested, int BlockSize, int numThreads, int numQueries) throws Exception
Exception
public static void hammerEviction(BlockCache toBeTested, int BlockSize, int numThreads, int numQueries) throws Exception
Exception