]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/perf/utfperf/UtfPerf.pl
2 # ********************************************************************
4 # * Copyright (c) 2005-2008, International Business Machines Corporation and
5 # * others. All Rights Reserved.
6 # ********************************************************************
10 require "../perldriver/Common.pl";
12 use lib
'../perldriver';
17 "title"=>"UTF performance: ICU (".$ICUPreviousVersion." and ".$ICULatestVersion.")",
18 "headers"=>"ICU".$ICUPreviousVersion." ICU".$ICULatestVersion,
19 "operationIs"=>"gb18030 encoding string",
22 #"outputType"=>"HTML",
23 "dataDir"=>$ConversionDataPath,
24 "outputDir"=>"../results"
28 # tests will be done for all the programs. Results will be stored and connected
33 $p1 = $ICUPathPrevious."/utfperf/$WindowsPlatform/Release/utfperf.exe -e gb18030"; # Previous
34 $p2 = $ICUPathLatest."/utfperf/$WindowsPlatform/Release/utfperf.exe -e gb18030"; # Latest
36 $p1 = $ICUPathPrevious."/utfperf/utfperf -e gb18030"; # Previous
37 $p2 = $ICUPathLatest."/utfperf/utfperf -e gb18030"; # Latest
41 "Roundtrip", ["$p1 Roundtrip", "$p2 Roundtrip"],
42 "FromUnicode", ["$p1 FromUnicode", "$p2 FromUnicode"],
43 "FromUTF8", ["$p1 FromUTF8", "$p2 FromUTF8"],
44 #"UTF-8", ["$p UTF_8"],
45 #"UTF-8 small buffer", ["$p UTF_8_SB"],
47 #"SCSU small buffer", ["$p SCSU_SB"],
48 #"BOCU_1", ["$p BOCU_1"],
49 #"BOCU_1 small buffer", ["$p BOCU_1_SB"],
59 runTests
($options, $tests, $dataFiles);