X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/729e4ab9bc6618bc3d8a898e575df7f4019e29ca..b331163bffd790ced0e88b73f44f86d49ccc48a5:/icuSources/test/perf/usetperf/UsetPerf.pl diff --git a/icuSources/test/perf/usetperf/UsetPerf.pl b/icuSources/test/perf/usetperf/UsetPerf.pl old mode 100644 new mode 100755 index a60a526b..93ddb79c --- a/icuSources/test/perf/usetperf/UsetPerf.pl +++ b/icuSources/test/perf/usetperf/UsetPerf.pl @@ -1,7 +1,7 @@ #!/usr/bin/perl # ******************************************************************** # * COPYRIGHT: -# * Copyright (c) 2005-2008, International Business Machines Corporation and +# * Copyright (c) 2005-2013, International Business Machines Corporation and # * others. All Rights Reserved. # ******************************************************************** @@ -16,41 +16,40 @@ use PerfFramework; my $options = { - "title"=>"Uset performance: ICU (".$ICUPreviousVersion." and ".$ICULatestVersion.")", - "headers"=>"ICU".$ICUPreviousVersion." ICU".$ICULatestVersion, - "operationIs"=>"unicode string", - "passes"=>"1", - "time"=>"2", - #"outputType"=>"HTML", - "dataDir"=>"Not Using Data Files", - "outputDir"=>"../results" - }; + "title"=>"Uset performance: ICU (".$ICUPreviousVersion." and ".$ICULatestVersion.")", + "headers"=>"ICU".$ICUPreviousVersion." ICU".$ICULatestVersion, + "operationIs"=>"unicode string", + "passes"=>"1", + "time"=>"2", + #"outputType"=>"HTML", + "dataDir"=>"Not Using Data Files", + "outputDir"=>"../results" +}; # programs # tests will be done for all the programs. Results will be stored and connected my $p1, $p2; if ($OnWindows) { - $p1 = $ICUPathPrevious."/usetperf/$WindowsPlatform/Release/usetperf.exe"; - $p2 = $ICUPathLatest."/usetperf/$WindowsPlatform/Release/usetperf.exe"; + $p1 = "cd ".$ICUPrevious."/bin && ".$ICUPathPrevious."/usetperf/$WindowsPlatform/Release/usetperf.exe"; + $p2 = "cd ".$ICULatest."/bin && ".$ICUPathLatest."/usetperf/$WindowsPlatform/Release/usetperf.exe"; } else { - $p1 = $ICUPathPrevious."/usetperf/usetperf"; - $p2 = $ICUPathLatest."/usetperf/usetperf"; - + $p1 = "LD_LIBRARY_PATH=".$ICUPrevious."/source/lib:".$ICUPrevious."/source/tools/ctestfw ".$ICUPathPrevious."/usetperf/usetperf"; + $p2 = "LD_LIBRARY_PATH=".$ICULatest."/source/lib:".$ICULatest."/source/tools/ctestfw ".$ICUPathLatest."/usetperf/usetperf"; } my $tests = { - "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"], - }; + "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"], +}; my $dataFiles = { - }; +}; runTests($options, $tests, $dataFiles);