Skip to content
Permalink
Browse files
Unreviewed, rolling out r209672.
https://bugs.webkit.org/show_bug.cgi?id=165766

IndexedDB/objectstore-cursor.html perf test always times out
(Requested by ap on #webkit).

Reverted changeset:

"More IndexedDB perf tests."
https://bugs.webkit.org/show_bug.cgi?id=165634
http://trac.webkit.org/changeset/209672

Canonical link: https://commits.webkit.org/183372@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@209716 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
webkit-commit-queue committed Dec 12, 2016
1 parent 2307a28 commit 32e9b4b9d2409bf01dd6689d3fc04561a167f5de
Showing 6 changed files with 19 additions and 281 deletions.
@@ -1,3 +1,17 @@
2016-12-12 Commit Queue <commit-queue@webkit.org>

Unreviewed, rolling out r209672.
https://bugs.webkit.org/show_bug.cgi?id=165766

IndexedDB/objectstore-cursor.html perf test always times out
(Requested by ap on #webkit).

Reverted changeset:

"More IndexedDB perf tests."
https://bugs.webkit.org/show_bug.cgi?id=165634
http://trac.webkit.org/changeset/209672

2016-12-10 Brady Eidson <beidson@apple.com>

More IndexedDB perf tests.
@@ -4,14 +4,12 @@
<script src="../resources/runner.js"></script>
<script>

var iterationCount = 20;
var iterationCount = 11;
var numberDeleted = 0;

// Delete all databases for the test ahead of time.
var databaseNamePrefix = "index-multientry-DB-";
for (var i = 0; i < iterationCount + 1; ++i) {
req = indexedDB.deleteDatabase(databaseNamePrefix + i);
req.onsuccess = function() {
for (var i = 0; i < iterationCount; ++i) {
indexedDB.deleteDatabase("index-multientry-DB-" + i).onsuccess = function() {
if (++numberDeleted == iterationCount)
startIteration();
}
@@ -46,14 +44,14 @@
}

var object = { test: 'yo', indexKeys: [] };
for (var i = 0; i < 5000; i++)
for (var i = 0; i < 1000; i++)
object.indexKeys.push('index_no_' + i);

function *runIteration()
{
var startTime = PerfTestRunner.now();

var openRequest = indexedDB.open(databaseNamePrefix + currentIteration);
var openRequest = indexedDB.open("index-multientry-DB-" + currentIteration);
openRequest.onupgradeneeded = function(event) {
db = event.target.result;
db.createObjectStore('store').createIndex('index', 'indexKeys', { multiEntry: true });

This file was deleted.

This file was deleted.

This file was deleted.

@@ -15,9 +15,6 @@ if (window.testRunner) {
var jsHeapResults;
var mallocHeapResults;
var iterationCount = undefined;
var lastResponsivenessTimestamp = 0;
var _longestResponsivenessDelay = 0;
var continueCheckingResponsiveness = false;

var PerfTestRunner = {};

@@ -326,32 +323,6 @@ if (window.testRunner) {
return PerfTestRunner.now() - startTime;
}

PerfTestRunner.startCheckingResponsiveness = function() {
lastResponsivenessTimestamp = PerfTestRunner.now();
_longestResponsivenessDelay = 0;
continueCheckingResponsiveness = true;

var timeoutFunction = function() {
var now = PerfTestRunner.now();
var delta = now - lastResponsivenessTimestamp;
if (delta > _longestResponsivenessDelay)
_longestResponsivenessDelay = delta;

lastResponsivenessTimestamp = now;
if (continueCheckingResponsiveness)
setTimeout(timeoutFunction, 0);
}

timeoutFunction();
}

PerfTestRunner.stopCheckingResponsiveness = function() {
continueCheckingResponsiveness = false;
}

PerfTestRunner.longestResponsivenessDelay = function() {
return _longestResponsivenessDelay;
}

PerfTestRunner.measurePageLoadTime = function(test) {
test.run = function() {

0 comments on commit 32e9b4b

Please sign in to comment.