Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: icu46/source/test/perf/utfperf/UtfPerf.pl

Issue 5516007: Check in the pristine copy of ICU 4.6... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « icu46/source/test/perf/utfperf/Makefile.in ('k') | icu46/source/test/perf/utfperf/utfperf.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: icu46/source/test/perf/utfperf/UtfPerf.pl
===================================================================
--- icu46/source/test/perf/utfperf/UtfPerf.pl (revision 0)
+++ icu46/source/test/perf/utfperf/UtfPerf.pl (revision 0)
@@ -0,0 +1,59 @@
+#!/usr/bin/perl
+# ********************************************************************
+# * COPYRIGHT:
+# * Copyright (c) 2005-2008, International Business Machines Corporation and
+# * others. All Rights Reserved.
+# ********************************************************************
+
+#use strict;
+
+require "../perldriver/Common.pl";
+
+use lib '../perldriver';
+
+use PerfFramework;
+
+my $options = {
+ "title"=>"UTF performance: ICU (".$ICUPreviousVersion." and ".$ICULatestVersion.")",
+ "headers"=>"ICU".$ICUPreviousVersion." ICU".$ICULatestVersion,
+ "operationIs"=>"gb18030 encoding string",
+ "passes"=>"1",
+ "time"=>"2",
+ #"outputType"=>"HTML",
+ "dataDir"=>$ConversionDataPath,
+ "outputDir"=>"../results"
+ };
+
+# programs
+# tests will be done for all the programs. Results will be stored and connected
+my $p1;
+my $p2;
+
+if ($OnWindows) {
+ $p1 = $ICUPathPrevious."/utfperf/$WindowsPlatform/Release/utfperf.exe -e gb18030"; # Previous
+ $p2 = $ICUPathLatest."/utfperf/$WindowsPlatform/Release/utfperf.exe -e gb18030"; # Latest
+} else {
+ $p1 = $ICUPathPrevious."/utfperf/utfperf -e gb18030"; # Previous
+ $p2 = $ICUPathLatest."/utfperf/utfperf -e gb18030"; # Latest
+}
+
+my $tests = {
+ "Roundtrip", ["$p1 Roundtrip", "$p2 Roundtrip"],
+ "FromUnicode", ["$p1 FromUnicode", "$p2 FromUnicode"],
+ "FromUTF8", ["$p1 FromUTF8", "$p2 FromUTF8"],
+ #"UTF-8", ["$p UTF_8"],
+ #"UTF-8 small buffer", ["$p UTF_8_SB"],
+ #"SCSU", ["$p SCSU"],
+ #"SCSU small buffer", ["$p SCSU_SB"],
+ #"BOCU_1", ["$p BOCU_1"],
+ #"BOCU_1 small buffer", ["$p BOCU_1_SB"],
+ };
+
+my $dataFiles = {
+ "",
+ [
+ "xuzhimo.txt"
+ ]
+ };
+
+runTests($options, $tests, $dataFiles);
Property changes on: icu46/source/test/perf/utfperf/UtfPerf.pl
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:eol-style
+ LF
« no previous file with comments | « icu46/source/test/perf/utfperf/Makefile.in ('k') | icu46/source/test/perf/utfperf/utfperf.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698