require "../perldriver/Common.pl";
use lib '../perldriver';
use PerfFramework;
my $options = {
"title"=>"UTF performance: ICU (".$ICUPreviousVersion." and ".$ICULatestVersion.")",
"headers"=>"ICU".$ICUPreviousVersion." ICU".$ICULatestVersion,
"operationIs"=>"gb18030 encoding string",
"passes"=>"1",
"time"=>"2",
"dataDir"=>$ConversionDataPath,
"outputDir"=>"../results"
};
my $p1;
my $p2;
if ($OnWindows) {
$p1 = $ICUPathPrevious."/utfperf/Release/utfperf.exe -e gb18030"; $p2 = $ICUPathLatest."/utfperf/Release/utfperf.exe -e gb18030"; } else {
$p1 = $ICUPathPrevious."/utfperf/utfperf -e gb18030"; $p2 = $ICUPathLatest."/utfperf/utfperf -e gb18030"; }
my $tests = {
"Roundtrip", ["$p1 Roundtrip", "$p2 Roundtrip"],
"FromUnicode", ["$p1 FromUnicode", "$p2 FromUnicode"],
"FromUTF8", ["$p1 FromUTF8", "$p2 FromUTF8"],
};
my $dataFiles = {
"",
[
"xuzhimo.txt"
]
};
runTests($options, $tests, $dataFiles);