blob: 60b2042f28a006146dd05979a3a61c73e57042f9 [file] [log] [blame]
<!DOCTYPE html>
<body>
<script src="../resources/runner.js"></script>
<script>
var length = 1000000;
var source = new Uint8Array(length);
for (var i = 0; i < length; i++)
source[i] = i;
PerfTestRunner.measureRunsPerSecond({
description: "Measures performance of creating a Uint8Array from an existing Uint8Array.",
run: function() {
var target = new Uint8Array(source);
}
});
</script>
</body>