| Index: third_party/WebKit/PerformanceTests/Bindings/serialize-map.html
|
| diff --git a/third_party/WebKit/PerformanceTests/Bindings/serialize-map.html b/third_party/WebKit/PerformanceTests/Bindings/serialize-map.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ec498c53889c1c53b8200897e0ca3f382b243c7f
|
| --- /dev/null
|
| +++ b/third_party/WebKit/PerformanceTests/Bindings/serialize-map.html
|
| @@ -0,0 +1,22 @@
|
| +<!DOCTYPE html>
|
| +<body>
|
| +<script src="../resources/runner.js"></script>
|
| +<script>
|
| +
|
| +var length = 200000;
|
| +var obj = {}; // obj does not have a 'length' property.
|
| +for (var i = 0; i < length; i++)
|
| + obj['key' + i] = i;
|
| +var worker = new Worker('resources/worker.js');
|
| +worker.onmessage = function(event) {
|
| + console.log("received");
|
| +};
|
| +
|
| +PerfTestRunner.measureTime({
|
| + description: "Measures performance of serializing a large map object.",
|
| + run: function() {
|
| + worker.postMessage(obj);
|
| + }
|
| +});
|
| +</script>
|
| +</body>
|
|
|