Benchmarks Object.assign
, lodash's _.assign
, and Underscore's _.assign
npm install
npm start
lodash#assign 1 x 2,766,210 ops/sec ±1.13% (95 runs sampled)
underscore#assign 1 x 4,397,290 ops/sec ±0.73% (98 runs sampled)
Object#assign 1 x 956,923 ops/sec ±1.02% (92 runs sampled)
lodash#assign 2 x 908,126 ops/sec ±1.29% (93 runs sampled)
underscore#assign 2 x 1,341,048 ops/sec ±1.09% (93 runs sampled)
Object#assign 2 x 305,436 ops/sec ±0.86% (92 runs sampled)
Fastest is underscore#assign 1
Slowest is Object#assign 2
List of implementations ordered by fastest to slowest
- Underscore's
_.assign
- Lodash's
_.assign
Object.assign