From 0106270281ad274af73e5054aaea972d3dc3ee57 Mon Sep 17 00:00:00 2001 From: Michael Ow Date: Fri, 18 Apr 2008 21:07:32 +0000 Subject: [PATCH] ICU-4362 Add strsrchperf to perl solution file. X-SVN-Rev: 23812 --- .gitattributes | 1 + icu4c/source/test/perf/perf.sln | 6 + .../test/perf/strsrchperf/strsrchperf.h | 2 +- .../test/perf/strsrchperf/strsrchperf.vcproj | 252 ++++++++++++++++++ 4 files changed, 260 insertions(+), 1 deletion(-) create mode 100644 icu4c/source/test/perf/strsrchperf/strsrchperf.vcproj diff --git a/.gitattributes b/.gitattributes index c3bb50f920..76155183b8 100644 --- a/.gitattributes +++ b/.gitattributes @@ -85,6 +85,7 @@ icu4c/source/test/perf/strsrchperf/Makefile.in -text icu4c/source/test/perf/strsrchperf/StrSrchPerf_r.pl -text icu4c/source/test/perf/strsrchperf/strsrchperf.cpp -text icu4c/source/test/perf/strsrchperf/strsrchperf.h -text +icu4c/source/test/perf/strsrchperf/strsrchperf.vcproj -text icu4c/source/test/testdata/TestFont1.otf -text icu4c/source/test/testdata/icu26_testtypes.res -text icu4c/source/test/testdata/icu26e_testtypes.res -text diff --git a/icu4c/source/test/perf/perf.sln b/icu4c/source/test/perf/perf.sln index 0a10a9e9f2..8b14496bed 100644 --- a/icu4c/source/test/perf/perf.sln +++ b/icu4c/source/test/perf/perf.sln @@ -18,6 +18,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "usetperf", "usetperf\usetpe EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "unisetperf", "unisetperf\unisetperf.vcproj", "{E7728E98-0469-AF37-43F4-4529A3D52C6B}" EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "strsrchperf", "strsrchperf\strsrchperf.vcproj", "{241DED26-1635-45E6-9564-7742AC8043B5}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 @@ -60,6 +62,10 @@ Global {E7728E98-0469-AF37-43F4-4529A3D52C6B}.Debug|Win32.Build.0 = Debug|Win32 {E7728E98-0469-AF37-43F4-4529A3D52C6B}.Release|Win32.ActiveCfg = Release|Win32 {E7728E98-0469-AF37-43F4-4529A3D52C6B}.Release|Win32.Build.0 = Release|Win32 + {241DED26-1635-45E6-9564-7742AC8043B5}.Debug|Win32.ActiveCfg = Debug|Win32 + {241DED26-1635-45E6-9564-7742AC8043B5}.Debug|Win32.Build.0 = Debug|Win32 + {241DED26-1635-45E6-9564-7742AC8043B5}.Release|Win32.ActiveCfg = Release|Win32 + {241DED26-1635-45E6-9564-7742AC8043B5}.Release|Win32.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/icu4c/source/test/perf/strsrchperf/strsrchperf.h b/icu4c/source/test/perf/strsrchperf/strsrchperf.h index 3ca112b49d..3c01279398 100644 --- a/icu4c/source/test/perf/strsrchperf/strsrchperf.h +++ b/icu4c/source/test/perf/strsrchperf/strsrchperf.h @@ -29,7 +29,7 @@ public: } virtual long getOperationsPerIteration() { - return srcLen; + return (long)(srcLen/pttrnLen); } StringSearchPerfFunction(StrSrchFn func, UStringSearch* search, const UChar* source,int32_t sourceLen, const UChar* pattern, int32_t patternLen) { diff --git a/icu4c/source/test/perf/strsrchperf/strsrchperf.vcproj b/icu4c/source/test/perf/strsrchperf/strsrchperf.vcproj new file mode 100644 index 0000000000..7db5689e0a --- /dev/null +++ b/icu4c/source/test/perf/strsrchperf/strsrchperf.vcproj @@ -0,0 +1,252 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +