test

Benchmark created on


Preparation HTML

<div id="woof" data-test="1" />

Setup

const obj = {
	layer1: {
		layer2: {
			test: "1"
		}
	}
}

const obj2 = document.getElementById("woof");

Test runner

Ready to run.

Testing in
TestOps/sec
dataattr
const {test} = obj2.dataset
ready
obj
const {test} = obj.layer1.layer2
ready

Revisions

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