Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
check property existence
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36
Browser:
Chrome 141
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 months ago
Benchmark engine:
Benchmark.js
access or missing
99.3M/s
check before access
97.5M/s
View exact numbers
Test name
Executions per second
✓
access or missing
99,344,800 Ops/sec
check before access
97,524,464 Ops/sec
Script Preparation code:
const obj = { string: 'string', number: 7, boolean: true, };
Tests:
access or missing
obj.string ?? false; obj.number ?? false; obj.boolean ?? false; obj.never ?? false;
check before access
'string' in obj && obj.string; 'number' in obj && obj.number; 'boolean' in obj && obj.boolean; 'never' in obj && obj.never;