Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
string charAtCode vs char
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36
Browser:
Chrome 152
Operating system:
Windows
Device Platform:
Desktop
Date tested:
10 days ago
Benchmark engine:
Benchmark.js
charAt
1167.4M/s
chartCodeAt
1148.1M/s
View exact numbers
Test name
Executions per second
✓
charAt
1,167,363,968 Ops/sec
chartCodeAt
1,148,099,584 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
const str = "this is big string"; function charCodeAt(){ return str.charCodeAt(5) === 'i' } function charAt(){ return str[5] === 'i' }
Tests:
chartCodeAt
charCodeAt();
charAt
charAt()