Revision control

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