Script Preparation code:
Tests:
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: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0
Chrome 134 on Windows
View result in a separate tab
utf-16 TextDecoder
4K/s
Function.apply + String concatenation + fromCharCode (chunked)
2K/s
Function.apply + String concatenation + fromCharCode (small chunks)
2K/s
Function.apply + Array.reduce + fromCharCode (small chunks)
2K/s
Function.apply + Array.reduce + fromCharCode (chunked)
1K/s
String concatenation + fromCharCode
1K/s
String concatenation + fromCodePoint
1K/s
Array.reduce + fromCodePoint
1K/s
Array.reduce + fromCharCode
1K/s
Function.apply + String concatenation + fromCodePoint (chunked)
828/s
Function.apply + Array.reduce+ fromCodePoint (small chunks)
787/s
Function.apply + String concatenation + fromCodePoint (small chunks)
774/s
Function.apply + Array.reduce+ fromCodePoint (chunked)
532/s
Array.from + join + fromCharCode
275/s
Array.from + join + fromCodePoint
273/s
View exact numbers
Test name Executions per second
utf-16 TextDecoder 4,179 Ops/sec
Function.apply + String concatenation + fromCharCode (chunked) 1,661 Ops/sec
Function.apply + String concatenation + fromCharCode (small chunks) 1,602 Ops/sec
Function.apply + Array.reduce + fromCharCode (small chunks) 1,555 Ops/sec
Function.apply + Array.reduce + fromCharCode (chunked) 1,485 Ops/sec
String concatenation + fromCharCode 1,434 Ops/sec
String concatenation + fromCodePoint 1,424 Ops/sec
Array.reduce + fromCodePoint 1,155 Ops/sec
Array.reduce + fromCharCode 1,122 Ops/sec
Function.apply + String concatenation + fromCodePoint (chunked) 828 Ops/sec
Function.apply + Array.reduce+ fromCodePoint (small chunks) 787 Ops/sec
Function.apply + String concatenation + fromCodePoint (small chunks) 774 Ops/sec
Function.apply + Array.reduce+ fromCodePoint (chunked) 532 Ops/sec
Array.from + join + fromCharCode 275 Ops/sec
Array.from + join + fromCodePoint 273 Ops/sec