d1fbb5737e
X-SVN-Rev: 26111
62 lines
3.0 KiB
Perl
Executable File
62 lines
3.0 KiB
Perl
Executable File
#!/usr/bin/perl
|
|
# ********************************************************************
|
|
# * COPYRIGHT:
|
|
# * Copyright (c) 2002-2007, International Business Machines
|
|
# * Corporation and others. All Rights Reserved.
|
|
# ********************************************************************
|
|
|
|
use strict;
|
|
|
|
#Assume we are running outside of the ICU4J source
|
|
use lib 'svn-icu4j/src/com/ibm/icu/dev/test/perf/perldriver';
|
|
|
|
use PerfFramework4j;
|
|
|
|
#---------------------------------------------------------------------
|
|
# Test class
|
|
my $TESTCLASS = 'com.ibm.icu.dev.test.perf.UCharacterPerf';
|
|
|
|
my $options = {
|
|
"title"=>"UnicodeCharacter Property performance regression (ICU4J 3.6 and 3.8)",
|
|
"headers"=>"ICU4J36 ICU4J38",
|
|
"operationIs"=>"code point",
|
|
"timePerOperationIs"=>"Time per code point",
|
|
"passes"=>"10",
|
|
"time"=>"5",
|
|
"outputType"=>"HTML",
|
|
"dataDir"=>"svn-icu4j/src/com/ibm/icu/dev/test/perf/data/collation",
|
|
"outputDir"=>"svn-icu4j/results_ICU4J"
|
|
};
|
|
|
|
# programs
|
|
|
|
my $jvm1 = "java -classpath svn-icu4j/classes $TESTCLASS";
|
|
my $jvm2 = "java -classpath svn-icu4j_3-6/classes $TESTCLASS";
|
|
|
|
my $dataFiles = "";
|
|
my $pat = '0 ffff';
|
|
|
|
my $tests = {
|
|
"Digit ($pat)", ["$jvm1 Digit $pat" , "$jvm2 Digit $pat" ],
|
|
"GetNumericValue ($pat)", ["$jvm1 GetNumericValue $pat" , "$jvm2 GetNumericValue $pat" ],
|
|
"GetType ($pat)", ["$jvm1 GetType $pat" , "$jvm2 GetType $pat" ],
|
|
"IsDefined ($pat)", ["$jvm1 IsDefined $pat" , "$jvm2 IsDefined $pat" ],
|
|
"IsDigit ($pat)", ["$jvm1 IsDigit $pat" , "$jvm2 IsDigit $pat" ],
|
|
"IsIdentifierIgnorable ($pat)", ["$jvm1 IsIdentifierIgnorable $pat" , "$jvm2 IsIdentifierIgnorable $pat" ],
|
|
"IsISOControl ($pat)", ["$jvm1 IsISOControl $pat" , "$jvm2 IsISOControl $pat" ],
|
|
"IsLetter ($pat)", ["$jvm1 IsLetter $pat" , "$jvm2 IsLetter $pat" ],
|
|
"IsLetterOrDigit ($pat)", ["$jvm1 IsLetterOrDigit $pat" , "$jvm2 IsLetterOrDigit $pat" ],
|
|
"IsLowerCase ($pat)", ["$jvm1 IsLowerCase $pat" , "$jvm2 IsLowerCase $pat" ],
|
|
"IsSpaceChar ($pat)", ["$jvm1 IsSpaceChar $pat" , "$jvm2 IsSpaceChar $pat" ],
|
|
"IsTitleCase ($pat)", ["$jvm1 IsTitleCase $pat" , "$jvm2 IsTitleCase $pat" ],
|
|
"IsUnicodeIdentifierPart ($pat)", ["$jvm1 IsUnicodeIdentifierPart $pat" , "$jvm2 IsUnicodeIdentifierPart $pat" ],
|
|
"IsUnicodeIdentifierStart ($pat)", ["$jvm1 IsUnicodeIdentifierStart $pat" , "$jvm2 IsUnicodeIdentifierStart $pat" ],
|
|
"IsUpperCase ($pat)", ["$jvm1 IsUpperCase $pat" , "$jvm2 IsUpperCase $pat" ],
|
|
"IsWhiteSpace ($pat)", ["$jvm1 IsWhiteSpace $pat" , "$jvm2 IsWhiteSpace $pat" ]
|
|
};
|
|
|
|
|
|
runTests($options, $tests, $dataFiles);
|
|
|
|
|