6d93dcd857
X-SVN-Rev: 10295
77 lines
2.0 KiB
Perl
Executable File
77 lines
2.0 KiB
Perl
Executable File
#!/usr/bin/perl
|
|
|
|
use strict;
|
|
|
|
use lib '../perldriver';
|
|
|
|
use PerfFramework;
|
|
|
|
my $options = {
|
|
"title"=>"BreakIterator performance: ICU 2.0 vs. ICU 2.4",
|
|
"headers"=>"ICU20 ICU24",
|
|
"operationIs"=>"File size in code points",
|
|
"timePerOperationIs"=>"Time per code point",
|
|
"passes"=>"3",
|
|
#"time"=>"1.1",
|
|
"dataDir"=>"c:/src/perf/data",
|
|
"outputType"=>"HTML",
|
|
"outputDir"=>"../results"
|
|
};
|
|
|
|
# programs
|
|
# tests will be done for all the programs. Results will be stored and connected
|
|
my $m1 = "-- -m char";
|
|
my $m2 = "-- -m word";
|
|
my $m3 = "-- -m line";
|
|
my $m4 = "-- -m sentence";
|
|
|
|
my $m;
|
|
|
|
if(@_ >= 0) {
|
|
$m = "-- -m ".shift;
|
|
} else {
|
|
$m = $m1;
|
|
}
|
|
|
|
my $p1 = "ubrkperf20.exe";
|
|
my $p2 = "ubrkperf24.exe";
|
|
|
|
my $dataFiles = {
|
|
"en", ["thesis.txt",
|
|
# #"2drvb10.txt",
|
|
# #"ulyss10.txt",
|
|
# "nvsbl10.txt",
|
|
# "vfear11a.txt",
|
|
# "TestNames_Asian.txt",
|
|
# "TestNames_Chinese.txt",
|
|
"TestNames_Japanese.txt",
|
|
# "TestNames_Japanese_h.txt",
|
|
# "TestNames_Japanese_k.txt",
|
|
# "TestNames_Korean.txt",
|
|
"TestNames_Latin.txt",
|
|
# "TestNames_SerbianSH.txt",
|
|
# "TestNames_SerbianSR.txt",
|
|
# "TestNames_Thai.txt",
|
|
# "Testnames_Russian.txt",
|
|
],
|
|
#"th", ["TestNames_Thai.txt", "th18057.txt"]
|
|
};
|
|
|
|
|
|
my $tests = {
|
|
"TestForwardChar", ["$p1 $m1 TestICUForward", "$p2 $m1 TestICUForward"],
|
|
"TestForwardWord", ["$p1 $m2 TestICUForward", "$p2 $m2 TestICUForward"],
|
|
#"TestForwardLine", ["$p1 $m3 TestICUForward", "$p2 $m3 TestICUForward"],
|
|
#"TestForwardSentence", ["$p1 $m4 TestICUForward", "$p2 $m4 TestICUForward"],
|
|
|
|
#"TestIsBoundChar", ["$p1 $m1 TestICUIsBound", "$p2 $m1 TestICUIsBound"],
|
|
#"TestIsBoundWord", ["$p1 $m2 TestICUIsBound", "$p2 $m2 TestICUIsBound"],
|
|
#"TestIsBoundLine", ["$p1 $m3 TestICUIsBound", "$p2 $m3 TestICUIsBound"],
|
|
#"TestIsBoundSentence", ["$p1 $m4 TestICUIsBound", "$p2 $m4 TestICUIsBound"],
|
|
|
|
};
|
|
|
|
runTests($options, $tests, $dataFiles);
|
|
|
|
|