Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0
Firefox 81
Windows
Desktop
4 years ago
Test name Executions per second
Not empty lodash.head() 75499688.0 Ops/sec
Not empty [0] 196717776.0 Ops/sec
Empty lodash.head() 70173016.0 Ops/sec
Empty [0] 195295744.0 Ops/sec
[0] with check 99729512.0 Ops/sec
[0] with null check 74466496.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