Test case name | Result |
---|---|
String.prototype.at | |
String.prototype.charAt | |
String.prototype.split | |
String.prototype.substring | |
String.prototype.slice | |
for-loop | |
spread operator | |
Array.from |
Test name | Executions per second |
---|---|
String.prototype.at | 17054.4 Ops/sec |
String.prototype.charAt | 17656.2 Ops/sec |
String.prototype.split | 21102.9 Ops/sec |
String.prototype.substring | 17360.9 Ops/sec |
String.prototype.slice | 17354.5 Ops/sec |
for-loop | 17532.4 Ops/sec |
spread operator | 20020.6 Ops/sec |
Array.from | 19963.9 Ops/sec |