Fetching from favorites object store (v2)

Revision 2 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Object
const myFavorites = {
	'1234': '5678'
}

// scenario where we are rendering 1000 marketcards/participants (or something) so I need to check if there is a favorite associated with this participant
for (let i = 0; i < 1000; i++) {
	const key = myFavorites[i]
}
ready
Map
const myFavorites = new Map()
myFavorites.set('1234', '5678')

// scenario where we are rendering 1000 marketcards/participants (or something) so I need to check if there is a favorite associated with this participant
for (let i = 0; i < 1000; i++) {
	const key = myFavorites.get(i)
}
ready

Revisions

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