blob: f447c71fd36110f9ccb54cb19ae8d950df57d2d1 [file] [log] [blame]
<!DOCTYPE html>
<body>
<script src="../resources/runner.js"></script>
<script>
var length = 1000000;
var obj = [];
for (var i = 0; i < length; i++)
obj.push(undefined);
var worker = new Worker('resources/worker.js');
worker.onmessage = function(event) {
console.log("received");
};
PerfTestRunner.measureTime({
description: "Measures performance of serializing a long array containing 'undefined's.",
run: function() {
worker.postMessage(obj);
}
});
</script>
</body>