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

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: 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 dataArray.push('abcdefg foo bar baz');
Yuki 2017/04/14 07:50:44 Will this v8::String be converted to blink::String
Raphael Kubo da Costa (rakuco) 2017/04/14 08:09:10 Since the string conversion is still going to happ
Yuki 2017/04/14 08:27:58 An empty string makes sense to me.
9
10 PerfTestRunner.measureRunsPerSecond({
11 description: "This benchmark measures the overhead of converting JavaScript ob jects into WebIDL sequences (fast path for arrays)",
12 run: function() {
13 new Blob(dataArray);
14 }});
15 </script>
16 </body>
17 </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