HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash for valid case

  • Native for valid case using instanceof

  • Native for valid case using typeof

  • Lodash for invalid case

  • Native for invalid case using instanceof

  • Native for invalid case using typeof

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Lodash for valid case
    Native for valid case using instanceof
    Native for valid case using typeof
    Lodash for invalid case
    Native for invalid case using instanceof
    Native for invalid case using typeof

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (Android 9; Tablet; rv:66.0) Gecko/66.0 Firefox/66.0
Firefox 66 on Android
View result in a separate tab
Test name Executions per second
Lodash for valid case 13602124.0 Ops/sec
Native for valid case using instanceof 37559788.0 Ops/sec
Native for valid case using typeof 98991664.0 Ops/sec
Lodash for invalid case 27980756.0 Ops/sec
Native for invalid case using instanceof 40063572.0 Ops/sec
Native for invalid case using typeof 121919288.0 Ops/sec


;