]> gitweb.fperrin.net Git - Dictionary.git/blob - jars/icu4j-52_1/perf-tests/ucharacterperf_r.pl
Upgrade ICU4J.
[Dictionary.git] / jars / icu4j-52_1 / perf-tests / ucharacterperf_r.pl
1 #!/usr/bin/perl
2 #  ********************************************************************
3 #  * COPYRIGHT:
4 #  * Copyright (c) 2002-2007, International Business Machines
5 #  * Corporation and others. All Rights Reserved.
6 #  ********************************************************************
7
8 use strict;
9
10 #Assume we are running outside of the ICU4J source
11 use lib 'svn-icu4j/src/com/ibm/icu/dev/test/perf/perldriver';
12
13 use PerfFramework4j;
14
15 #---------------------------------------------------------------------
16 # Test class
17 my $TESTCLASS = 'com.ibm.icu.dev.test.perf.UCharacterPerf'; 
18
19 my $options = {
20                "title"=>"UnicodeCharacter Property performance regression (ICU4J 3.6 and 3.8)",
21                "headers"=>"ICU4J36 ICU4J38",
22                "operationIs"=>"code point",
23                "timePerOperationIs"=>"Time per code point",
24                "passes"=>"10",
25                "time"=>"5",
26                "outputType"=>"HTML",
27                "dataDir"=>"svn-icu4j/src/com/ibm/icu/dev/test/perf/data/collation",
28                "outputDir"=>"svn-icu4j/results_ICU4J"
29               };
30
31 # programs
32
33 my $jvm1 = "java -classpath svn-icu4j/classes $TESTCLASS";
34 my $jvm2 = "java -classpath svn-icu4j_3-6/classes $TESTCLASS";
35
36 my $dataFiles = "";
37 my $pat = '0 ffff';
38
39 my $tests = { 
40              "Digit ($pat)",                     ["$jvm1 Digit $pat"  ,                     "$jvm2 Digit $pat" ],
41              "GetNumericValue ($pat)",           ["$jvm1 GetNumericValue $pat"  ,           "$jvm2 GetNumericValue $pat" ],
42              "GetType ($pat)",                   ["$jvm1 GetType $pat"  ,                   "$jvm2 GetType $pat" ],
43              "IsDefined ($pat)",                 ["$jvm1 IsDefined $pat"  ,                 "$jvm2 IsDefined $pat" ],
44              "IsDigit ($pat)",                   ["$jvm1 IsDigit $pat"  ,                   "$jvm2 IsDigit $pat" ],
45              "IsIdentifierIgnorable ($pat)",     ["$jvm1 IsIdentifierIgnorable $pat"  ,     "$jvm2 IsIdentifierIgnorable $pat" ],
46              "IsISOControl ($pat)",              ["$jvm1 IsISOControl $pat"  ,              "$jvm2 IsISOControl $pat" ],
47              "IsLetter ($pat)",                  ["$jvm1 IsLetter $pat"  ,                  "$jvm2 IsLetter $pat" ],
48              "IsLetterOrDigit ($pat)",           ["$jvm1 IsLetterOrDigit $pat"  ,           "$jvm2 IsLetterOrDigit $pat" ],
49              "IsLowerCase ($pat)",               ["$jvm1 IsLowerCase $pat"  ,               "$jvm2 IsLowerCase $pat" ],
50              "IsSpaceChar ($pat)",               ["$jvm1 IsSpaceChar $pat"  ,               "$jvm2 IsSpaceChar $pat" ],
51              "IsTitleCase ($pat)",               ["$jvm1 IsTitleCase $pat"  ,               "$jvm2 IsTitleCase $pat" ],
52              "IsUnicodeIdentifierPart ($pat)",   ["$jvm1 IsUnicodeIdentifierPart $pat"  ,   "$jvm2 IsUnicodeIdentifierPart $pat" ],
53              "IsUnicodeIdentifierStart ($pat)",  ["$jvm1 IsUnicodeIdentifierStart $pat"  ,  "$jvm2 IsUnicodeIdentifierStart $pat" ],
54              "IsUpperCase ($pat)",               ["$jvm1 IsUpperCase $pat"  ,               "$jvm2 IsUpperCase $pat" ],
55              "IsWhiteSpace ($pat)",              ["$jvm1 IsWhiteSpace $pat"  ,              "$jvm2 IsWhiteSpace $pat" ]
56             };
57
58
59 runTests($options, $tests, $dataFiles);
60
61