Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134
Windows
Desktop
8 days ago
Test name Executions per second
Double negation 260904352.0 Ops/sec
Boolean 258958320.0 Ops/sec
Boolean valueOf 187475264.0 Ops/sec
Script Preparation code:
AخA
 
var test = true;
Tests:
  • Double negation

     
    !!test
  • Boolean

     
    Boolean(test)
  • Boolean valueOf

     
    Boolean(test).valueOf()