Class FastCacheTest

java.lang.Object
org.glassfish.pfl.dynamic.copyobject.impl.FastCacheTest

public class FastCacheTest extends Object
Test out whether FastCache is effective or not.
  • Field Details

    • WORD_LIST

      private static final String[] WORD_LIST
    • PATTERN

      private static int[] PATTERN
    • map

      private static Map<String,Integer> map
    • cache

      private static FastCache<String,Integer> cache
    • NUM_LOOPS

      private static int NUM_LOOPS
  • Constructor Details

    • FastCacheTest

      public FastCacheTest()
  • Method Details

    • warmUp

      private static void warmUp()
    • timeTest

      private static void timeTest(boolean useFastCache)
    • main

      public static void main(String[] args)