Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
string vs array comparison
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:146.0) Gecko/20100101 Firefox/146.0
Browser:
Firefox 146
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
4 months ago
Test name
Executions per second
string compare
913447616.0 Ops/sec
array includes
1838900.4 Ops/sec
Script Preparation code:
function stringCompare() { return "abc" > "adc" } function arrayCompare(x) { return [97, 98, 99] > [97, 99, 100] }
Tests:
string compare
stringCompare();
array includes
arrayCompare();