mozilla-history/js/benchmarks/createObj.js

12 строки
149 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.");