Lodash vs native (v2)

Revision 2 of this benchmark created on


Setup

https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js
var data = { abf:'asd',message:'koko' }

Test runner

Ready to run.

Testing in
TestOps/sec
Lodash
return {
  meta: _.omit(data, 'message')
}
ready
Native
const omit = (obj, props) => {
  data = { ...data }
  props.forEach(prop => delete obj[prop])
  return obj
}

omit(data, ['message'])

ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.