Commit 91d36d3b authored by Katie Dillon's avatar Katie Dillon Committed by Commit Bot

Adding more payload for worker perf tests.

Change-Id: I4fa7924db8e6ba4e7642957399e0e47289027e97
Reviewed-on: https://chromium-review.googlesource.com/c/1318390Reviewed-by: default avatarShubhie Panicker <panicker@chromium.org>
Reviewed-by: default avatarJeremy Roman <jbroman@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Katie Dillon <kdillon@chromium.org>
Cr-Commit-Position: refs/heads/master@{#606108}
parent 630b62be
This source diff could not be displayed because it is too large. You can view the blob instead.
{"type":3,"mutations":[{"target":{"_index_":18,"transferred":1},"addedNodes":null,"removedNodes":null,"previousSibling":null,"nextSibling":null,"attributeName":"class","attributeNamespace":null,"oldValue":"candidateTable_victor","type":0,"propertyName":null,"value":"candidateTable_victor candidateTable_displayVictor","addedEvents":null,"removedEvents":null,"measure":null},{"target":{"_index_":35,"transferred":1},"addedNodes":null,"removedNodes":null,"previousSibling":null,"nextSibling":null,"attributeName":"class","attributeNamespace":null,"oldValue":"candidateTable_victor candidateTable_displayVictor","type":0,"propertyName":null,"value":"candidateTable_victor","addedEvents":null,"removedEvents":null,"measure":null},{"target":{"_index_":74,"transferred":1},"addedNodes":null,"removedNodes":null,"previousSibling":null,"nextSibling":null,"attributeName":"fill","attributeNamespace":null,"oldValue":"black","type":0,"propertyName":null,"value":"red","addedEvents":null,"removedEvents":null,"measure":null},{"target":{"_index_":76,"transferred":1},"addedNodes":null,"removedNodes":null,"previousSibling":null,"nextSibling":null,"attributeName":null,"attributeNamespace":null,"oldValue":"Region winner Steven Armstrong","type":1,"propertyName":null,"value":"Region winner ","addedEvents":null,"removedEvents":null,"measure":null},{"target":{"_index_":75,"transferred":1},"addedNodes":null,"removedNodes":null,"previousSibling":null,"nextSibling":null,"attributeName":"class","attributeNamespace":null,"oldValue":"candidateMap_tooltip candidateMap_showTooltip","type":0,"propertyName":null,"value":"candidateMap_tooltip","addedEvents":null,"removedEvents":null,"measure":null}]}
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<script> <script>
WorkerStructuredClonePerfTestRunner.measureTimeAsync({ WorkerStructuredClonePerfTestRunner.measureTimeAsync({
description: "Measures performance of sending JSON-like data from a worker back to the main thread using deserialization.", description: "Measures performance of sending JSON-like data from a worker back to the main thread using deserialization.",
data: JSON.parse(PerfTestRunner.loadFile("resources/blink-dev.json")), data: JSON.parse(PerfTestRunner.loadFile("resources/data/blink-dev.json")),
measure: "fromWorker", measure: "fromWorker",
}); });
</script> </script>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<script> <script>
WorkerStructuredClonePerfTestRunner.measureTimeAsync({ WorkerStructuredClonePerfTestRunner.measureTimeAsync({
description: "Measures performance of worker round-trip with structured clone, for JSON-like data.", description: "Measures performance of worker round-trip with structured clone, for JSON-like data.",
data: JSON.parse(PerfTestRunner.loadFile("resources/blink-dev.json")), data: JSON.parse(PerfTestRunner.loadFile("resources/data/blink-dev.json")),
measure: "roundtrip", measure: "roundtrip",
}); });
</script> </script>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<script> <script>
WorkerStructuredClonePerfTestRunner.measureTimeAsync({ WorkerStructuredClonePerfTestRunner.measureTimeAsync({
description: "Measures performance of sending JSON-like data to a worker with deserialization.", description: "Measures performance of sending JSON-like data to a worker with deserialization.",
data: JSON.parse(PerfTestRunner.loadFile("resources/blink-dev.json")), data: JSON.parse(PerfTestRunner.loadFile("resources/data/blink-dev.json")),
measure: "toWorker", measure: "toWorker",
}); });
</script> </script>
......
<!DOCTYPE html>
<body>
<script src="../resources/runner.js"></script>
<script src="resources/worker-structured-clone-perf-test.js"></script>
<script>
WorkerStructuredClonePerfTestRunner.measureTimeAsync({
description: "Measures performance of sending JSON data representing a Worker DOM DBMon from a worker back to the main thread using deserialization.",
data: JSON.parse(PerfTestRunner.loadFile("resources/data/WorkerDOM-DBMon.json")),
measure: "fromWorker",
});
</script>
</body>
<!DOCTYPE html>
<body>
<script src="../resources/runner.js"></script>
<script src="resources/worker-structured-clone-perf-test.js"></script>
<script>
WorkerStructuredClonePerfTestRunner.measureTimeAsync({
description: "Measures performance of sending JSON data representing a Worker DOM Map from a worker back to the main thread using deserialization.",
data: JSON.parse(PerfTestRunner.loadFile("resources/data/WorkerDOM-Map.json")),
measure: "fromWorker",
});
</script>
</body>
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<script> <script>
WorkerTextEncodedTransferablePerfTestRunner.measureTimeAsync({ WorkerTextEncodedTransferablePerfTestRunner.measureTimeAsync({
description: "Measures performance of sending text encoded JSON data back to the main thread from a worker", description: "Measures performance of sending text encoded JSON data back to the main thread from a worker",
data: PerfTestRunner.loadFile("resources/blink-dev.json"), data: PerfTestRunner.loadFile("resources/data/blink-dev.json"),
measure: "fromWorker", measure: "fromWorker",
}); });
</script> </script>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<script> <script>
WorkerTextEncodedTransferablePerfTestRunner.measureTimeAsync({ WorkerTextEncodedTransferablePerfTestRunner.measureTimeAsync({
description: "Measures performance of worker round-trip with text-encoded data sent as a transferable.", description: "Measures performance of worker round-trip with text-encoded data sent as a transferable.",
data: PerfTestRunner.loadFile("resources/blink-dev.json"), data: PerfTestRunner.loadFile("resources/data/blink-dev.json"),
measure: "roundtrip", measure: "roundtrip",
}); });
</script> </script>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<script> <script>
WorkerTextEncodedTransferablePerfTestRunner.measureTimeAsync({ WorkerTextEncodedTransferablePerfTestRunner.measureTimeAsync({
description: "Measures performance of encoding JSON data to send to worker thread as a transferable", description: "Measures performance of encoding JSON data to send to worker thread as a transferable",
data: PerfTestRunner.loadFile("resources/blink-dev.json"), data: PerfTestRunner.loadFile("resources/data/blink-dev.json"),
measure: "toWorker", measure: "toWorker",
}); });
</script> </script>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment