a

Benchmark created on


Setup

const node = new Text('')
const el = Document.createElement('input')

Test runner

Ready to run.

Testing in
TestOps/sec
1
let a =  (node instanceof HTMLInputElement && node.type === 'text') || node instanceof HTMLTextAreaElement
ready
2
let a = (node.localName === 'input' && node.type === 'text') || (node.localName === 'textarea')
ready

Revisions

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