<!DOCTYPE html>
<body>
<script src="../resources/runner.js"></script>
<script>
var anchor = document.createElement("a");
PerfTestRunner.measureRunsPerSecond({
description: "Measures performance of URL parsing by setting the href attribute on an <a> tag to a simple URL.",
run: function() {
for (var x = 0; x < 200000; x++) {
anchor.href = "http://www.apple.com/"
}
}
});
</script>
</body>