Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
lodash unset vs lodash omit vs native delete
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/146.0.0.0 Safari/537.36 Edg/146.0.0.0
Browser:
Chrome 146
Operating system:
Windows
Device Platform:
Desktop
Date tested:
6 months ago
Benchmark engine:
Benchmark.js
_.unset
63.4M/s
delete
29.8M/s
_.omit
2.3M/s
View exact numbers
Test name
Executions per second
✓
_.unset
63,393,032 Ops/sec
delete
29,774,606 Ops/sec
_.omit
2,257,311 Ops/sec
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.4/lodash.min.js"></script>
Script Preparation code:
var o = {a:1,b:2,c:3,d:4}
Tests:
_.omit
o = _.omit(o, ['a', 'b'])
_.unset
_.unset(o, ['a', 'b'])
delete
delete o.a delete o.b