]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/perf/ubrkperf/UBrkPerf_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 # ********************************************************************
7 # * Copyright (c) 2002-2013, International Business Machines
8 # * Corporation and others. All Rights Reserved.
9 # ********************************************************************
13 require "../perldriver/Common.pl";
15 use lib
'../perldriver';
20 "title"=>"BreakIterator performance regression: ICU (".$ICUPreviousVersion." and ".$ICULatestVersion.")",
21 "headers"=>"ICU".$ICUPreviousVersion." ICU".$ICULatestVersion,
22 "operationIs"=>"code point",
26 #"outputType"=>"HTML",
27 "dataDir"=>$CollationDataPath,
28 "outputDir"=>"../results"
32 # tests will be done for all the programs. Results will be stored and connected
33 my $m1 = "-- -m char";
34 my $m2 = "-- -m word";
35 my $m3 = "-- -m line";
36 my $m4 = "-- -m sentence";
50 $p1 = "cd ".$ICUPrevious."/bin && ".$ICUPathPrevious."/ubrkperf/$WindowsPlatform/Release/ubrkperf.exe";
51 $p2 = "cd ".$ICULatest."/bin && ".$ICUPathLatest."/ubrkperf/$WindowsPlatform/Release/ubrkperf.exe";
53 $p1 = "LD_LIBRARY_PATH=".$ICUPrevious."/source/lib:".$ICUPrevious."/source/tools/ctestfw ".$ICUPathPrevious."/ubrkperf/ubrkperf";
54 $p2 = "LD_LIBRARY_PATH=".$ICULatest."/source/lib:".$ICULatest."/source/tools/ctestfw ".$ICUPathLatest."/ubrkperf/ubrkperf";
65 "TestNames_Asian.txt",
66 "TestNames_Chinese.txt",
67 "TestNames_Japanese.txt",
68 "TestNames_Japanese_h.txt",
69 "TestNames_Japanese_k.txt",
70 "TestNames_Korean.txt",
71 "TestNames_Latin.txt",
72 "TestNames_SerbianSH.txt",
73 "TestNames_SerbianSR.txt",
75 "Testnames_Russian.txt",
86 "TestForwardChar", ["$p1,$m1,TestICUForward", "$p2,$m1,TestICUForward"],
87 "TestForwardWord", ["$p1,$m2,TestICUForward", "$p2,$m2,TestICUForward"],
88 "TestForwardLine", ["$p1,$m3,TestICUForward", "$p2,$m3,TestICUForward"],
89 "TestForwardSentence", ["$p1,$m4,TestICUForward", "$p2,$m4,TestICUForward"],
91 "TestIsBoundChar", ["$p1,$m1,TestICUIsBound", "$p2,$m1,TestICUIsBound"],
92 "TestIsBoundWord", ["$p1,$m2,TestICUIsBound", "$p2,$m2,TestICUIsBound"],
93 "TestIsBoundLine", ["$p1,$m3,TestICUIsBound", "$p2,$m3,TestICUIsBound"],
94 "TestIsBoundSentence", ["$p1,$m4,TestICUIsBound", "$p2,$m4,TestICUIsBound"],
97 runTests
($options, $tests, $dataFiles);