Class FastCacheTest


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

      Fields 
      Modifier and Type Field Description
      private static FastCache<java.lang.String,​java.lang.Integer> cache  
      private static java.util.Map<java.lang.String,​java.lang.Integer> map  
      private static int NUM_LOOPS  
      private static int[] PATTERN  
      private static java.lang.String[] WORD_LIST  
    • Constructor Summary

      Constructors 
      Constructor Description
      FastCacheTest()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      private static void timeTest​(boolean useFastCache)  
      private static void warmUp()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • WORD_LIST

        private static final java.lang.String[] WORD_LIST
      • PATTERN

        private static int[] PATTERN
      • map

        private static java.util.Map<java.lang.String,​java.lang.Integer> map
      • cache

        private static FastCache<java.lang.String,​java.lang.Integer> cache
      • NUM_LOOPS

        private static int NUM_LOOPS
    • Constructor Detail

      • FastCacheTest

        public FastCacheTest()
    • Method Detail

      • warmUp

        private static void warmUp()
      • timeTest

        private static void timeTest​(boolean useFastCache)
      • main

        public static void main​(java.lang.String[] args)