2008-03-27 21:35:56 +00:00
|
|
|
#!/usr/bin/perl
|
2005-12-30 21:40:34 +00:00
|
|
|
# ********************************************************************
|
|
|
|
# * COPYRIGHT:
|
2008-03-27 21:17:44 +00:00
|
|
|
# * Copyright (c) 2005-2008, International Business Machines Corporation and
|
2005-12-30 21:40:34 +00:00
|
|
|
# * others. All Rights Reserved.
|
|
|
|
# ********************************************************************
|
|
|
|
|
2008-03-27 21:17:44 +00:00
|
|
|
#use strict;
|
|
|
|
|
|
|
|
require "../perldriver/Common.pl";
|
2005-12-30 21:40:34 +00:00
|
|
|
|
|
|
|
use lib '../perldriver';
|
|
|
|
|
|
|
|
use PerfFramework;
|
|
|
|
|
|
|
|
|
2008-03-27 21:17:44 +00:00
|
|
|
|
2005-12-30 21:40:34 +00:00
|
|
|
my $options = {
|
2008-04-03 22:22:20 +00:00
|
|
|
"title"=>"Uset performance: ICU (".$ICUPreviousVersion." and ".$ICULatestVersion.")",
|
|
|
|
"headers"=>"ICU".$ICUPreviousVersion." ICU".$ICULatestVersion,
|
2005-12-30 21:40:34 +00:00
|
|
|
"operationIs"=>"unicode string",
|
|
|
|
"passes"=>"1",
|
|
|
|
"time"=>"2",
|
|
|
|
#"outputType"=>"HTML",
|
2008-03-27 21:17:44 +00:00
|
|
|
"dataDir"=>"Not Using Data Files",
|
|
|
|
"outputDir"=>"../results"
|
2005-12-30 21:40:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# programs
|
|
|
|
# tests will be done for all the programs. Results will be stored and connected
|
2008-04-03 22:22:20 +00:00
|
|
|
my $p1, $p2;
|
2008-03-27 21:17:44 +00:00
|
|
|
if ($OnWindows) {
|
2008-04-03 22:22:20 +00:00
|
|
|
$p1 = $ICUPathPrevious."/usetperf/Release/usetperf.exe";
|
|
|
|
$p2 = $ICUPathLatest."/usetperf/Release/usetperf.exe";
|
2008-03-27 21:17:44 +00:00
|
|
|
} else {
|
2008-04-03 22:22:20 +00:00
|
|
|
$p1 = $ICUPathPrevious."/usetperf/usetperf";
|
|
|
|
$p2 = $ICUPathLatest."/usetperf/usetperf";
|
|
|
|
|
2008-03-27 21:17:44 +00:00
|
|
|
}
|
2005-12-30 21:40:34 +00:00
|
|
|
|
|
|
|
my $tests = {
|
2008-04-03 22:22:20 +00:00
|
|
|
"titlecase_letter/add", ["$p1 titlecase_letter_add", "$p2 titlecase_letter_add"],
|
|
|
|
"titlecase_letter/contains", ["$p1 titlecase_letter_contains", "$p2 titlecase_letter_contains"],
|
|
|
|
"titlecase_letter/iterator", ["$p1 titlecase_letter_iterator", "$p2 titlecase_letter_iterator"],
|
|
|
|
"unassigned/add", ["$p1 unassigned_add", "$p2 unassigned_add"],
|
|
|
|
"unassigned/contains", ["$p1 unassigned_contains", "$p2 unassigned_contains"],
|
|
|
|
"unassigned/iterator", ["$p1 unassigned_iterator", "$p2 unassigned_iterator"],
|
|
|
|
"pattern1", ["$p1 pattern1", "$p2 pattern1"],
|
|
|
|
"pattern2", ["$p1 pattern2", "$p2 pattern2"],
|
|
|
|
"pattern3", ["$p1 pattern3", "$p2 pattern3"],
|
2005-12-30 21:40:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
my $dataFiles = {
|
|
|
|
};
|
|
|
|
|
|
|
|
runTests($options, $tests, $dataFiles);
|