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

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

Issue 2821493002: bindings: Add performance test for JS->WebIDL sequence conversions. (Closed)
Patch Set: Push empty strings into the array 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // We are interested in the conversion of JS arrays to C++ sequences, not in
9 // the JS string to C++ string conversion, so just push empty strings into
10 // the array.
11 dataArray.push('');
12 }
13
14 PerfTestRunner.measureRunsPerSecond({
15 description: "This benchmark measures the overhead of converting JavaScript ob jects into WebIDL sequences (fast path for arrays)",
16 run: function() {
17 new Blob(dataArray);
18 }});
19 </script>
20 </body>
21 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698