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 (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
Benchmark engine:
Benchmark.js
codepointat
1002.6M/s
charcodeat tostring
996.1M/s
codepointat tostring
995.7M/s
charcodeat
958.3M/s
View exact numbers
Test name
Executions per second
✓
codepointat
1,002,618,304 Ops/sec
charcodeat tostring
996,086,784 Ops/sec
codepointat tostring
995,715,712 Ops/sec
charcodeat
958,257,408 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)