Script Preparation code:
AخA
 
var a = 1, u = void 0;
Tests:
  • undefined

     
    if(a===undefined)console.log(a);
  • void 0

     
    if(a===void 0)console.log(a);
  • constant containing undefined

     
    if(a===u)console.log(a);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    undefined
    void 0
    constant containing undefined

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1
Mobile Safari 15 on iOS 15.5
View result in a separate tab
Test name Executions per second
undefined 8393813.0 Ops/sec
void 0 20734222.0 Ops/sec
constant containing undefined 12156584.0 Ops/sec