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

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

Issue 2837583002: [Benchmarks] Remove V8.TodoMVC benchmark (Closed)
Patch Set: Created 3 years, 8 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/page_sets/data/todomvc_000.wpr.sha1 ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/todomvc.py
diff --git a/tools/perf/page_sets/todomvc.py b/tools/perf/page_sets/todomvc.py
deleted file mode 100644
index 43ce61e4f349dc61f50c4e3c173ac1f06ecec710..0000000000000000000000000000000000000000
--- a/tools/perf/page_sets/todomvc.py
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright 2016 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.page import shared_page_state
-from telemetry import story
-from telemetry.util import js_template
-
-
-URL_LIST = [
- ('Polymer', 'http://todomvc.com/examples/polymer'),
- ('AngularJS', 'http://todomvc.com/examples/angularjs'),
- ('React', 'http://todomvc.com/examples/react'),
- ('Backbone.js', 'http://todomvc.com/examples/backbone'),
- ('Ember.js', 'http://todomvc.com/examples/emberjs'),
- ('Closure', 'http://todomvc.com/examples/closure'),
- ('GWT', 'http://todomvc.com/examples/gwt'),
- ('Dart', 'http://todomvc.com/examples/vanilladart/build/web'),
- ('Vanilla JS', 'http://todomvc.com/examples/vanillajs'),
-]
-
-INTERACTION_NAME = 'Interaction.AppLoad'
-
-
-class TodoMVCPage(page_module.Page):
-
- def __init__(self, url, page_set, name):
- super(TodoMVCPage, self).__init__(
- url=url, page_set=page_set, name=name,
- shared_page_state_class=shared_page_state.SharedDesktopPageState)
- # TODO(jochen): This interaction does not include the
- # WindowProxy::initialize portion before the commit. To fix this, we'll
- # have to migrate to TBMv2.
- self.script_to_evaluate_on_commit = js_template.Render(
- 'console.time({{ label }});', label=INTERACTION_NAME)
-
- def RunPageInteractions(self, action_runner):
- action_runner.ExecuteJavaScript(
- """
- this.becameIdle = false;
- this.idleCallback = function(deadline) {
- if (deadline.timeRemaining() > 20)
- this.becameIdle = true;
- else
- requestIdleCallback(this.idleCallback);
- };
- requestIdleCallback(this.idleCallback);
- """
- )
- action_runner.WaitForJavaScriptCondition('this.becameIdle === true')
- action_runner.ExecuteJavaScript(
- 'console.timeEnd({{ label }});', label=INTERACTION_NAME)
-
-
-class TodoMVCPageSet(story.StorySet):
-
- """ TodoMVC examples """
-
- def __init__(self):
- super(TodoMVCPageSet, self).__init__(
- archive_data_file='data/todomvc.json',
- cloud_storage_bucket=story.PUBLIC_BUCKET)
-
- for name, url in URL_LIST:
- self.AddStory(TodoMVCPage(url, self, name))
« no previous file with comments | « tools/perf/page_sets/data/todomvc_000.wpr.sha1 ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698