blob: 756424d0beb1d497759e6a66e4510a4b1eb6baf2 [file] [log] [blame]
<!DOCTYPE html>
<body>
<script src="../resources/runner.js"></script>
<script src="resources/structured-clone-perf-test.js"></script>
<script>
// This simulates a long string being sent, such as JSON data as text, or a
// large data URI.
const log2Length = 23;
let str = 'a';
for (let i = 0; i < log2Length; i++) str += str;
StructuredClonePerfTestRunner.measureTimeAsync({
description: "Measures performance of deserializing a long string.",
data: str,
measure: "deserialize",
});
</script>
</body>