Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0
Firefox 82
Fedora
Desktop
3 years ago
Test name Executions per second
Not empty lodash.head() 103137288.0 Ops/sec
Not empty [0] 269945536.0 Ops/sec
Empty lodash.head() 98868368.0 Ops/sec
Empty [0] 276321952.0 Ops/sec
[0] with check 141951728.0 Ops/sec
[0] with null check 111447952.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