Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0
Firefox 125
Ubuntu
Desktop
2 years ago
Benchmark.js
Cached property names
24.2M/s
for in
16.0M/s
Object.keys
8.9M/s
getOwnPropertyNames
7.3M/s
View exact numbers
Test name Executions per second
Cached property names 24,212,460 Ops/sec
for in 16,048,782 Ops/sec
Object.keys 8,852,489 Ops/sec
getOwnPropertyNames 7,296,244 Ops/sec
Script Preparation code:
Tests: