Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
charAt vs charCodeAt
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0
Browser:
Firefox 132
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
charCodeAt
1348.0M/s
charAt
1341.8M/s
View exact numbers
Test name
Executions per second
✓
charCodeAt
1,347,993,728 Ops/sec
charAt
1,341,779,328 Ops/sec
Script Preparation code:
str = "F2"
Tests:
charAt
str.charAt(0) === 'F'
charCodeAt
str.charCodeAt(0) === 70