From fc66e4de74546262ac79b70689ebd29cb215116a Mon Sep 17 00:00:00 2001 From: "scc%netscape.com" Date: Tue, 4 Apr 2000 05:20:05 +0000 Subject: [PATCH] Added tests for construction and |Find|. Added null loop timings to help better analyze results. Temporarily commented out block-stomping tests. git-svn-id: svn://10.0.0.236/trunk@65148 18797224-902f-48f8-a5cc-f745e15eee43 --- .../StringFactoringTests/profile_main.cpp | 107 +++++++++++++++++- 1 file changed, 103 insertions(+), 4 deletions(-) diff --git a/mozilla/xpcom/tests/StringFactoringTests/profile_main.cpp b/mozilla/xpcom/tests/StringFactoringTests/profile_main.cpp index 5b04f8833e7..2fec56eb626 100644 --- a/mozilla/xpcom/tests/StringFactoringTests/profile_main.cpp +++ b/mozilla/xpcom/tests/StringFactoringTests/profile_main.cpp @@ -92,10 +92,61 @@ class TestTimer nsInt64 mStartTime; }; +inline +int +foo( const nsCString& ) + { + return 1; + } + +static +int +test_construction() + { + cout << endl; + + { + nsCString someCString; + int total = 0; + TestTimer timer; + for ( int i=0; i