Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Bool vs String comp
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0
Browser:
Firefox 130
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Bool comp
166338752.0 Ops/sec
Bool comp 2
189638112.0 Ops/sec
String comp
159318224.0 Ops/sec
Script Preparation code:
b = true s = "true"
Tests:
Bool comp
if(b) { r = true }
Bool comp 2
if(b == true) { r = true }
String comp
if(s == "true" ) { r = true }