Revision control

1
<script src="../resources/magnitude-perf.js"></script>
2
<script>
3
function setupFunction(magnitude)
4
{
5
array = [];
6
for (var i = 0; i < magnitude; i++) {
7
array[i] = i;
8
}
9
}
10
11
function test(magnitude)
12
{
13
array.lastIndexOf(1);
14
}
15
16
Magnitude.description("Tests that Array reverse is linear.");
17
Magnitude.run(setupFunction, test, Magnitude.LINEAR);
18
</script>