Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / PerformanceTests / Bindings / typed-array-set-from-typed.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 var target = new Float64Array(length);
11
12 PerfTestRunner.measureRunsPerSecond({
13     description: "Measures performance of setting a Float64Array to a Uint8Array using Float64Array.prototype.set.",
14     run: function() {
15         target.set(source);
16     }
17 });
18 </script>
19 </body>