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

Side by Side Diff: third_party/WebKit/PerformanceTests/Bindings/sequence-conversion-custom-iterator.html

Issue 2810843002: bindings: Make the sequence conversion code more complaint with WebIDL. (Closed)
Patch Set: Adjust even more tests Created 3 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 <html>
3 <body>
4 <script src="../resources/runner.js"></script>
5 <script>
6 let dataArray = [];
7 for (let i = 0; i < 100000; i++)
8 dataArray.push('abcdefg foo bar baz');
9
10 let iterableData = {
11 [Symbol.iterator]() {
12 var count = 0;
13 return {
14 next() {
15 if (count >= dataArray.length)
16 return {done: true};
17 return {done: false, value: dataArray[count++]};
18 }
19 }
20 }
21 };
22
23 PerfTestRunner.measureRunsPerSecond({
24 description: "This benchmark measures the overhead of converting JavaScript ob jects into WebIDL sequences (slow path using the @@iteratorprotocol)",
25 run: function() {
26 new Blob(iterableData);
27 }});
28 </script>
29 </body>
30 </html>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/webaudio/dom-exceptions-expected.txt ('k') | third_party/WebKit/Source/bindings/bindings.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698