gecko-dev/js/benchmarks/createObj.js

12 lines
156 B
JavaScript
Raw Normal View History

1999-06-04 18:44:17 +00:00
function f() {
var o;
for (var i=0; i < 1000; i++) {
o = new Object();
}
1999-06-04 18:44:17 +00:00
}
var d = new Date();
f();
print("took", (new Date()) - d, "ms.");