Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
object property initialize vs add dynamically
v8 engine optimization check
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
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
Browser:
Chrome 119
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
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:
add properties dynamically
const user = {}; user.name = 'John'; user.age = 30;
initialize with object literal
const user = { name: 'John', age: 30 };