Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
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:
9 months ago
Benchmark engine:
Benchmark.js
string compare
913.4M/s
array includes
1.8M/s
View exact numbers
Test name
Executions per second
✓
string compare
913,447,616 Ops/sec
array includes
1,838,900 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();