gecko-dev/js/benchmarks/createObj.js
2003-02-24 21:37:37 +00:00

12 lines
156 B
JavaScript

function f() {
var o;
for (var i=0; i < 1000; i++) {
o = new Object();
}
}
var d = new Date();
f();
print("took", (new Date()) - d, "ms.");