Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Lodash omit vs Native Delete for multiple key removal
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/132.0.0.0 YaBrowser/25.2.0.0 Safari/537.36
Browser:
Yandex Browser 25
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Native multiple delete
2984633.8 Ops/sec
Lodash multiple omit
1083277.2 Ops/sec
HTML Preparation code:
<script src="lodash.js"></script>
Script Preparation code:
data = { abf: 'asd', message: 'koko', abf2: 'asd2', abf3: 'asd3', abf4: 'asd4', abf5: 'asd5', abf6: 'asd6', abf7: 'asd7', abf8: 'asd8', abf9: 'asd9' }
Tests:
Native multiple delete
const meta = Object.assign({}, data); ['abf1', 'abf2', 'abf5', 'abf7', 'abf9'].forEach(e => delete meta[e]); return { message: data, meta }
Lodash multiple omit
return { message: data, meta: _.omit(data, ['abf1', 'abf2', 'abf5', 'abf7', 'abf9']) }