Native Object.entries vs Lodash toPairs

Benchmark created on


Description

Compare the performance of the native browser function to Lodash.

Preparation HTML

<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.15/lodash.min.js'></script>

Setup

const simpleDict = { a: 1, b: 2, c: 3 };

Test runner

Ready to run.

Testing in
TestOps/sec
Test native Object.entries
Object.entries(simpleDict);
ready
Test Lodash _.toPairs
_.toPairs(simpleDict);
ready

Revisions

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