Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
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 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0
Browser:
Firefox 124
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 years ago
Test name
Executions per second
codepointat tostring
995715712.0 Ops/sec
charcodeat tostring
996086784.0 Ops/sec
codepointat
1002618304.0 Ops/sec
charcodeat
958257408.0 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)