Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Lodash omit vs Native object destruction
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0
Browser:
Firefox 134
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Native object desctruction
37.8M/s
Lodash omit
1.6M/s
View exact numbers
Test name
Executions per second
✓
Native object desctruction
37,758,640 Ops/sec
Lodash omit
1,614,863 Ops/sec
HTML Preparation code:
<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js"></script>
Script Preparation code:
var object = { 'a': 1, 'b': '2', 'c': 3 };
Tests:
Native object desctruction
var { a, c, ...result2 } = object; return result2
Lodash omit
return _.omit(object, ['a', 'c']);