location.href vs location.assign (v13)

Revision 13 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
window.href
window.location.href = 'javascript:example=1';
ready
window.location
window.location = 'javascript:example=1';
ready
window.assign
window.location.assign('javascript:example=1');
ready
document.href
document.location.href = 'javascript:example=1';
ready
document.location
document.location = 'javascript:example=1'
ready
document.assign
document.location.assign('javascript:example=1');
ready
location.href
location.href = 'javascript:example=1'
ready
window.location.href
window.location.href = 'javascript:example=1'
ready
document.location.href
document.location.href = 'javascript:example=1'
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.