]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/perf/collperf2/CollPerf2_r.pl
2 # ********************************************************************
4 # Copyright (c) 2013-2014, International Business Machines Corporation and
5 # others. All Rights Reserved.
6 # ********************************************************************
8 # Variables need to be set in ../perldriver/Common.pl for where ICU is on your machine.
9 # Copy Common.pl.template to Common.pl and modify it.
11 # Sample Common.pl "Settings by user" for a Linux out-of-source build:
13 # $ICULatestVersion = "collv2";
14 # $ICUPreviousVersion = "52";
16 # $PerformanceDataPath = "/home/mscherer/svn.icudata/trunk/src/test/perf";
18 # $ICULatest = "/home/mscherer/svn.icu/collv2/bld";
19 # $ICUPrevious = "/home/mscherer/svn.icu/trunk/bld";
21 # The first time around, you also need to
22 # source/test/perf/collperf2$ mkdir ../results
24 # source/test/perf/collperf2$ ./CollPerf2_r.pl
26 # Sample debug invocation:
27 # ~/svn.icu/trunk/dbg/test/perf/collperf2$ LD_LIBRARY_PATH=../../../lib:../../../tools/ctestfw ./collperf2 -t 5 -p 1 -L "de" -f /home/mscherer/svn.icudata/trunk/src/test/perf/collation/TestNames_Latin.txt TestStringPieceSort
31 use lib
'../perldriver';
33 require "../perldriver/Common.pl";
38 "title"=>"Collation Performance Regression: ICU (".$ICUPreviousVersion." and ".$ICULatestVersion.")",
39 "headers"=>"ICU".$ICUPreviousVersion." ICU".$ICULatestVersion,
40 "operationIs"=>"Collator",
43 #"outputType"=>"HTML",
44 "dataDir"=>$CollationDataPath,
45 "outputDir"=>"../results"
49 # tests will be done for all the programs. Results will be stored and connected
53 $p1 = "cd ".$ICUPrevious."/bin && ".$ICUPathPrevious."/collperf2/$WindowsPlatform/Release/collperf2.exe";
54 $p2 = "cd ".$ICULatest."/bin && ".$ICUPathLatest."/collperf2/$WindowsPlatform/Release/collperf2.exe";
56 $p1 = "LD_LIBRARY_PATH=".$ICUPrevious."/lib:".$ICUPrevious."/tools/ctestfw ".$ICUPrevious."/test/perf/collperf2/collperf2";
57 $p2 = "LD_LIBRARY_PATH=".$ICULatest."/lib:".$ICULatest."/tools/ctestfw ".$ICULatest."/test/perf/collperf2/collperf2";
61 "ucol_strcoll/len", ["$p1,TestStrcoll", "$p2,TestStrcoll"],
62 "ucol_strcoll/null", ["$p1,TestStrcollNull", "$p2,TestStrcollNull"],
63 "ucol_strcoll/len/similar", ["$p1,TestStrcollSimilar", "$p2,TestStrcollSimilar"],
65 "ucol_strcollUTF8/len", ["$p1,TestStrcollUTF8", "$p2,TestStrcollUTF8"],
66 "ucol_strcollUTF8/null", ["$p1,TestStrcollUTF8Null", "$p2,TestStrcollUTF8Null"],
67 "ucol_strcollUTF8/len/similar", ["$p1,TestStrcollUTF8Similar", "$p2,TestStrcollUTF8Similar"],
69 "ucol_getSortKey/len", ["$p1,TestGetSortKey", "$p2,TestGetSortKey"],
70 "ucol_getSortKey/null", ["$p1,TestGetSortKeyNull", "$p2,TestGetSortKeyNull"],
72 "ucol_nextSortKeyPart/4_all", ["$p1,TestNextSortKeyPart_4All", "$p2,TestNextSortKeyPart_4All"],
73 "ucol_nextSortKeyPart/4x4", ["$p1,TestNextSortKeyPart_4x4", "$p2,TestNextSortKeyPart_4x4"],
74 "ucol_nextSortKeyPart/4x8", ["$p1,TestNextSortKeyPart_4x8", "$p2,TestNextSortKeyPart_4x8"],
75 "ucol_nextSortKeyPart/32_all", ["$p1,TestNextSortKeyPart_32All", "$p2,TestNextSortKeyPart_32All"],
76 "ucol_nextSortKeyPart/32x2", ["$p1,TestNextSortKeyPart_32x2", "$p2,TestNextSortKeyPart_32x2"],
78 "ucol_nextSortKeyPart/UTF8/4_all", ["$p1,TestNextSortKeyPartUTF8_4All", "$p2,TestNextSortKeyPartUTF8_4All"],
79 "ucol_nextSortKeyPart/UTF8/4x4", ["$p1,TestNextSortKeyPartUTF8_4x4", "$p2,TestNextSortKeyPartUTF8_4x4"],
80 "ucol_nextSortKeyPart/UTF8/4x8", ["$p1,TestNextSortKeyPartUTF8_4x8", "$p2,TestNextSortKeyPartUTF8_4x8"],
81 "ucol_nextSortKeyPart/UTF8/32_all", ["$p1,TestNextSortKeyPartUTF8_32All", "$p2,TestNextSortKeyPartUTF8_32All"],
82 "ucol_nextSortKeyPart/UTF8/32x2", ["$p1,TestNextSortKeyPartUTF8_32x2", "$p2,TestNextSortKeyPartUTF8_32x2"],
84 "Collator::compare/len", ["$p1,TestCppCompare", "$p2,TestCppCompare"],
85 "Collator::compare/null", ["$p1,TestCppCompareNull", "$p2,TestCppCompareNull"],
86 "Collator::compare/len/similar", ["$p1,TestCppCompareSimilar", "$p2,TestCppCompareSimilar"],
88 "Collator::compareUTF8/len", ["$p1,TestCppCompareUTF8", "$p2,TestCppCompareUTF8"],
89 "Collator::compareUTF8/null", ["$p1,TestCppCompareUTF8Null", "$p2,TestCppCompareUTF8Null"],
90 "Collator::compareUTF8/len/similar", ["$p1,TestCppCompareUTF8Similar", "$p2,TestCppCompareUTF8Similar"],
92 "Collator::getCollationKey/len", ["$p1,TestCppGetCollationKey", "$p2,TestCppGetCollationKey"],
93 "Collator::getCollationKey/null", ["$p1,TestCppGetCollationKeyNull", "$p2,TestCppGetCollationKeyNull"],
95 "sort UnicodeString*[]: compare()", ["$p1,TestUniStrSort", "$p2,TestUniStrSort"],
96 "sort StringPiece[]: compareUTF8()", ["$p1,TestStringPieceSortCpp", "$p2,TestStringPieceSortCpp"],
97 "sort StringPiece[]: ucol_strcollUTF8()", ["$p1,TestStringPieceSortC", "$p2,TestStringPieceSortC"],
99 "binary search UnicodeString*[]: compare()", ["$p1,TestUniStrBinSearch", "$p2,TestUniStrBinSearch"],
100 "binary search StringPiece[]: compareUTF8()", ["$p1,TestStringPieceBinSearchCpp", "$p2,TestStringPieceBinSearchCpp"],
101 "binary search StringPiece[]: ucol_strcollUTF8()", ["$p1,TestStringPieceBinSearchC", "$p2,TestStringPieceBinSearchC"],
107 "TestNames_Latin.txt"
110 "de-u-co-phonebk-ks-level2",
112 "TestRandomWordsUDHR_de.txt"
117 "TestRandomWordsUDHR_fr.txt"
122 "TestRandomWordsUDHR_es.txt"
127 "TestRandomWordsUDHR_pl.txt"
132 "TestRandomWordsUDHR_tr.txt"
137 "TestRandomWordsUDHR_el.txt"
142 "TestNames_Russian.txt"
145 "ru-u-ks-level4-ka-shifted",
147 "TestRandomWordsUDHR_ru.txt"
152 "TestNames_Japanese.txt",
153 "TestNames_Japanese_h.txt",
154 "TestNames_Japanese_k.txt"
159 "TestNames_Latin.txt",
160 "TestNames_Japanese.txt"
165 "TestNames_Korean.txt"
170 "TestNames_Simplified_Chinese.txt"
173 "zh_Hans-u-co-pinyin",
175 "TestNames_Latin.txt",
176 "TestNames_Simplified_Chinese.txt"
181 "TestNames_Chinese.txt",
184 "th-u-kk-ka-shifted",
186 "TestNames_Latin.txt",
187 "TestNames_Thai.txt",
188 "TestRandomWordsUDHR_th.txt"
193 "TestRandomWordsUDHR_ar.txt"
198 "TestRandomWordsUDHR_he.txt"
202 runTests
($options, $tests, $dataFiles);