Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0
Firefox 102
Linux
Desktop
2 years ago
Test name Executions per second
Not empty lodash.head() 406386336.0 Ops/sec
Not empty [0] 1397491968.0 Ops/sec
Empty lodash.head() 516527552.0 Ops/sec
Empty [0] 1190859904.0 Ops/sec
[0] with check 1136536704.0 Ops/sec
[0] with null check 419883904.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