Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Delete vs in
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/135.0.0.0 Safari/537.36
Browser:
Chrome 135
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Delete
42884980.0 Ops/sec
In
29495942.0 Ops/sec
Script Preparation code:
var obj = {a:1, b:2, c:3, d:4};
Tests:
Delete
delete obj['a']; delete obj['b']; delete obj['c']; delete obj['d'];
In
'a' in obj; 'b' in obj; 'c' in obj; 'd' in obj;