| OLD | NEW | 
|    1 // Copyright 2015 The Chromium Authors. All rights reserved. |    1 // Copyright 2015 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 "net/base/mime_sniffer.h" |    5 #include "net/base/mime_sniffer.h" | 
|    6  |    6  | 
|    7 #include <vector> |    7 #include <vector> | 
|    8  |    8  | 
|    9 #include "base/bits.h" |    9 #include "base/bits.h" | 
|   10 #include "base/logging.h" |   10 #include "base/logging.h" | 
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   92     plaintext += plaintext; |   92     plaintext += plaintext; | 
|   93   DCHECK_EQ(expected_size, plaintext.size()); |   93   DCHECK_EQ(expected_size, plaintext.size()); | 
|   94   RunLooksLikeBinary(plaintext, kWarmupIterations); |   94   RunLooksLikeBinary(plaintext, kWarmupIterations); | 
|   95   base::ElapsedTimer elapsed_timer; |   95   base::ElapsedTimer elapsed_timer; | 
|   96   RunLooksLikeBinary(plaintext, kMeasuredIterations); |   96   RunLooksLikeBinary(plaintext, kMeasuredIterations); | 
|   97   LOG(INFO) << (elapsed_timer.Elapsed().InMicroseconds() * 1000 * 1024 / |   97   LOG(INFO) << (elapsed_timer.Elapsed().InMicroseconds() * 1000 * 1024 / | 
|   98                 (static_cast<int64_t>(plaintext.size()) * kMeasuredIterations)) |   98                 (static_cast<int64_t>(plaintext.size()) * kMeasuredIterations)) | 
|   99             << "ns per KB"; |   99             << "ns per KB"; | 
|  100 } |  100 } | 
|  101  |  101  | 
 |  102 }  // namespace | 
|  102 }  // namespace net |  103 }  // namespace net | 
|  103 }  // namespace |  | 
| OLD | NEW |