2008-03-27 21:17:44 +00:00
|
|
|
#!perl
|
2002-12-06 01:40:42 +00:00
|
|
|
# ********************************************************************
|
2008-03-27 21:17:44 +00:00
|
|
|
# * Copyright (c) 2002-2008, International Business Machines
|
2007-07-27 03:25:38 +00:00
|
|
|
# * Corporation and others. All Rights Reserved.
|
2002-12-06 01:40:42 +00:00
|
|
|
# ********************************************************************
|
2002-11-19 19:32:32 +00:00
|
|
|
|
2008-03-27 21:17:44 +00:00
|
|
|
#use strict;
|
|
|
|
|
|
|
|
require "../perldriver/Common.pl";
|
2002-11-19 19:32:32 +00:00
|
|
|
|
|
|
|
use lib '../perldriver';
|
|
|
|
|
|
|
|
use PerfFramework;
|
|
|
|
|
|
|
|
my $options = {
|
2008-03-27 21:17:44 +00:00
|
|
|
"title"=>"Normalization performance: ICU ".$ICULatestVersion." vs. Win",
|
|
|
|
"headers"=>"Win ICU".$ICULatestVersion,
|
2002-11-21 07:08:14 +00:00
|
|
|
"operationIs"=>"code point",
|
|
|
|
"passes"=>"10",
|
|
|
|
"time"=>"5",
|
|
|
|
#"outputType"=>"HTML",
|
2008-03-27 21:17:44 +00:00
|
|
|
"dataDir"=>$CollationDataPath,
|
|
|
|
"outputDir"=>"../results"
|
2002-11-19 19:32:32 +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) {
|
|
|
|
$p = $ICUPathLatest."/normperf/normperf -b -u";
|
|
|
|
} else {
|
|
|
|
$p = $ICUPathLatest."/normperf/Release/normperf.exe -b -u";
|
|
|
|
}
|
2002-11-19 19:32:32 +00:00
|
|
|
|
|
|
|
my $tests = {
|
2002-11-21 07:08:14 +00:00
|
|
|
"NFC_NFD_Text", ["$p TestWin_NFC_NFD_Text" , "$p TestICU_NFC_NFD_Text" ],
|
|
|
|
"NFC_NFC_Text", ["$p TestWin_NFC_NFC_Text" , "$p TestICU_NFC_NFC_Text" ],
|
|
|
|
"NFC_Orig_Text", ["$p TestWin_NFC_Orig_Text" , "$p TestICU_NFC_Orig_Text"],
|
|
|
|
"NFD_NFD_Text", ["$p TestWin_NFD_NFD_Text" , "$p TestICU_NFD_NFD_Text" ],
|
|
|
|
"NFD_NFC_Text", ["$p TestWin_NFD_NFC_Text" , "$p TestICU_NFD_NFC_Text" ],
|
|
|
|
"NFD_Orig_Text", ["$p TestWin_NFD_Orig_Text" , "$p TestICU_NFD_Orig_Text"]
|
2002-11-19 19:32:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
my $dataFiles = {
|
|
|
|
"",
|
|
|
|
[
|
2002-11-21 07:08:14 +00:00
|
|
|
"TestNames_Asian.txt",
|
|
|
|
"TestNames_Chinese.txt",
|
2002-11-19 19:32:32 +00:00
|
|
|
"TestNames_Japanese.txt",
|
|
|
|
"TestNames_Japanese_h.txt",
|
|
|
|
"TestNames_Japanese_k.txt",
|
2002-11-21 07:08:14 +00:00
|
|
|
"TestNames_Korean.txt",
|
|
|
|
"TestNames_Latin.txt",
|
|
|
|
"TestNames_SerbianSH.txt",
|
|
|
|
"TestNames_SerbianSR.txt",
|
|
|
|
"TestNames_Thai.txt",
|
|
|
|
"Testnames_Russian.txt",
|
|
|
|
"th18057.txt",
|
|
|
|
"thesis.txt",
|
|
|
|
"vfear11a.txt",
|
2002-11-19 19:32:32 +00:00
|
|
|
]
|
|
|
|
};
|
|
|
|
|
|
|
|
runTests($options, $tests, $dataFiles);
|