Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
charcodeat vs. codepointat
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:153.0) Gecko/20100101 Firefox/153.0
Browser:
Firefox 153
Operating system:
Linux
Device Platform:
Desktop
Date tested:
25 days ago
Benchmark engine:
Benchmark.js
charcodeat
1934.3M/s
codepointat
1419.1M/s
charcodeat tostring
1413.0M/s
codepointat tostring
1404.3M/s
View exact numbers
Test name
Executions per second
✓
charcodeat
1,934,336,256 Ops/sec
codepointat
1,419,124,992 Ops/sec
charcodeat tostring
1,413,002,240 Ops/sec
codepointat tostring
1,404,321,664 Ops/sec
Script Preparation code:
var str = "\x02idjghjhdfjfdjfdjhgkghkghk dhfdg dhdf dfhdfh"
Tests:
codepointat tostring
str.codePointAt(0).toString()
charcodeat tostring
str.charCodeAt(0).toString()
codepointat
str.codePointAt(0)
charcodeat
str.charCodeAt(0)