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

Unified Diff: source/test/perf/DateFmtPerf/DateFmtPerf.cpp

Issue 1621843002: ICU 56 update step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@561
Patch Set: Created 4 years, 11 months 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 | « source/test/perf/DateFmtPerf/DateFmtPerf.h ('k') | source/test/perf/DateFmtPerf/DateFmtPerf.vcxproj » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/perf/DateFmtPerf/DateFmtPerf.cpp
diff --git a/source/test/perf/DateFmtPerf/DateFmtPerf.cpp b/source/test/perf/DateFmtPerf/DateFmtPerf.cpp
index 909ec6de3a0e0fa920e4b89065914f539072fe55..66bd2e39976e9d18f9a5bd23be23cb1b0b5ddec6 100644
--- a/source/test/perf/DateFmtPerf/DateFmtPerf.cpp
+++ b/source/test/perf/DateFmtPerf/DateFmtPerf.cpp
@@ -1,6 +1,6 @@
/*
**********************************************************************
-* Copyright (c) 2002-2011,International Business Machines
+* Copyright (c) 2002-2014,International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
**********************************************************************
@@ -42,6 +42,21 @@ UPerfFunction* DateFormatPerfTest::runIndexedTest(int32_t index, UBool exec,cons
TESTCASE(8,NumFmt100000);
TESTCASE(9,Collation10000);
TESTCASE(10,Collation100000);
+ TESTCASE(11, DIFCreate250);
+ TESTCASE(12, DIFCreate10000);
+ TESTCASE(13, TimeZoneCreate250);
+ TESTCASE(14, TimeZoneCreate10000);
+ TESTCASE(15, DTPatternGeneratorCreate250);
+ TESTCASE(16, DTPatternGeneratorCreate10000);
+ TESTCASE(17, DTPatternGeneratorCopy250);
+ TESTCASE(18, DTPatternGeneratorCopy10000);
+ TESTCASE(19, DTPatternGeneratorBestValue250);
+ TESTCASE(20, DTPatternGeneratorBestValue10000);
+ TESTCASE(21,DateFmtCopy250);
+ TESTCASE(22,DateFmtCopy10000);
+ TESTCASE(23,DateFmtCreate250);
+ TESTCASE(24,DateFmtCreate10000);
+
default:
name = "";
@@ -107,6 +122,64 @@ UPerfFunction* DateFormatPerfTest::Collation100000(){
}
+UPerfFunction *DateFormatPerfTest::DIFCreate250() {
+ DIFCreateFunction* func = new DIFCreateFunction(250, locale);
+ return func;
+}
+
+UPerfFunction *DateFormatPerfTest::DIFCreate10000() {
+ DIFCreateFunction* func = new DIFCreateFunction(10000, locale);
+ return func;
+}
+
+UPerfFunction *DateFormatPerfTest::TimeZoneCreate250() {
+ return new TimeZoneCreateFunction(250, locale);
+}
+
+UPerfFunction *DateFormatPerfTest::TimeZoneCreate10000() {
+ return new TimeZoneCreateFunction(10000, locale);
+}
+
+UPerfFunction *DateFormatPerfTest::DTPatternGeneratorCreate250() {
+ return new DTPatternGeneratorCreateFunction(250, locale);
+}
+
+UPerfFunction *DateFormatPerfTest::DTPatternGeneratorCreate10000() {
+ return new DTPatternGeneratorCreateFunction(10000, locale);
+}
+
+UPerfFunction *DateFormatPerfTest::DTPatternGeneratorCopy250() {
+ return new DTPatternGeneratorCopyFunction(250, locale);
+}
+
+UPerfFunction *DateFormatPerfTest::DTPatternGeneratorCopy10000() {
+ return new DTPatternGeneratorCopyFunction(10000, locale);
+}
+
+UPerfFunction *DateFormatPerfTest::DTPatternGeneratorBestValue250() {
+ return new DTPatternGeneratorBestValueFunction(250, locale);
+}
+
+UPerfFunction *DateFormatPerfTest::DTPatternGeneratorBestValue10000() {
+ return new DTPatternGeneratorBestValueFunction(10000, locale);
+}
+
+UPerfFunction* DateFormatPerfTest::DateFmtCopy250(){
+ return new DateFmtCopyFunction(250, locale);
+}
+
+UPerfFunction* DateFormatPerfTest::DateFmtCopy10000(){
+ return new DateFmtCopyFunction(10000, locale);
+}
+
+UPerfFunction* DateFormatPerfTest::DateFmtCreate250(){
+ return new DateFmtCreateFunction(250, locale);
+}
+
+UPerfFunction* DateFormatPerfTest::DateFmtCreate10000(){
+ return new DateFmtCreateFunction(10000, locale);
+}
+
int main(int argc, const char* argv[]){
« no previous file with comments | « source/test/perf/DateFmtPerf/DateFmtPerf.h ('k') | source/test/perf/DateFmtPerf/DateFmtPerf.vcxproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698