]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/perf/ustrperf/StringPerf_r.pl
2 # ********************************************************************
3 # * Copyright (C) 2016 and later: Unicode, Inc. and others.
4 # *License & terms of use: http://www.unicode.org/copyright.html#License
5 # ********************************************************************
6 # ********************************************************************
8 # * Copyright (c) 2002-2013, International Business Machines
9 # * Corporation and others. All Rights Reserved.
10 # ********************************************************************
14 use lib
'../perldriver';
16 require "../perldriver/Common.pl";
21 "title"=>"Unicode String performance regression: ICU (".$ICUPreviousVersion." and ".$ICULatestVersion.")",
22 "headers"=>"ICU".$ICUPreviousVersion." ICU".$ICULatestVersion,
23 "operationIs"=>"Unicode String",
26 #"outputType"=>"HTML",
27 "dataDir"=>$CollationDataPath,
28 "outputDir"=>"../results"
37 $p1 = "cd ".$ICUPrevious."/bin && ".$ICUPathPrevious."/ustrperf/$WindowsPlatform/Release/stringperf.exe -b -u"; # Previous
38 $p2 = "cd ".$ICULatest."/bin && ".$ICUPathLatest."/ustrperf/$WindowsPlatform/Release/stringperf.exe -b -u"; # Latest
40 $p1 = "LD_LIBRARY_PATH=".$ICUPrevious."/source/lib:".$ICUPrevious."/source/tools/ctestfw ".$ICUPathPrevious."/ustrperf/stringperf -b -u"; # Previous
41 $p2 = "LD_LIBRARY_PATH=".$ICULatest."/source/lib:".$ICULatest."/source/tools/ctestfw ".$ICUPathLatest."/ustrperf/stringperf -b -u"; # Latest
47 "TestNames_Asian.txt",
48 "TestNames_Chinese.txt",
49 "TestNames_Japanese.txt",
50 "TestNames_Japanese_h.txt",
51 "TestNames_Japanese_k.txt",
52 "TestNames_Korean.txt",
53 "TestNames_Latin.txt",
54 "TestNames_SerbianSH.txt",
55 "TestNames_SerbianSR.txt",
57 "Testnames_Russian.txt",
66 "Object Construction(empty string)", ["$p1,TestCtor" , "$p2,TestCtor" ],
67 "Object Construction(single char)", ["$p1,TestCtor1" , "$p2,TestCtor1" ],
68 "Object Construction(another string)", ["$p1,TestCtor2" , "$p2,TestCtor2" ],
69 "Object Construction(string literal)", ["$p1,TestCtor3" , "$p2,TestCtor3" ],
70 "String Assignment(helper)", ["$p1,TestAssign" , "$p2,TestAssign" ],
71 "String Assignment(string literal)", ["$p1,TestAssign1" , "$p2,TestAssign1" ],
72 "String Assignment(another string)", ["$p1,TestAssign2" , "$p2,TestAssign2" ],
73 "Get String or Character", ["$p1,TestGetch" , "$p2,TestGetch" ],
74 "Concatenation", ["$p1,TestCatenate" , "$p2,TestCatenate" ],
75 "String Scanning(char)", ["$p1,TestScan" , "$p2,TestScan" ],
76 "String Scanning(string)", ["$p1,TestScan1" , "$p2,TestScan1" ],
77 "String Scanning(char set)", ["$p1,TestScan2" , "$p2,TestScan2" ],
81 runTests
($options, $tests, $dataFiles);