Top Description Fields Constructors Methods
org.glassfish.pfl.dynamic.copyobject.impl

public Class FastCacheTest

extends Object
Class Inheritance
Imports
java.util.HashMap, .Map

Test out whether FastCache is effective or not.

Field Summary

Modifier and TypeField and Description
private static FastCache<String, Integer>
private static Map<String, Integer>
private static int
private static int[]
private static final String[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
main(String[] args)

private static void
timeTest(boolean useFastCache)

private static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cacheback to summary
private static FastCache<String, Integer> cache
mapback to summary
private static Map<String, Integer> map
NUM_LOOPSback to summary
private static int NUM_LOOPS
PATTERNback to summary
private static int[] PATTERN
WORD_LISTback to summary
private static final String[] WORD_LIST

Constructor Detail

FastCacheTestback to summary
public FastCacheTest()

Method Detail

mainback to summary
public static void main(String[] args)
timeTestback to summary
private static void timeTest(boolean useFastCache)
warmUpback to summary
private static void warmUp()