Package com.ibm.icu.dev.test.perf
Class UnicodeSetPerf
- java.lang.Object
-
- com.ibm.icu.dev.test.perf.PerfTest
-
- com.ibm.icu.dev.test.perf.UnicodeSetPerf
-
public class UnicodeSetPerf extends PerfTest
A class for testing UnicodeSet performance.- Since:
- ICU 2.4
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.ibm.icu.dev.test.perf.PerfTest
PerfTest.BOMFreeReader, PerfTest.Function, PerfTest.TestCmdProvider, PerfTest.TestPrefixProvider, PerfTest.UsageException
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.HashSet<java.lang.Integer>
hs
(package private) UnicodeSetIterator
it
(package private) java.lang.String
pattern
(package private) UnicodeSet
testChars
(package private) UnicodeSet
us
-
Fields inherited from class com.ibm.icu.dev.test.perf.PerfTest
action, ACTION, bulk_mode, BULK_MODE, doPriorGC, duration, DURATION, encoding, ENCODING, FILE_NAME, fileName, GARBAGE_COLLECT, HELP1, HELP2, iterations, ITERATIONS, line_mode, LINE_MODE, LIST, locale, LOCALE, passes, PASSES, sourceDir, SOURCEDIR, TEST_NAME, testName, testProvider, threads, THREADS, time, TIME, uselen, USELEN, verbose, VERBOSE
-
-
Constructor Summary
Constructors Constructor Description UnicodeSetPerf()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
protected void
setup(java.lang.String[] args)
Framework method.(package private) PerfTest.Function
testHashSetAdd()
(package private) PerfTest.Function
testHashSetContains()
(package private) PerfTest.Function
testHashSetIterate()
(package private) PerfTest.Function
testUnicodeSetAdd()
(package private) PerfTest.Function
testUnicodeSetContains()
(package private) PerfTest.Function
testUnicodeSetIterate()
-
Methods inherited from class com.ibm.icu.dev.test.perf.PerfTest
gc, getOptions, readDataLine, readLines, readToEOS, readToEOS, run
-
-
-
-
Field Detail
-
pattern
java.lang.String pattern
-
testChars
UnicodeSet testChars
-
it
UnicodeSetIterator it
-
us
UnicodeSet us
-
hs
java.util.HashSet<java.lang.Integer> hs
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
- Throws:
java.lang.Exception
-
setup
protected void setup(java.lang.String[] args)
Description copied from class:PerfTest
Framework method. Default implementation does not parse any extra arguments. Subclasses may override this to parse extra arguments. Subclass implementations should NOT call the base class implementation.
-
testUnicodeSetAdd
PerfTest.Function testUnicodeSetAdd()
-
testHashSetAdd
PerfTest.Function testHashSetAdd()
-
testUnicodeSetContains
PerfTest.Function testUnicodeSetContains()
-
testHashSetContains
PerfTest.Function testHashSetContains()
-
testUnicodeSetIterate
PerfTest.Function testUnicodeSetIterate()
-
testHashSetIterate
PerfTest.Function testHashSetIterate()
-
-