Source code

Revision control

Other Tools

<!doctype html>
<script src="util.js"></script>
<script>
onload = function() {
var count = 20000000;
var el = document.createElement("span");
// The shortest string we can't fit in an autostring buffer (64 chars).
el.id = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
var getter = Object.getOwnPropertyDescriptor(Element.prototype, "id").get;
perf_start();
for (var i = 0; i < count; ++i) {
getter.call(el);
}
perf_finish();
};
</script>