OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/perftimer.h" | 5 #include "base/perftimer.h" |
6 #include "googleurl/src/gurl.h" | 6 #include "googleurl/src/gurl.h" |
7 #include "googleurl/src/url_canon.h" | 7 #include "googleurl/src/url_canon.h" |
8 #include "googleurl/src/url_canon_stdstring.h" | 8 #include "googleurl/src/url_canon_stdstring.h" |
9 #include "googleurl/src/url_parse.h" | 9 #include "googleurl/src/url_parse.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 | 11 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 PerfTimeLogger timer_kurl("Typical_KURL_AMillion"); | 140 PerfTimeLogger timer_kurl("Typical_KURL_AMillion"); |
141 for (int i = 0; i < 333333; i++) { // divide by 3 so we get 1M | 141 for (int i = 0; i < 333333; i++) { // divide by 3 so we get 1M |
142 WebCore::WebKitKURL kurl1(typical_url1); | 142 WebCore::WebKitKURL kurl1(typical_url1); |
143 WebCore::WebKitKURL kurl2(typical_url2); | 143 WebCore::WebKitKURL kurl2(typical_url2); |
144 WebCore::WebKitKURL kurl3(typical_url3); | 144 WebCore::WebKitKURL kurl3(typical_url3); |
145 } | 145 } |
146 timer_kurl.Done(); | 146 timer_kurl.Done(); |
147 } | 147 } |
148 | 148 |
149 #endif | 149 #endif |
OLD | NEW |