lodash head

Benchmark created on


Preparation HTML

<script src="
https://cdn.jsdelivr.net/npm/lodash@4.17.21/lodash.min.js
"></script>

Setup

const data = [...Array(10000).keys()]

Test runner

Ready to run.

Testing in
TestOps/sec
lodash head
_.head(data)
ready
index
data[0]
ready

Revisions

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