| Index: third_party/WebKit/PerformanceTests/Bindings/post-message.html
|
| diff --git a/third_party/WebKit/PerformanceTests/Bindings/serialize-long-string.html b/third_party/WebKit/PerformanceTests/Bindings/post-message.html
|
| similarity index 58%
|
| copy from third_party/WebKit/PerformanceTests/Bindings/serialize-long-string.html
|
| copy to third_party/WebKit/PerformanceTests/Bindings/post-message.html
|
| index 6018a386f172dde3195c900d17390f975eb7a13e..862aa8249a2417c7cb887b212378593d5bac1c57 100644
|
| --- a/third_party/WebKit/PerformanceTests/Bindings/serialize-long-string.html
|
| +++ b/third_party/WebKit/PerformanceTests/Bindings/post-message.html
|
| @@ -3,19 +3,17 @@
|
| <script src="../resources/runner.js"></script>
|
| <script>
|
|
|
| -var log2Length = 23;
|
| -var str = "a";
|
| -for (var i = 0; i < log2Length; i++)
|
| - str = str + str;
|
| +var times = 100000;
|
| var worker = new Worker('resources/worker.js');
|
| worker.onmessage = function(event) {
|
| console.log("received");
|
| };
|
|
|
| PerfTestRunner.measureTime({
|
| - description: "Measures performance of serializing a long string.",
|
| + description: "Measures performance of postMessage().",
|
| run: function() {
|
| - worker.postMessage(str);
|
| + for (var i = 0; i < times; i++)
|
| + worker.postMessage('foo');
|
| }
|
| });
|
| </script>
|
|
|