Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Unified Diff: tools/perf/page_sets/indexeddb_endure_page.py

Issue 1238393003: [IndexedDB] Adding traces, perf tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: forgot to start the old test Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/perf/benchmarks/indexeddb_perf.py ('k') | tools/perf/page_sets/indexeddb_perf/endure/app.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/indexeddb_endure_page.py
diff --git a/tools/perf/page_sets/indexeddb_endure_page.py b/tools/perf/page_sets/indexeddb_endure_page.py
new file mode 100644
index 0000000000000000000000000000000000000000..4910782a94d82705a1faf0ffbd44ef080f10e17f
--- /dev/null
+++ b/tools/perf/page_sets/indexeddb_endure_page.py
@@ -0,0 +1,46 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from telemetry.page import page as page_module
+from telemetry import story
+
+class IndexedDBEndurePage(page_module.Page):
+
+ def __init__(self, subtest, page_set):
+ super(IndexedDBEndurePage, self).__init__(
+ url='file://indexeddb_perf/perf_test.html',
+ page_set=page_set,
+ name='indexeddb-endure-' + subtest)
+ self._subtest = subtest
+
+ def RunPageInteractions(self, action_runner):
+ action_runner.ExecuteJavaScript('window.testFilter = "' +
+ self._subtest + '";')
+ with action_runner.CreateInteraction('Action_Test'):
+ action_runner.ExecuteJavaScript('window.test();')
+ action_runner.WaitForJavaScriptCondition('window.done', 600)
+
+class IndexedDBEndurePageSet(story.StorySet):
+ """The IndexedDB Endurance page set.
+
+ This page set exercises various common operations in IndexedDB.
+ """
+
+ def __init__(self):
+ super(IndexedDBEndurePageSet, self).__init__()
+ tests = [
+ 'testCreateAndDeleteDatabases',
+ 'testCreateAndDeleteDatabase',
+ 'testCreateKeysInStores',
+ 'testRandomReadsAndWritesWithoutIndex',
+ 'testRandomReadsAndWritesWithIndex',
+ 'testReadCacheWithoutIndex',
+ 'testReadCacheWithIndex',
+ 'testCreateAndDeleteIndex',
+ 'testWalkingMultipleCursors',
+ 'testCursorSeeksWithoutIndex',
+ 'testCursorSeeksWithIndex'
+ ]
+ for test in tests:
+ self.AddStory(IndexedDBEndurePage(test, self))
« no previous file with comments | « tools/perf/benchmarks/indexeddb_perf.py ('k') | tools/perf/page_sets/indexeddb_perf/endure/app.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698