X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2Ficu%2Fsource%2Ftest%2Fperf%2Fusetperf%2FUsetPerf.pl;h=93ddb79c9869548834897c675e02899d27d94470;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=a60a526b20eff6a21fbfcc0c69d3bd7652f7934b;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/icu/source/test/perf/usetperf/UsetPerf.pl b/src/third_party/icu/source/test/perf/usetperf/UsetPerf.pl index a60a526..93ddb79 100755 --- a/src/third_party/icu/source/test/perf/usetperf/UsetPerf.pl +++ b/src/third_party/icu/source/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);