Chromium Code Reviews| OLD | NEW |
|---|---|
| (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> | |
| OLD | NEW |