Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Unified Diff: third_party/WebKit/PerformanceTests/Bindings/serialize-long-string.html

Issue 1866083003: [Binding][Performance] Add performance tests for serialization in BlinkBinding (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/PerformanceTests/Bindings/serialize-long-string.html
diff --git a/third_party/WebKit/PerformanceTests/Bindings/serialize-long-string.html b/third_party/WebKit/PerformanceTests/Bindings/serialize-long-string.html
new file mode 100644
index 0000000000000000000000000000000000000000..6018a386f172dde3195c900d17390f975eb7a13e
--- /dev/null
+++ b/third_party/WebKit/PerformanceTests/Bindings/serialize-long-string.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<body>
+<script src="../resources/runner.js"></script>
+<script>
+
+var log2Length = 23;
+var str = "a";
+for (var i = 0; i < log2Length; i++)
+ str = str + str;
+var worker = new Worker('resources/worker.js');
+worker.onmessage = function(event) {
+ console.log("received");
+};
+
+PerfTestRunner.measureTime({
+ description: "Measures performance of serializing a long string.",
+ run: function() {
+ worker.postMessage(str);
+ }
+});
+</script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698