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

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    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

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 15 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0
Firefox 134 on Windows
View result in a separate tab
Test name Executions per second
Array.from + join + fromCodePoint 342.1 Ops/sec
Array.from + join + fromCharCode 351.0 Ops/sec
Array.reduce + fromCodePoint 557.2 Ops/sec
Array.reduce + fromCharCode 558.2 Ops/sec
String concatenation + fromCodePoint 630.6 Ops/sec
String concatenation + fromCharCode 666.8 Ops/sec
Function.apply + Array.reduce+ fromCodePoint (chunked) 1899.9 Ops/sec
Function.apply + Array.reduce + fromCharCode (chunked) 2511.3 Ops/sec
Function.apply + String concatenation + fromCodePoint (chunked) 1989.4 Ops/sec
Function.apply + String concatenation + fromCharCode (chunked) 2319.7 Ops/sec
Function.apply + Array.reduce+ fromCodePoint (small chunks) 1124.8 Ops/sec
Function.apply + Array.reduce + fromCharCode (small chunks) 1212.9 Ops/sec
Function.apply + String concatenation + fromCodePoint (small chunks) 1116.3 Ops/sec
Function.apply + String concatenation + fromCharCode (small chunks) 1171.1 Ops/sec
utf-16 TextDecoder 3681.2 Ops/sec