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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0
Browser:
Chrome 135
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
_.unset
71.0M/s
delete
33.1M/s
_.omit
3.1M/s
View exact numbers
Test name
Executions per second
✓
_.unset
71,046,168 Ops/sec
delete
33,069,134 Ops/sec
_.omit
3,116,898 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