Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Mobile Safari/537.36
Chrome Mobile 126
Android
Mobile
16 days ago
Test name Executions per second
Array.from + join + fromCodePoint 47.0 Ops/sec
Array.from + join + fromCharCode 43.7 Ops/sec
Array.reduce + fromCodePoint 62.6 Ops/sec
Array.reduce + fromCharCode 62.9 Ops/sec
String concatenation + fromCodePoint 58.2 Ops/sec
String concatenation + fromCharCode 60.0 Ops/sec
Function.apply + Array.reduce+ fromCodePoint (chunked) 553.7 Ops/sec
Function.apply + Array.reduce + fromCharCode (chunked) 950.6 Ops/sec
Function.apply + String concatenation + fromCodePoint (chunked) 517.6 Ops/sec
Function.apply + String concatenation + fromCharCode (chunked) 868.5 Ops/sec
Function.apply + Array.reduce+ fromCodePoint (small chunks) 399.1 Ops/sec
Function.apply + Array.reduce + fromCharCode (small chunks) 543.9 Ops/sec
Function.apply + String concatenation + fromCodePoint (small chunks) 372.8 Ops/sec
Function.apply + String concatenation + fromCharCode (small chunks) 542.3 Ops/sec
utf-16 TextDecoder 1745.5 Ops/sec
Script Preparation code:
Tests:
  • Array.from + join + fromCodePoint

  • Array.from + join + fromCharCode

  • Array.reduce + fromCodePoint

  • Array.reduce + fromCharCode

  • String concatenation + fromCodePoint

  • String concatenation + fromCharCode

  • Function.apply + Array.reduce+ fromCodePoint (chunked)

  • Function.apply + Array.reduce + fromCharCode (chunked)

  • Function.apply + String concatenation + fromCodePoint (chunked)

  • Function.apply + String concatenation + fromCharCode (chunked)

  • Function.apply + Array.reduce+ fromCodePoint (small chunks)

  • Function.apply + Array.reduce + fromCharCode (small chunks)

  • Function.apply + String concatenation + fromCodePoint (small chunks)

  • Function.apply + String concatenation + fromCharCode (small chunks)

  • utf-16 TextDecoder