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; rv:148.0) Gecko/20100101 Firefox/148.0
Browser:
Firefox 148
Operating system:
Windows
Device Platform:
Desktop
Date tested:
8 months ago
Benchmark engine:
Benchmark.js
delete
60.5M/s
_.unset
43.9M/s
_.omit
4.4M/s
View exact numbers
Test name
Executions per second
✓
delete
60,518,320 Ops/sec
_.unset
43,913,652 Ops/sec
_.omit
4,416,868 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