2008-03-27 21:35:56 +00:00
|
|
|
#!/usr/bin/perl
|
2007-09-01 07:22:23 +00:00
|
|
|
# ********************************************************************
|
|
|
|
# * COPYRIGHT:
|
2008-03-27 21:17:44 +00:00
|
|
|
# * Copyright (c) 2002-2008, International Business Machines
|
2007-09-01 07:22:23 +00:00
|
|
|
# * Corporation and others. All Rights Reserved.
|
|
|
|
# ********************************************************************
|
|
|
|
|
2008-03-27 21:17:44 +00:00
|
|
|
#use strict;
|
2007-09-01 07:22:23 +00:00
|
|
|
|
2008-03-27 21:17:44 +00:00
|
|
|
require "../perldriver/Common.pl";
|
|
|
|
|
|
|
|
use lib '../perldriver';
|
2007-09-01 07:22:23 +00:00
|
|
|
|
|
|
|
use PerfFramework;
|
|
|
|
|
|
|
|
my $options = {
|
2008-03-27 21:17:44 +00:00
|
|
|
"title"=>"Character property performance regression: ICU (".$ICUPreviousVersion." and ".$ICULatestVersion.")",
|
|
|
|
"headers"=>"ICU".$ICUPreviousVersion." ICU".$ICULatestVersion,
|
2007-09-01 07:22:23 +00:00
|
|
|
"operationIs"=>"code point",
|
|
|
|
"timePerOperationIs"=>"Time per code point",
|
|
|
|
"passes"=>"10",
|
|
|
|
"time"=>"5",
|
|
|
|
#"outputType"=>"HTML",
|
2008-03-27 21:17:44 +00:00
|
|
|
"dataDir"=>"Not Using Data Files",
|
|
|
|
"outputDir"=>"../results"
|
2007-09-01 07:22:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# programs
|
|
|
|
|
2008-03-27 21:17:44 +00:00
|
|
|
my $p1; # Previous
|
|
|
|
my $p2; # Latest
|
|
|
|
if ($OnWindows) {
|
2008-08-12 18:06:26 +00:00
|
|
|
$p1 = $ICUPathPrevious."/charperf/$WindowsPlatform/Release/charperf.exe";
|
|
|
|
$p2 = $ICUPathLatest."/charperf/$WindowsPlatform/Release/charperf.exe";
|
2008-03-27 21:17:44 +00:00
|
|
|
} else {
|
|
|
|
$p1 = $ICUPathPrevious."/charperf/charperf";
|
|
|
|
$p2 = $ICUPathLatest."/charperf/charperf";
|
|
|
|
}
|
2007-09-01 07:22:23 +00:00
|
|
|
|
|
|
|
my $dataFiles = "";
|
|
|
|
|
|
|
|
|
|
|
|
my $tests = {
|
|
|
|
"isAlpha", ["$p1 TestIsAlpha" , "$p2 TestIsAlpha" ],
|
|
|
|
"isUpper", ["$p1 TestIsUpper" , "$p2 TestIsUpper" ],
|
|
|
|
"isLower", ["$p1 TestIsLower" , "$p2 TestIsLower" ],
|
|
|
|
"isDigit", ["$p1 TestIsDigit" , "$p2 TestIsDigit" ],
|
|
|
|
"isSpace", ["$p1 TestIsSpace" , "$p2 TestIsSpace" ],
|
|
|
|
"isAlphaNumeric", ["$p1 TestIsAlphaNumeric" , "$p2 TestIsAlphaNumeric" ],
|
|
|
|
"isPrint", ["$p1 TestIsPrint" , "$p2 TestIsPrint" ],
|
|
|
|
"isControl", ["$p1 TestIsControl" , "$p2 TestIsControl" ],
|
|
|
|
"toLower", ["$p1 TestToLower" , "$p2 TestToLower" ],
|
|
|
|
"toUpper", ["$p1 TestToUpper" , "$p2 TestToUpper" ],
|
|
|
|
"isWhiteSpace", ["$p1 TestIsWhiteSpace" , "$p2 TestIsWhiteSpace" ],
|
|
|
|
};
|
|
|
|
|
|
|
|
runTests($options, $tests, $dataFiles);
|
|
|
|
|
|
|
|
|