Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
double vs bool
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Linux; arm_64; Android 14; SM-A525F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.447 YaApp_Android/24.45.1 YaSearchBrowser/24.45.1 BroPP/1.0 SA/3 Mobile Safari/537.36
Browser:
Chrome 122
Operating system:
Android 24.45.1
Device Platform:
Mobile
Date tested:
one year ago
Test name
Executions per second
double
8942206.0 Ops/sec
bool
3179543.8 Ops/sec
Script Preparation code:
const item = { name: 'sda' }; function double() { return !!item.name; } function bool() { return Boolean(item.name); }
Tests:
double
double()
bool
bool()