Class CollationPerformanceTest

java.lang.Object
com.ibm.icu.dev.test.perf.CollationPerformanceTest

public class CollationPerformanceTest extends Object
  • Field Details

    • usageString

      static final String usageString
      See Also:
    • temp_opt_fName

      static StringBuffer temp_opt_fName
    • temp_opt_locale

      static StringBuffer temp_opt_locale
    • temp_opt_rules

      static StringBuffer temp_opt_rules
    • temp_opt_help

      static StringBuffer temp_opt_help
    • temp_opt_loopCount

      static StringBuffer temp_opt_loopCount
    • temp_opt_iLoopCount

      static StringBuffer temp_opt_iLoopCount
    • temp_opt_terse

      static StringBuffer temp_opt_terse
    • temp_opt_qsort

      static StringBuffer temp_opt_qsort
    • temp_opt_binsearch

      static StringBuffer temp_opt_binsearch
    • temp_opt_icu

      static StringBuffer temp_opt_icu
    • temp_opt_usekeys

      static StringBuffer temp_opt_usekeys
    • temp_opt_strcmp

      static StringBuffer temp_opt_strcmp
    • temp_opt_strcmpCPO

      static StringBuffer temp_opt_strcmpCPO
    • temp_opt_norm

      static StringBuffer temp_opt_norm
    • temp_opt_keygen

      static StringBuffer temp_opt_keygen
    • temp_opt_french

      static StringBuffer temp_opt_french
    • temp_opt_frenchoff

      static StringBuffer temp_opt_frenchoff
    • temp_opt_shifted

      static StringBuffer temp_opt_shifted
    • temp_opt_lower

      static StringBuffer temp_opt_lower
    • temp_opt_upper

      static StringBuffer temp_opt_upper
    • temp_opt_case

      static StringBuffer temp_opt_case
    • temp_opt_level

      static StringBuffer temp_opt_level
    • temp_opt_keyhist

      static StringBuffer temp_opt_keyhist
    • temp_opt_itertest

      static StringBuffer temp_opt_itertest
    • temp_opt_dump

      static StringBuffer temp_opt_dump
    • temp_opt_java

      static StringBuffer temp_opt_java
    • opt_fName

      static String opt_fName
    • opt_locale

      static String opt_locale
    • opt_rules

      static String opt_rules
    • opt_help

      static boolean opt_help
    • opt_loopCount

      static int opt_loopCount
    • opt_iLoopCount

      static int opt_iLoopCount
    • opt_terse

      static boolean opt_terse
    • opt_qsort

      static boolean opt_qsort
    • opt_binsearch

      static boolean opt_binsearch
    • opt_icu

      static boolean opt_icu
    • opt_usekeys

      static boolean opt_usekeys
    • opt_strcmp

      static boolean opt_strcmp
    • opt_strcmpCPO

      static boolean opt_strcmpCPO
    • opt_norm

      static boolean opt_norm
    • opt_keygen

      static boolean opt_keygen
    • opt_french

      static boolean opt_french
    • opt_frenchoff

      static boolean opt_frenchoff
    • opt_shifted

      static boolean opt_shifted
    • opt_lower

      static boolean opt_lower
    • opt_upper

      static boolean opt_upper
    • opt_case

      static boolean opt_case
    • opt_level

      static int opt_level
    • opt_keyhist

      static boolean opt_keyhist
    • opt_itertest

      static boolean opt_itertest
    • opt_dump

      static boolean opt_dump
    • opt_java

      static boolean opt_java
    • options

    • javaCol

      static Collator javaCol
    • icuCol

      static Collator icuCol
    • nf

      static NumberFormat nf
    • percent

      static NumberFormat percent
    • list

      ArrayList list
    • tests

      String[] tests
    • globalCount

      int globalCount
    • DOTMASK

      public int DOTMASK
  • Constructor Details

    • CollationPerformanceTest

      public CollationPerformanceTest()
  • Method Details

    • main

      public static void main(String[] args)
    • doDump

      void doDump()
    • doQSort

      void doQSort()
      --------------------------------------------------------------------------------------- doQSort() The quick sort timing test. ---------------------------------------------------------------------------------------
    • doBinarySearch

      void doBinarySearch()
      --------------------------------------------------------------------------------------- doBinarySearch() Binary Search timing test. Each name from the list is looked up in the full sorted list of names. ---------------------------------------------------------------------------------------
    • doKeyGen

      void doKeyGen()
      --------------------------------------------------------------------------------------- doKeyGen() Key Generation Timing Test ---------------------------------------------------------------------------------------
    • doKeyHist

      void doKeyHist()
      --------------------------------------------------------------------------------------- doKeyHist() Output a table of data for average sort key size vs. string length. ---------------------------------------------------------------------------------------
    • doForwardIterTest

      void doForwardIterTest()
    • doBackwardIterTest

      void doBackwardIterTest()
    • doIterTest

      void doIterTest()
      --------------------------------------------------------------------------------------- doIterTest() Iteration test ---------------------------------------------------------------------------------------
    • setOptions

      void setOptions()
    • processOptions

      static boolean processOptions(String[] args)
    • callGC

      private void callGC()
      Invoke the runtime's garbage collection procedure repeatedly until the amount of free memory stabilizes to within 10%.
    • dot

      void dot(int i)
    • readDataLine

      String readDataLine(BufferedReader br) throws Exception
      Throws:
      Exception
    • readDataLines

      void readDataLines()
    • getCollationRules

      String getCollationRules(String ruleFileName)
      Get the Collator Rules The Rule File format: 1. leading and trailing whitespaces will be omitted 2. lines with the leading character '#' will be treated as comments 3. File encoding is ISO-8859-1
    • qSortImpl_java_usekeys

      void qSortImpl_java_usekeys(String[] src, int fromIndex, int toIndex, Collator c)
    • qSortImpl_icu_usekeys

      void qSortImpl_icu_usekeys(String[] src, int fromIndex, int toIndex, Collator c)
    • qSortImpl_nokeys

      void qSortImpl_nokeys(String[] src, int fromIndex, int toIndex, Comparator c)
    • compare

      int compare(String source, String target, Comparator c)
    • compare

      int compare(CollationKey source, CollationKey target)
    • compare

      int compare(CollationKey source, CollationKey target)