Use runPerSecond in PerformanceTests/Bindings/typed-array* and event-target-wrapper
[WebKit-https.git] / PerformanceTests / Bindings / typed-array-construct-from-same-type.html
1 <!DOCTYPE html>
2 <body>
3 <script src="../resources/runner.js"></script>
4 <script>
5
6 var length = 1000000;
7 var source = new Uint8Array(length);
8 for (var i = 0; i < length; i++)
9     source[i] = i;
10
11 PerfTestRunner.runPerSecond({run: function() {
12     var target = new Uint8Array(source);
13 }});
14 </script>
15 </body>