Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119
Mac OS X 10.15.7
Desktop
2 years ago
Benchmark.js
initialize with object literal
1042.1M/s
add properties dynamically
620.9M/s
View exact numbers
Test name Executions per second
initialize with object literal 1,042,052,096 Ops/sec
add properties dynamically 620,864,960 Ops/sec
Tests: