aaa

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
array.find
const arr = [
	{ 
		questionUid: '3c38001c-a08f-46db-8b14-fa93873557c7',
		data: 'foo'
	},
	{
		questionUid: '75255701-4be1-45d7-8e05-561f6a8c929b',
		data: 'foo'
	},
	{
		questionUid: 'e027f064-6e0e-4009-8c34-d47512adb4e0',
		data: 'foo'
	},
	{
		questionUid: '1aedf63a-e28c-4059-8ef3-01574d3f9e5e',
		data: 'foo'
	},
	{
		questionUid: 'f614f14c-b7ec-4ffe-9ff3-253069b4957f',
		data: 'foo'
	}
];

const x = arr.find(({ questionUid }) => 'e027f064-6e0e-4009-8c34-d47512adb4e0');

console.log(x)
ready
obj
const o = {
	'3c38001c-a08f-46db-8b14-fa93873557c7': {
		data: 'foo'
	},
	'75255701-4be1-45d7-8e05-561f6a8c929b': {
		data: 'foo'
	},
	'e027f064-6e0e-4009-8c34-d47512adb4e0': {
		data: 'foo'
	},
	'1aedf63a-e28c-4059-8ef3-01574d3f9e5e': {
		data: 'foo'
	},
	'f614f14c-b7ec-4ffe-9ff3-253069b4957f': {
		data: 'foo'
	}
}

const x = o['e027f064-6e0e-4009-8c34-d47512adb4e0']

console.log(x)
ready

Revisions

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