Changeset 200053 in webkit
- Timestamp:
- Apr 25, 2016 3:40:24 PM (8 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r200045 r200053 1 2016-04-25 Simon Fraser <simon.fraser@apple.com> 2 3 Fix issues with content-animation performance tests 4 https://bugs.webkit.org/show_bug.cgi?id=157001 5 6 Reviewed by Sam Weinig. 7 8 Add patch content for svg-animation.html, and fix the paths in the patch so 9 it applies correctly. 10 11 Add the patch file to the .plan file. 12 13 * Scripts/webkitpy/benchmark_runner/data/patches/ContentAnimation.patch: 14 * Scripts/webkitpy/benchmark_runner/data/plans/content-animation.plan: 15 1 16 2016-04-25 Brady Eidson <beidson@apple.com> 2 17 -
trunk/Tools/Scripts/webkitpy/benchmark_runner/data/patches/ContentAnimation.patch
r199805 r200053 1 diff --git a/ PerformanceTests/Animation/css-animation.html b/PerformanceTests/Animation/css-animation.html1 diff --git a/css-animation.html b/css-animation.html 2 2 index adae19cb018ed1ca93fd6b4cda80002348482fc3..8f1e29933faa13586dbf97b7874024854fbf2147 100644 3 --- a/ PerformanceTests/Animation/css-animation.html4 +++ b/ PerformanceTests/Animation/css-animation.html3 --- a/css-animation.html 4 +++ b/css-animation.html 5 5 @@ -167,9 +167,54 @@ 6 6 function setupAnimation() … … 58 58 </head> 59 59 <body> 60 diff --git a/ PerformanceTests/Animation/raf-animation.html b/PerformanceTests/Animation/raf-animation.html61 index cb11bc1e7412050c132564e1f2dea9f8729871a6..dbf18e72de9880c28d9fbf9fa156b4949bb6a6cf 10064462 --- a/ PerformanceTests/Animation/raf-animation.html63 +++ b/ PerformanceTests/Animation/raf-animation.html60 diff --git a/raf-animation.html b/raf-animation.html 61 index 09e72f222fcafdfa054a2d5a37b1dcc9eca096ca..dbf18e72de9880c28d9fbf9fa156b4949bb6a6cf 100644 62 --- a/raf-animation.html 63 +++ b/raf-animation.html 64 64 @@ -195,9 +195,54 @@ 65 65 { … … 76 76 + if (location.hash === '#submit') 77 77 + submitResults(); 78 79 78 + } 79 + 80 80 + function submitResults() 81 81 + { … … 110 110 + } 111 111 + xhr.send(resultsString); 112 +}113 +112 } 113 114 114 window.addEventListener('load', setupAnimation, false); 115 115 + window.addEventListener("hashchange", hashChanged, false); … … 117 117 </head> 118 118 <body> 119 diff --git a/svg-animation.html b/svg-animation.html 120 index c286d50cc7e0e6d64e1b6fbd2beb3642fe90e958..fb21d522ca200021d452595cbfed3db252c80929 100644 121 --- a/svg-animation.html 122 +++ b/svg-animation.html 123 @@ -150,9 +150,54 @@ 124 function setupAnimation() 125 { 126 makeParticles(); 127 + 128 + window.setTimeout(function() { 129 + location.hash = 'done'; 130 + }, 10000) 131 + } 132 + 133 + function hashChanged() 134 + { 135 + if (location.hash === '#submit') 136 + submitResults(); 137 + } 138 + 139 + function submitResults() 140 + { 141 + var results = { 142 + 'content-animation' : { 143 + 'metrics' : { 144 + 'FrameRate' : ['Arithmetic'] 145 + }, 146 + 'tests' : { 147 + 'svg-animation' : { 148 + 'metrics' : { 149 + 'FrameRate' : { 150 + 'current' : ['<native_framerate>'] // <native_framerate> is replaced by a framerate computed in native code 151 + } 152 + } 153 + } 154 + } 155 + } 156 + }; 157 + var resultsString = JSON.stringify(results); 158 + var xhr = new XMLHttpRequest(); 159 + xhr.open("POST", "/report"); 160 + xhr.setRequestHeader("Content-type", "application/json"); 161 + xhr.setRequestHeader("Content-length", resultsString.length); 162 + xhr.setRequestHeader("Connection", "close"); 163 + xhr.onreadystatechange = function() { 164 + if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { 165 + closeRequest = new XMLHttpRequest(); 166 + closeRequest.open("GET", "/shutdown"); 167 + closeRequest.send() 168 + } 169 + } 170 + xhr.send(resultsString); 171 } 172 173 window.addEventListener('load', setupAnimation, false); 174 + window.addEventListener("hashchange", hashChanged, false); 175 </script> 176 </head> 177 <body> -
trunk/Tools/Scripts/webkitpy/benchmark_runner/data/plans/content-animation.plan
r199808 r200053 2 2 "timeout": 120, 3 3 "count": 5, 4 "svn_source": "https://svn.webkit.org/repository/webkit/trunk/PerformanceTests/Animation/@r199806", 4 "svn_source": "https://svn.webkit.org/repository/webkit/trunk/PerformanceTests/Animation/@r200049", 5 "benchmark_patch": "data/patches/ContentAnimation.patch", 5 6 "test_files": [ 6 "css-animation.html", 7 "raf-animation.html" 7 "css-animation.html", 8 "svg-animation.html", 9 "raf-animation.html" 8 10 ], 9 11 "output_file": "css-animation.result",
Note: See TracChangeset
for help on using the changeset viewer.