Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:121.0) Gecko/20100101 Firefox/121.0
Firefox 121
Mac OS X 10.15
Desktop
2 years ago
String.fromCharCode.apply
2.8M/s
For-loop
1.9M/s
View exact numbers
Test name Executions per second
String.fromCharCode.apply 2,785,838 Ops/sec
For-loop 1,930,298 Ops/sec
Script Preparation code:
Tests: