Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:130.0) Gecko/20100101 Firefox/130.0
Firefox 130
Mac OS X 10.15
Desktop
3 months ago
Test name Executions per second
Not empty lodash.head() 177950576.0 Ops/sec
Not empty [0] 567564288.0 Ops/sec
Empty lodash.head() 52391464.0 Ops/sec
Empty [0] 529426592.0 Ops/sec
[0] with check 378034624.0 Ops/sec
[0] with null check 148896048.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Not empty lodash.head()

  • Not empty [0]

  • Empty lodash.head()

  • Empty [0]

  • [0] with check

  • [0] with null check