Bug 1272855 - dom/indexedDB/test/unit/test_quotaExceeded_recovery.js incurs ~3.5 GB of I/O; r=baku
authorJan Varga <jan.varga@gmail.com>
Mon, 24 Oct 2016 11:18:25 +0200
changeset 319158 525cf19ff64728acadc0c0c11e142d03388b6121
parent 319157 4f7f541d40ec6064018b95f0f5afe9189bffcb8d
child 319159 22876ba02feed64fd5b52b2a43daef786ff2dfe8
push id20736
push usercbook@mozilla.com
push dateMon, 24 Oct 2016 14:57:45 +0000
treeherderfx-team@c845bfd0accb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1272855
milestone52.0a1
Bug 1272855 - dom/indexedDB/test/unit/test_quotaExceeded_recovery.js incurs ~3.5 GB of I/O; r=baku
dom/indexedDB/test/unit/test_quotaExceeded_recovery.js
--- a/dom/indexedDB/test/unit/test_quotaExceeded_recovery.js
+++ b/dom/indexedDB/test/unit/test_quotaExceeded_recovery.js
@@ -9,26 +9,29 @@ var testGenerator = testSteps();
 
 function testSteps()
 {
   const spec = "http://foo.com";
   const name =
     this.window ? window.location.pathname : "test_quotaExceeded_recovery";
   const objectStoreName = "foo";
 
-  // We want 8 MB database on Android and 32 MB database on other platforms.
-  const groupLimitMB = mozinfo.os == "android" ? 8 : 32;
+  const android = mozinfo.os == "android";
+
+  // We want 512 KB database on Android and 4 MB database on other platforms.
+  const groupLimitKB = android ? 512 : 4096;
 
   // The group limit is calculated as 20% of the global temporary storage limit.
-  const tempStorageLimitKB = groupLimitMB * 5 * 1024;
+  const tempStorageLimitKB = groupLimitKB * 5;
 
-  // Store in 1 MB chunks.
-  const dataSize = 1024 * 1024;
+  // We want 64 KB chunks on Android and 512 KB chunks on other platforms.
+  const dataSizeKB = android ? 64 : 512;
+  const dataSize = dataSizeKB * 1024;
 
-  const maxIter = 10;
+  const maxIter = 5;
 
   for (let blobs of [false, true]) {
     setTemporaryStorageLimit(tempStorageLimitKB);
 
     clearAllDatabases(continueToNextStepSync);
     yield undefined;
 
     info("Opening database");