]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/perf/ustrperf/StringPerf_r.pl
2 # ********************************************************************
4 # * Copyright (c) 2002-2013, International Business Machines
5 # * Corporation and others. All Rights Reserved.
6 # ********************************************************************
10 use lib
'../perldriver';
12 require "../perldriver/Common.pl";
17 "title"=>"Unicode String performance regression: ICU (".$ICUPreviousVersion." and ".$ICULatestVersion.")",
18 "headers"=>"ICU".$ICUPreviousVersion." ICU".$ICULatestVersion,
19 "operationIs"=>"Unicode String",
22 #"outputType"=>"HTML",
23 "dataDir"=>$CollationDataPath,
24 "outputDir"=>"../results"
33 $p1 = "cd ".$ICUPrevious."/bin && ".$ICUPathPrevious."/ustrperf/$WindowsPlatform/Release/stringperf.exe -b -u"; # Previous
34 $p2 = "cd ".$ICULatest."/bin && ".$ICUPathLatest."/ustrperf/$WindowsPlatform/Release/stringperf.exe -b -u"; # Latest
36 $p1 = "LD_LIBRARY_PATH=".$ICUPrevious."/source/lib:".$ICUPrevious."/source/tools/ctestfw ".$ICUPathPrevious."/ustrperf/stringperf -b -u"; # Previous
37 $p2 = "LD_LIBRARY_PATH=".$ICULatest."/source/lib:".$ICULatest."/source/tools/ctestfw ".$ICUPathLatest."/ustrperf/stringperf -b -u"; # Latest
43 "TestNames_Asian.txt",
44 "TestNames_Chinese.txt",
45 "TestNames_Japanese.txt",
46 "TestNames_Japanese_h.txt",
47 "TestNames_Japanese_k.txt",
48 "TestNames_Korean.txt",
49 "TestNames_Latin.txt",
50 "TestNames_SerbianSH.txt",
51 "TestNames_SerbianSR.txt",
53 "Testnames_Russian.txt",
62 "Object Construction(empty string)", ["$p1,TestCtor" , "$p2,TestCtor" ],
63 "Object Construction(single char)", ["$p1,TestCtor1" , "$p2,TestCtor1" ],
64 "Object Construction(another string)", ["$p1,TestCtor2" , "$p2,TestCtor2" ],
65 "Object Construction(string literal)", ["$p1,TestCtor3" , "$p2,TestCtor3" ],
66 "String Assignment(helper)", ["$p1,TestAssign" , "$p2,TestAssign" ],
67 "String Assignment(string literal)", ["$p1,TestAssign1" , "$p2,TestAssign1" ],
68 "String Assignment(another string)", ["$p1,TestAssign2" , "$p2,TestAssign2" ],
69 "Get String or Character", ["$p1,TestGetch" , "$p2,TestGetch" ],
70 "Concatenation", ["$p1,TestCatenate" , "$p2,TestCatenate" ],
71 "String Scanning(char)", ["$p1,TestScan" , "$p2,TestScan" ],
72 "String Scanning(string)", ["$p1,TestScan1" , "$p2,TestScan1" ],
73 "String Scanning(char set)", ["$p1,TestScan2" , "$p2,TestScan2" ],
77 runTests
($options, $tests, $dataFiles);