Script Preparation code:
AخA
 
var str = "False";
Tests:
  • Using JSON

     
    JSON.parse(str.toLowerCase());
  • Comparison

     
    str.toLowerCase() === "true";
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Using JSON
    Comparison

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
Firefox 61 on Windows
View result in a separate tab
Test name Executions per second
Using JSON 6814950.0 Ops/sec
Comparison 245816672.0 Ops/sec