2008-03-27 21:35:56 +00:00
|
|
|
#!/usr/bin/perl
|
2002-12-06 01:40:42 +00:00
|
|
|
# ********************************************************************
|
2013-08-16 16:11:21 +00:00
|
|
|
# * Copyright (c) 2002-2013, 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 = {
|
2013-08-16 16:11:21 +00:00
|
|
|
"title"=>"Normalization performance: ICU ".$ICULatestVersion." vs. Win",
|
|
|
|
"headers"=>"Win ICU".$ICULatestVersion,
|
|
|
|
"operationIs"=>"code point",
|
|
|
|
"passes"=>"10",
|
|
|
|
"time"=>"5",
|
|
|
|
#"outputType"=>"HTML",
|
|
|
|
"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
|
2013-08-16 16:11:21 +00:00
|
|
|
my $p = "cd ".$ICULatest."/bin && ".$ICUPathLatest."/normperf/$WindowsPlatform/Release/normperf.exe -b -u";
|
2002-11-19 19:32:32 +00:00
|
|
|
|
|
|
|
my $tests = {
|
2013-08-16 16:11:21 +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 = {
|
2013-08-16 16:11:21 +00:00
|
|
|
"",
|
|
|
|
[
|
|
|
|
"TestNames_Asian.txt",
|
|
|
|
"TestNames_Chinese.txt",
|
|
|
|
"TestNames_Japanese.txt",
|
|
|
|
"TestNames_Japanese_h.txt",
|
|
|
|
"TestNames_Japanese_k.txt",
|
|
|
|
"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);
|