Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
String comparison vs boolean check
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Mobile Safari/537.36
Browser:
Chrome Mobile 128
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
Benchmark engine:
Benchmark.js
Boolean check
12.8M/s
String comparison
13K/s
View exact numbers
Test name
Executions per second
✓
Boolean check
12,812,234 Ops/sec
String comparison
12,750 Ops/sec
Script Preparation code:
var status = 'public'; var status1 = false;
Tests:
String comparison
if(status === 'public') { console.log('hello'); }
Boolean check
if(status1) { console.log('hello'); }