chromium/third_party/blink/perf_tests/bindings/worker-transferable-roundtrip.html

<!DOCTYPE html>
<body>
<script src="../resources/runner.js"></script>
<script src="resources/worker-transferable-perf-test.js"></script>
<script>
var data = new Uint32Array(10485760);
for (var i = 0; i < data.length; i++) { data[i] = i; }
WorkerTransferablePerfTestRunner.measureTimeAsync({
  description: "Measures performance of worker round-trip using transferable to send an array buffer.",
  data: data.buffer,
  measure: "roundtrip",
});
</script>
</body>