]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/perf/ubrkperf/UBrkPerf.pl
2 # ********************************************************************
4 # * Copyright (c) 2002-2008, International Business Machines Corporation and
5 # * others. All Rights Reserved.
6 # ********************************************************************
10 require "../perldriver/Common.pl";
12 use lib
'../perldriver';
17 "title"=>"BreakIterator performance regression (ICU ".$ICUPrevious2Version.", ".$ICUPreviousVersion." and ".$ICULatestVersion.")",
18 "headers"=>"ICU".$ICUPrevious2Version." ICU".$ICUPreviousVersion." ICU".$ICULatestVersion,
19 "operationIs"=>"code point",
23 #"outputType"=>"HTML",
24 "dataDir"=>$CollationDataPath,
25 "outputDir"=>"../results"
29 # tests will be done for all the programs. Results will be stored and connected
30 my $m1 = "-- -m char";
31 my $m2 = "-- -m word";
32 my $m3 = "-- -m line";
33 my $m4 = "-- -m sentence";
43 my $p1; # Before Previous
48 $p1 = $ICUPathPrevious2."/ubrkperf/$WindowsPlatform/Release/ubrkperf.exe";
49 $p2 = $ICUPathPrevious."/ubrkperf/$WindowsPlatform/Release/ubrkperf.exe";
50 $p3 = $ICUPathLatest."/ubrkperf/$WindowsPlatform/Release/ubrkperf.exe";
52 $p1 = $ICUPathPrevious2."/ubrkperf/ubrkperf";
53 $p2 = $ICUPathPrevious."/ubrkperf/ubrkperf";
54 $p3 = $ICUPathLatest."/ubrkperf/ubrkperf";
63 "TestNames_Asian.txt",
64 "TestNames_Chinese.txt",
65 "TestNames_Japanese.txt",
66 "TestNames_Japanese_h.txt",
67 "TestNames_Japanese_k.txt",
68 "TestNames_Korean.txt",
69 "TestNames_Latin.txt",
70 "TestNames_SerbianSH.txt",
71 "TestNames_SerbianSR.txt",
73 "Testnames_Russian.txt",
75 "th", ["TestNames_Thai.txt", "th18057.txt"]
80 "TestForwardChar", ["$p1 $m1 TestICUForward", "$p2 $m1 TestICUForward", "$p3 $m1 TestICUForward"],
81 "TestForwardWord", ["$p1 $m2 TestICUForward", "$p2 $m2 TestICUForward", "$p3 $m2 TestICUForward"],
82 "TestForwardLine", ["$p1 $m3 TestICUForward", "$p2 $m3 TestICUForward", "$p3 $m3 TestICUForward"],
83 "TestForwardSentence", ["$p1 $m4 TestICUForward", "$p2 $m4 TestICUForward", "$p3 $m4 TestICUForward"],
85 "TestIsBoundChar", ["$p1 $m1 TestICUIsBound", "$p2 $m1 TestICUIsBound", "$p3 $m1 TestICUIsBound"],
86 "TestIsBoundWord", ["$p1 $m2 TestICUIsBound", "$p2 $m2 TestICUIsBound", "$p3 $m2 TestICUIsBound"],
87 "TestIsBoundLine", ["$p1 $m3 TestICUIsBound", "$p2 $m3 TestICUIsBound", "$p3 $m3 TestICUIsBound"],
88 "TestIsBoundSentence", ["$p1 $m4 TestICUIsBound", "$p2 $m4 TestICUIsBound", "$p3 $m4 TestICUIsBound"],
92 runTests
($options, $tests, $dataFiles);