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

Side by Side Diff: third_party/WebKit/PerformanceTests/Bindings/serialize-map.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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <body>
3 <script src="../resources/runner.js"></script>
4 <script>
5
6 var length = 200000;
7 var obj = {}; // obj does not have a 'length' property.
8 for (var i = 0; i < length; i++)
9 obj['key' + i] = i;
10 var worker = new Worker('resources/worker.js');
11 worker.onmessage = function(event) {
12 console.log("received");
13 };
14
15 PerfTestRunner.measureTime({
16 description: "Measures performance of serializing a large map object.",
17 run: function() {
18 worker.postMessage(obj);
19 }
20 });
21 </script>
22 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698