2008-03-27 21:35:56 +00:00
|
|
|
#!/usr/bin/perl
|
2002-12-06 01:40:42 +00:00
|
|
|
# ********************************************************************
|
|
|
|
# * COPYRIGHT:
|
2008-03-27 21:17:44 +00:00
|
|
|
# * Copyright (c) 2002-2008, International Business Machines Corporation and
|
2002-12-06 01:40:42 +00:00
|
|
|
# * others. All Rights Reserved.
|
|
|
|
# ********************************************************************
|
|
|
|
|
2002-11-21 07:08:14 +00:00
|
|
|
|
2008-03-27 21:17:44 +00:00
|
|
|
#use strict;
|
|
|
|
|
|
|
|
require "../perldriver/Common.pl";
|
2002-11-21 07:08:14 +00:00
|
|
|
|
|
|
|
use lib '../perldriver';
|
|
|
|
|
|
|
|
use PerfFramework;
|
|
|
|
|
|
|
|
my $options = {
|
2008-03-27 21:17:44 +00:00
|
|
|
"title"=>"Character property performance: ICU".$ICULatestVersion." vs. STDLib",
|
|
|
|
"headers"=>"StdLib ICU".$ICULatestVersion,
|
2002-11-21 07:08:14 +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"
|
2002-11-21 07:08:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
# programs
|
|
|
|
# tests will be done for all the programs. Results will be stored and connected
|
2008-03-27 21:17:44 +00:00
|
|
|
my $p;
|
|
|
|
if ($OnWindows) {
|
2008-08-12 18:06:26 +00:00
|
|
|
$p = $ICUPathLatest."/charperf/$WindowsPlatform/Release/charperf.exe";
|
2008-03-27 21:17:44 +00:00
|
|
|
} else {
|
|
|
|
$p = $ICUPathLatest."/charperf/charperf";
|
|
|
|
}
|
2002-11-21 07:08:14 +00:00
|
|
|
|
|
|
|
my $tests = {
|
|
|
|
"isAlpha", ["$p TestStdLibIsAlpha" , "$p TestIsAlpha" ],
|
|
|
|
"isUpper", ["$p TestStdLibIsUpper" , "$p TestIsUpper" ],
|
|
|
|
"isLower", ["$p TestStdLibIsLower" , "$p TestIsLower" ],
|
|
|
|
"isDigit", ["$p TestStdLibIsDigit" , "$p TestIsDigit" ],
|
|
|
|
"isSpace", ["$p TestStdLibIsSpace" , "$p TestIsSpace" ],
|
|
|
|
"isAlphaNumeric", ["$p TestStdLibIsAlphaNumeric" , "$p TestIsAlphaNumeric" ],
|
|
|
|
"isPrint", ["$p TestStdLibIsPrint" , "$p TestIsPrint" ],
|
|
|
|
"isControl", ["$p TestStdLibIsControl" , "$p TestIsControl" ],
|
|
|
|
"toLower", ["$p TestStdLibToLower" , "$p TestToLower" ],
|
|
|
|
"toUpper", ["$p TestStdLibToUpper" , "$p TestToUpper" ],
|
|
|
|
"isWhiteSpace", ["$p TestStdLibIsWhiteSpace" , "$p TestIsWhiteSpace" ],
|
|
|
|
};
|
|
|
|
|
|
|
|
my $dataFiles;
|
|
|
|
|
|
|
|
runTests($options, $tests, $dataFiles);
|