compare element and url

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
URL
const x = new URL('https://example.com')
x.host

ready
element
const location = document.createElement('a')
location.href = 'https://example.com'
location.host
ready

Revisions

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