{"action":"created","comment":{"url":"https://api.github.com/repos/PolymerElements/test-benchmark/pulls/comments/45088172","id":45088172,"diff_hunk":"@@ -0,0 +1,431 @@\n+<!--\n+@license\n+Copyright (c) 2015 The Polymer Project Authors. All rights reserved.\n+This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\n+The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\n+The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\n+Code distributed by Google as part of the polymer project is also\n+subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n+-->\n+\n+<link rel=\"import\" href=\"../polymer/polymer.html\">\n+<link rel=\"import\" href=\"../promise-polyfill/promise-polyfill.html\">\n+<link rel=\"import\" href=\"test-benchmark/feature-detect.html\">\n+<link rel=\"import\" href=\"test-benchmark-visualizer.html\">\n+<link rel=\"import\" href=\"test-benchmark/performance-test.html\">\n+<link rel=\"import\" href=\"test-benchmark/performance-analysis.html\">\n+\n+<!--\n+The `test-benchmark` element is designed to facilitate quick, meaningful\n+and consistent Web Component-centric performance testing within the browser.\n+Tests can be written and configured declaratively or imperatively, and after the\n+testing is complete the element provides a meaningful, baseline analysis of the\n+data.\n+\n+## Usage\n+\n+There are a couple of ways to configure tests. All configured tests will\n+automatically pull in the `webcomponents-lite.js` Web Components polyfill\n+script by default.\n+\n+### Declarative configuration\n+\n+Tests can be configured declaratively as markup with `template` tags:\n+\n+```html\n+<test-benchmark runs-per-test=\"100\" random-order>\n+  <template data-name=\"Test one\">\n+    <script>\n+      StartTest();\n+      // Do some work..\n+      EndTest();\n+    </script>\n+  </template>\n+\n+  <template data-name=\"Test two\">\n+    <script>\n+      StartTest();\n+      // Do some work..\n+      EndTest();\n+    </script>\n+  </template>\n+</test-benchmark>\n+```\n+\n+Every `template` tag within the `test-benchmark` element will be transformed\n+into a test that will be considered within the broader benchmark.\n+\n+### Imperative configuration\n+\n+Tests can be configured imperatively by using the `addTest` method. A test's\n+name, HTML content and optional list of tags should be provided. The HTML\n+content provided should reflect the content that would have otherwise been\n+found in a corresponding test temmplate:\n+\n+```js\n+var benchmark = Polymer.dom(document).querySelector('test-benchmark');\n+var html = '<script>\\\n+StartTest();\\\n+// Do some work...\\\n+EndTest();\\\n+<\\/script>';\n+\n+benchmark.addTest('Test one', html);\n+```\n+\n+## Anatomy of a test run\n+\n+In order to run a test and collect data, `test-benchmark` performs the following\n+steps:\n+\n+ 1. Wrap the provided test HTML in a light weight test harness. This harness\n+    brings in the Web Components polyfill and also craetes the global\n+    `StartTest` and `EndTest` functions. test HTML is inserted into the","path":"test-benchmark.html","position":83,"original_position":83,"commit_id":"6c923c2b9aa1807a58837e94d0760e718849420b","original_commit_id":"6c923c2b9aa1807a58837e94d0760e718849420b","user":{"login":"cdata","id":240083,"avatar_url":"https://avatars.githubusercontent.com/u/240083?v=3","gravatar_id":"","url":"https://api.github.com/users/cdata","html_url":"https://github.com/cdata","followers_url":"https://api.github.com/users/cdata/followers","following_url":"https://api.github.com/users/cdata/following{/other_user}","gists_url":"https://api.github.com/users/cdata/gists{/gist_id}","starred_url":"https://api.github.com/users/cdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdata/subscriptions","organizations_url":"https://api.github.com/users/cdata/orgs","repos_url":"https://api.github.com/users/cdata/repos","events_url":"https://api.github.com/users/cdata/events{/privacy}","received_events_url":"https://api.github.com/users/cdata/received_events","type":"User","site_admin":false},"body":"derp. Will fix.","created_at":"2015-11-17T17:12:01Z","updated_at":"2015-11-17T17:12:01Z","html_url":"https://github.com/PolymerElements/test-benchmark/pull/1#discussion_r45088172","pull_request_url":"https://api.github.com/repos/PolymerElements/test-benchmark/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/PolymerElements/test-benchmark/pulls/comments/45088172"},"html":{"href":"https://github.com/PolymerElements/test-benchmark/pull/1#discussion_r45088172"},"pull_request":{"href":"https://api.github.com/repos/PolymerElements/test-benchmark/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/PolymerElements/test-benchmark/pulls/1","id":49175881,"html_url":"https://github.com/PolymerElements/test-benchmark/pull/1","diff_url":"https://github.com/PolymerElements/test-benchmark/pull/1.diff","patch_url":"https://github.com/PolymerElements/test-benchmark/pull/1.patch","issue_url":"https://api.github.com/repos/PolymerElements/test-benchmark/issues/1","number":1,"state":"open","locked":false,"title":"New design","user":{"login":"cdata","id":240083,"avatar_url":"https://avatars.githubusercontent.com/u/240083?v=3","gravatar_id":"","url":"https://api.github.com/users/cdata","html_url":"https://github.com/cdata","followers_url":"https://api.github.com/users/cdata/followers","following_url":"https://api.github.com/users/cdata/following{/other_user}","gists_url":"https://api.github.com/users/cdata/gists{/gist_id}","starred_url":"https://api.github.com/users/cdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdata/subscriptions","organizations_url":"https://api.github.com/users/cdata/orgs","repos_url":"https://api.github.com/users/cdata/repos","events_url":"https://api.github.com/users/cdata/events{/privacy}","received_events_url":"https://api.github.com/users/cdata/received_events","type":"User","site_admin":false},"body":"![test-benchmark](https://cloud.githubusercontent.com/assets/240083/10827522/b822bfd8-7e2c-11e5-9984-5f832f8bc0ca.gif)\r\n\r\n# `<test-benchmark>`\r\n\r\nThe `test-benchmark` element is designed to facilitate quick, meaningful\r\nand consistent Web Component-centric performance testing within the browser.\r\nTests can be written and configured declaratively or imperatively, and after the\r\ntesting is complete the element provides a meaningful, baseline analysis of the\r\ndata.\r\n\r\n## Example usage\r\n\r\n\r\n```html\r\n<test-benchmark runs-per-test=\"100\" random-order>\r\n  <template data-name=\"Test one\">\r\n    <script>\r\n      StartTest();\r\n      // Do some work..\r\n      EndTest();\r\n    </script>\r\n  </template>\r\n  <template data-name=\"Test two\">\r\n    <script>\r\n      StartTest();\r\n      // Do some work..\r\n      EndTest();\r\n    </script>\r\n  </template>\r\n</test-benchmark>\r\n```","created_at":"2015-10-29T17:52:42Z","updated_at":"2015-11-17T17:12:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"23c66b245e0948f4743164cbb7d90fa6277f0b46","assignee":{"login":"notwaldorf","id":1369170,"avatar_url":"https://avatars.githubusercontent.com/u/1369170?v=3","gravatar_id":"","url":"https://api.github.com/users/notwaldorf","html_url":"https://github.com/notwaldorf","followers_url":"https://api.github.com/users/notwaldorf/followers","following_url":"https://api.github.com/users/notwaldorf/following{/other_user}","gists_url":"https://api.github.com/users/notwaldorf/gists{/gist_id}","starred_url":"https://api.github.com/users/notwaldorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notwaldorf/subscriptions","organizations_url":"https://api.github.com/users/notwaldorf/orgs","repos_url":"https://api.github.com/users/notwaldorf/repos","events_url":"https://api.github.com/users/notwaldorf/events{/privacy}","received_events_url":"https://api.github.com/users/notwaldorf/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/PolymerElements/test-benchmark/pulls/1/commits","review_comments_url":"https://api.github.com/repos/PolymerElements/test-benchmark/pulls/1/comments","review_comment_url":"https://api.github.com/repos/PolymerElements/test-benchmark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PolymerElements/test-benchmark/issues/1/comments","statuses_url":"https://api.github.com/repos/PolymerElements/test-benchmark/statuses/6c923c2b9aa1807a58837e94d0760e718849420b","head":{"label":"PolymerElements:new-design","ref":"new-design","sha":"6c923c2b9aa1807a58837e94d0760e718849420b","user":{"login":"PolymerElements","id":11639138,"avatar_url":"https://avatars.githubusercontent.com/u/11639138?v=3","gravatar_id":"","url":"https://api.github.com/users/PolymerElements","html_url":"https://github.com/PolymerElements","followers_url":"https://api.github.com/users/PolymerElements/followers","following_url":"https://api.github.com/users/PolymerElements/following{/other_user}","gists_url":"https://api.github.com/users/PolymerElements/gists{/gist_id}","starred_url":"https://api.github.com/users/PolymerElements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolymerElements/subscriptions","organizations_url":"https://api.github.com/users/PolymerElements/orgs","repos_url":"https://api.github.com/users/PolymerElements/repos","events_url":"https://api.github.com/users/PolymerElements/events{/privacy}","received_events_url":"https://api.github.com/users/PolymerElements/received_events","type":"Organization","site_admin":false},"repo":{"id":45146949,"name":"test-benchmark","full_name":"PolymerElements/test-benchmark","owner":{"login":"PolymerElements","id":11639138,"avatar_url":"https://avatars.githubusercontent.com/u/11639138?v=3","gravatar_id":"","url":"https://api.github.com/users/PolymerElements","html_url":"https://github.com/PolymerElements","followers_url":"https://api.github.com/users/PolymerElements/followers","following_url":"https://api.github.com/users/PolymerElements/following{/other_user}","gists_url":"https://api.github.com/users/PolymerElements/gists{/gist_id}","starred_url":"https://api.github.com/users/PolymerElements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolymerElements/subscriptions","organizations_url":"https://api.github.com/users/PolymerElements/orgs","repos_url":"https://api.github.com/users/PolymerElements/repos","events_url":"https://api.github.com/users/PolymerElements/events{/privacy}","received_events_url":"https://api.github.com/users/PolymerElements/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PolymerElements/test-benchmark","description":"","fork":false,"url":"https://api.github.com/repos/PolymerElements/test-benchmark","forks_url":"https://api.github.com/repos/PolymerElements/test-benchmark/forks","keys_url":"https://api.github.com/repos/PolymerElements/test-benchmark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PolymerElements/test-benchmark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PolymerElements/test-benchmark/teams","hooks_url":"https://api.github.com/repos/PolymerElements/test-benchmark/hooks","issue_events_url":"https://api.github.com/repos/PolymerElements/test-benchmark/issues/events{/number}","events_url":"https://api.github.com/repos/PolymerElements/test-benchmark/events","assignees_url":"https://api.github.com/repos/PolymerElements/test-benchmark/assignees{/user}","branches_url":"https://api.github.com/repos/PolymerElements/test-benchmark/branches{/branch}","tags_url":"https://api.github.com/repos/PolymerElements/test-benchmark/tags","blobs_url":"https://api.github.com/repos/PolymerElements/test-benchmark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PolymerElements/test-benchmark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PolymerElements/test-benchmark/git/refs{/sha}","trees_url":"https://api.github.com/repos/PolymerElements/test-benchmark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PolymerElements/test-benchmark/statuses/{sha}","languages_url":"https://api.github.com/repos/PolymerElements/test-benchmark/languages","stargazers_url":"https://api.github.com/repos/PolymerElements/test-benchmark/stargazers","contributors_url":"https://api.github.com/repos/PolymerElements/test-benchmark/contributors","subscribers_url":"https://api.github.com/repos/PolymerElements/test-benchmark/subscribers","subscription_url":"https://api.github.com/repos/PolymerElements/test-benchmark/subscription","commits_url":"https://api.github.com/repos/PolymerElements/test-benchmark/commits{/sha}","git_commits_url":"https://api.github.com/repos/PolymerElements/test-benchmark/git/commits{/sha}","comments_url":"https://api.github.com/repos/PolymerElements/test-benchmark/comments{/number}","issue_comment_url":"https://api.github.com/repos/PolymerElements/test-benchmark/issues/comments{/number}","contents_url":"https://api.github.com/repos/PolymerElements/test-benchmark/contents/{+path}","compare_url":"https://api.github.com/repos/PolymerElements/test-benchmark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PolymerElements/test-benchmark/merges","archive_url":"https://api.github.com/repos/PolymerElements/test-benchmark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PolymerElements/test-benchmark/downloads","issues_url":"https://api.github.com/repos/PolymerElements/test-benchmark/issues{/number}","pulls_url":"https://api.github.com/repos/PolymerElements/test-benchmark/pulls{/number}","milestones_url":"https://api.github.com/repos/PolymerElements/test-benchmark/milestones{/number}","notifications_url":"https://api.github.com/repos/PolymerElements/test-benchmark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PolymerElements/test-benchmark/labels{/name}","releases_url":"https://api.github.com/repos/PolymerElements/test-benchmark/releases{/id}","created_at":"2015-10-28T23:00:25Z","updated_at":"2015-11-16T09:47:02Z","pushed_at":"2015-11-16T22:56:53Z","git_url":"git://github.com/PolymerElements/test-benchmark.git","ssh_url":"git@github.com:PolymerElements/test-benchmark.git","clone_url":"https://github.com/PolymerElements/test-benchmark.git","svn_url":"https://github.com/PolymerElements/test-benchmark","homepage":null,"size":35,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"PolymerElements:master","ref":"master","sha":"77de157aae705c42491b042bc1f77711d9d99ce0","user":{"login":"PolymerElements","id":11639138,"avatar_url":"https://avatars.githubusercontent.com/u/11639138?v=3","gravatar_id":"","url":"https://api.github.com/users/PolymerElements","html_url":"https://github.com/PolymerElements","followers_url":"https://api.github.com/users/PolymerElements/followers","following_url":"https://api.github.com/users/PolymerElements/following{/other_user}","gists_url":"https://api.github.com/users/PolymerElements/gists{/gist_id}","starred_url":"https://api.github.com/users/PolymerElements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolymerElements/subscriptions","organizations_url":"https://api.github.com/users/PolymerElements/orgs","repos_url":"https://api.github.com/users/PolymerElements/repos","events_url":"https://api.github.com/users/PolymerElements/events{/privacy}","received_events_url":"https://api.github.com/users/PolymerElements/received_events","type":"Organization","site_admin":false},"repo":{"id":45146949,"name":"test-benchmark","full_name":"PolymerElements/test-benchmark","owner":{"login":"PolymerElements","id":11639138,"avatar_url":"https://avatars.githubusercontent.com/u/11639138?v=3","gravatar_id":"","url":"https://api.github.com/users/PolymerElements","html_url":"https://github.com/PolymerElements","followers_url":"https://api.github.com/users/PolymerElements/followers","following_url":"https://api.github.com/users/PolymerElements/following{/other_user}","gists_url":"https://api.github.com/users/PolymerElements/gists{/gist_id}","starred_url":"https://api.github.com/users/PolymerElements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolymerElements/subscriptions","organizations_url":"https://api.github.com/users/PolymerElements/orgs","repos_url":"https://api.github.com/users/PolymerElements/repos","events_url":"https://api.github.com/users/PolymerElements/events{/privacy}","received_events_url":"https://api.github.com/users/PolymerElements/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PolymerElements/test-benchmark","description":"","fork":false,"url":"https://api.github.com/repos/PolymerElements/test-benchmark","forks_url":"https://api.github.com/repos/PolymerElements/test-benchmark/forks","keys_url":"https://api.github.com/repos/PolymerElements/test-benchmark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PolymerElements/test-benchmark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PolymerElements/test-benchmark/teams","hooks_url":"https://api.github.com/repos/PolymerElements/test-benchmark/hooks","issue_events_url":"https://api.github.com/repos/PolymerElements/test-benchmark/issues/events{/number}","events_url":"https://api.github.com/repos/PolymerElements/test-benchmark/events","assignees_url":"https://api.github.com/repos/PolymerElements/test-benchmark/assignees{/user}","branches_url":"https://api.github.com/repos/PolymerElements/test-benchmark/branches{/branch}","tags_url":"https://api.github.com/repos/PolymerElements/test-benchmark/tags","blobs_url":"https://api.github.com/repos/PolymerElements/test-benchmark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PolymerElements/test-benchmark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PolymerElements/test-benchmark/git/refs{/sha}","trees_url":"https://api.github.com/repos/PolymerElements/test-benchmark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PolymerElements/test-benchmark/statuses/{sha}","languages_url":"https://api.github.com/repos/PolymerElements/test-benchmark/languages","stargazers_url":"https://api.github.com/repos/PolymerElements/test-benchmark/stargazers","contributors_url":"https://api.github.com/repos/PolymerElements/test-benchmark/contributors","subscribers_url":"https://api.github.com/repos/PolymerElements/test-benchmark/subscribers","subscription_url":"https://api.github.com/repos/PolymerElements/test-benchmark/subscription","commits_url":"https://api.github.com/repos/PolymerElements/test-benchmark/commits{/sha}","git_commits_url":"https://api.github.com/repos/PolymerElements/test-benchmark/git/commits{/sha}","comments_url":"https://api.github.com/repos/PolymerElements/test-benchmark/comments{/number}","issue_comment_url":"https://api.github.com/repos/PolymerElements/test-benchmark/issues/comments{/number}","contents_url":"https://api.github.com/repos/PolymerElements/test-benchmark/contents/{+path}","compare_url":"https://api.github.com/repos/PolymerElements/test-benchmark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PolymerElements/test-benchmark/merges","archive_url":"https://api.github.com/repos/PolymerElements/test-benchmark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PolymerElements/test-benchmark/downloads","issues_url":"https://api.github.com/repos/PolymerElements/test-benchmark/issues{/number}","pulls_url":"https://api.github.com/repos/PolymerElements/test-benchmark/pulls{/number}","milestones_url":"https://api.github.com/repos/PolymerElements/test-benchmark/milestones{/number}","notifications_url":"https://api.github.com/repos/PolymerElements/test-benchmark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PolymerElements/test-benchmark/labels{/name}","releases_url":"https://api.github.com/repos/PolymerElements/test-benchmark/releases{/id}","created_at":"2015-10-28T23:00:25Z","updated_at":"2015-11-16T09:47:02Z","pushed_at":"2015-11-16T22:56:53Z","git_url":"git://github.com/PolymerElements/test-benchmark.git","ssh_url":"git@github.com:PolymerElements/test-benchmark.git","clone_url":"https://github.com/PolymerElements/test-benchmark.git","svn_url":"https://github.com/PolymerElements/test-benchmark","homepage":null,"size":35,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PolymerElements/test-benchmark/pulls/1"},"html":{"href":"https://github.com/PolymerElements/test-benchmark/pull/1"},"issue":{"href":"https://api.github.com/repos/PolymerElements/test-benchmark/issues/1"},"comments":{"href":"https://api.github.com/repos/PolymerElements/test-benchmark/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/PolymerElements/test-benchmark/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/PolymerElements/test-benchmark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PolymerElements/test-benchmark/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/PolymerElements/test-benchmark/statuses/6c923c2b9aa1807a58837e94d0760e718849420b"}}}}