chromium/third_party/blink/perf_tests/bindings/serialize-array.html

<!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>