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

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 4 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 13602120.0 Ops/sec
Native for valid case using instanceof 37559790.0 Ops/sec
Native for valid case using typeof 98991660.0 Ops/sec
Lodash for invalid case 27980760.0 Ops/sec
Native for invalid case using instanceof 40063570.0 Ops/sec
Native for invalid case using typeof 121919300.0 Ops/sec