Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Chrome 123
Windows
Desktop
2 years ago
using the itemIdByUuid "projection" we created
2.1M/s
finding item using find without Object.values (accessing entities using the ids array)
2K/s
finding item using find with Object.values
768/s
View exact numbers
Test name Executions per second
using the itemIdByUuid "projection" we created 2,131,274 Ops/sec
finding item using find without Object.values (accessing entities using the ids array) 1,698 Ops/sec
finding item using find with Object.values 768 Ops/sec
Script Preparation code:
Tests: