test

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
test1
let test = {
	SomeName:{
		"test1_1":"aksmdklmaklsdklasd",
		"test1_2":"aksmdklmaklsdklasd",
	},
	SomeSecondName:{
		"test1_1":"aksmdklmaklsdklasd",
		"test1_2":"aksmdklmaklsdklasd",
	}
};

console.log(test[SomeSecondName][test1_2])



ready
test2
let test = {
	SomeName:{
		"test1_1":"aksmdklmaklsdklasd",
		"test1_2":"aksmdklmaklsdklasd",
	},
	SomeSecondName:{
		"test1_1":"aksmdklmaklsdklasd",
		"test1_2":"aksmdklmaklsdklasd",
	}
};
for (const [key, value] of Object.entries(test)) {
        if (SomeSecondName == key) {
            for (const [field, object] of Object.entries(value)) {
                if (field == test1_2) {
                    console.log("aksmdklmaklsdklasd")
                }
            }
        }
    }
    
ready

Revisions

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