Run details:
Mozilla/5.0 (Linux; Android 9; LGM-V300S) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36
Chrome Mobile 83
Android
Mobile
4 years ago
Test name Executions per second
Not empty lodash.head() 1548448.1 Ops/sec
Not empty [0] 4449391.0 Ops/sec
Empty lodash.head() 1542725.6 Ops/sec
Empty [0] 4457394.5 Ops/sec
[0] with check 1626148.0 Ops/sec
[0] with null check 1175401.5 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