2008-03-27 21:35:56 +00:00
|
|
|
#!/usr/bin/perl
|
2007-09-01 07:22:23 +00:00
|
|
|
# ********************************************************************
|
|
|
|
# * COPYRIGHT:
|
2013-08-16 16:11:21 +00:00
|
|
|
# * Copyright (c) 2002-2013, International Business Machines
|
2007-09-01 07:22:23 +00:00
|
|
|
# * Corporation and others. All Rights Reserved.
|
|
|
|
# ********************************************************************
|
|
|
|
|
2008-03-27 21:17:44 +00:00
|
|
|
#use strict;
|
2007-09-01 07:22:23 +00:00
|
|
|
|
2008-03-27 21:17:44 +00:00
|
|
|
require "../perldriver/Common.pl";
|
|
|
|
|
|
|
|
use lib '../perldriver';
|
2007-09-01 07:22:23 +00:00
|
|
|
|
|
|
|
use PerfFramework;
|
|
|
|
|
2008-03-27 21:17:44 +00:00
|
|
|
# This test only works on Windows.
|
|
|
|
if (!$OnWindows) {
|
2013-08-16 16:11:21 +00:00
|
|
|
print "This test only works on Windows.\n";
|
|
|
|
exit(1);
|
2008-03-27 21:17:44 +00:00
|
|
|
}
|
|
|
|
|
2007-09-01 07:22:23 +00:00
|
|
|
my $options = {
|
2013-08-16 16:11:21 +00:00
|
|
|
"title"=>"Conversion performance regression: ICU (".$ICUPreviousVersion." and ".$ICULatestVersion.")",
|
|
|
|
"headers"=>"ICU".$ICUPreviousVersion." ICU".$ICULatestVersion,
|
|
|
|
"operationIs"=>"code point",
|
|
|
|
"timePerOperationIs"=>"Time per code point",
|
|
|
|
"passes"=>"10",
|
|
|
|
"time"=>"5",
|
|
|
|
#"outputType"=>"HTML",
|
|
|
|
"dataDir"=>"Not Using Data Files",
|
|
|
|
"outputDir"=>"../results"
|
|
|
|
};
|
2007-09-01 07:22:23 +00:00
|
|
|
|
|
|
|
# programs
|
|
|
|
|
2013-08-16 16:11:21 +00:00
|
|
|
my $p1 = "cd ".$ICUPrevious."/bin && ".$ICUPathPrevious."/convperf/$WindowsPlatform/Release/convperf.exe"; # Previous
|
|
|
|
my $p2 = "cd ".$ICULatest."/bin && ".$ICUPathLatest."/convperf/$WindowsPlatform/Release/convperf.exe"; # Latest
|
2007-09-01 07:22:23 +00:00
|
|
|
|
|
|
|
my $dataFiles = "";
|
|
|
|
|
|
|
|
|
|
|
|
my $tests = {
|
2013-08-16 16:11:21 +00:00
|
|
|
"UTF-8 From Unicode", ["$p1,TestICU_UTF8_FromUnicode", "$p2,TestICU_UTF8_FromUnicode" ],
|
|
|
|
"UTF-8 To Unicode", ["$p1,TestICU_UTF8_ToUnicode", "$p2,TestICU_UTF8_ToUnicode" ],
|
|
|
|
####
|
|
|
|
"ISO-8859-1 From Unicode", ["$p1,TestICU_Latin1_FromUnicode", "$p2,TestICU_Latin1_FromUnicode" ],
|
|
|
|
"ISO-8859-1 To Unicode", ["$p1,TestICU_Latin1_ToUnicode", "$p2,TestICU_Latin1_ToUnicode" ],
|
|
|
|
####
|
|
|
|
"Shift-JIS From Unicode", ["$p1,TestICU_SJIS_FromUnicode", "$p2,TestICU_SJIS_FromUnicode" ],
|
|
|
|
"Shift-JIS To Unicode", ["$p1,TestICU_SJIS_ToUnicode", "$p2,TestICU_SJIS_ToUnicode" ],
|
|
|
|
####
|
|
|
|
"EUC-JP From Unicode", ["$p1,TestICU_EUCJP_FromUnicode", "$p2,TestICU_EUCJP_FromUnicode" ],
|
|
|
|
"EUC-JP To Unicode", ["$p1,TestICU_EUCJP_ToUnicode", "$p2,TestICU_EUCJP_ToUnicode" ],
|
|
|
|
####
|
|
|
|
"GB2312 From Unicode", ["$p1,TestICU_GB2312_FromUnicode", "$p2,TestICU_GB2312_FromUnicode" ],
|
|
|
|
"GB2312 To Unicode", ["$p1,TestICU_GB2312_ToUnicode", "$p2,TestICU_GB2312_ToUnicode" ],
|
|
|
|
####
|
|
|
|
"ISO2022KR From Unicode", ["$p1,TestICU_ISO2022KR_FromUnicode", "$p2,TestICU_ISO2022KR_FromUnicode" ],
|
|
|
|
"ISO2022KR To Unicode", ["$p1,TestICU_ISO2022KR_ToUnicode", "$p2,TestICU_ISO2022KR_ToUnicode" ],
|
|
|
|
####
|
|
|
|
"ISO2022JP From Unicode", ["$p1,TestICU_ISO2022JP_FromUnicode", "$p2,TestICU_ISO2022JP_FromUnicode" ],
|
|
|
|
"ISO2022JP To Unicode", ["$p1,TestICU_ISO2022JP_ToUnicode", "$p2,TestICU_ISO2022JP_ToUnicode" ],
|
|
|
|
};
|
|
|
|
|
2007-09-01 07:22:23 +00:00
|
|
|
|
|
|
|
runTests($options, $tests, $dataFiles);
|
|
|
|
|
|
|
|
|