summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/disk_cache_perftest.cc
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-29 20:50:33 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-29 20:50:33 +0000
commit949ad3315c2e93cc3d8d21e9726187ec7c0f253e (patch)
tree99f0ad4695fb54717e2b99d3ce1a4b99002ea242 /net/disk_cache/disk_cache_perftest.cc
parentf4e43391c883eb0e8245dd08567feb6ba6af47c2 (diff)
downloadchromium_src-949ad3315c2e93cc3d8d21e9726187ec7c0f253e.zip
chromium_src-949ad3315c2e93cc3d8d21e9726187ec7c0f253e.tar.gz
chromium_src-949ad3315c2e93cc3d8d21e9726187ec7c0f253e.tar.bz2
Fixing the comment that was not included with the last cl.
TBR=darin git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1554 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/disk_cache_perftest.cc')
-rw-r--r--net/disk_cache/disk_cache_perftest.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/disk_cache/disk_cache_perftest.cc b/net/disk_cache/disk_cache_perftest.cc
index 3a94cef..8cb893e 100644
--- a/net/disk_cache/disk_cache_perftest.cc
+++ b/net/disk_cache/disk_cache_perftest.cc
@@ -219,6 +219,11 @@ TEST_F(DiskCacheTest, CacheBackendPerformance) {
delete cache;
}
+// Creating and deleting "entries" on a block-file is something quite frequent
+// (after all, almost everything is stored on block files). The operation is
+// almost free when the file is empty, but can be expensive if the file gets
+// fragmented, or if we have multiple files. This test measures that scenario,
+// by using multiple, highly fragmented files.
TEST_F(DiskCacheTest, BlockFilesPerformance) {
std::wstring path = GetCachePath();
ASSERT_TRUE(DeleteCache(path.c_str()));