Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0
Firefox 119
Linux
Desktop
one year ago
Test name Executions per second
String.fromCharCode 1995921.2 Ops/sec
TextDecoder 2889698.5 Ops/sec
TextDecoder plus array 2558685.5 Ops/sec
TextDecoder plus constructor and array 1377696.8 Ops/sec
Script Preparation code:
Tests:
  • String.fromCharCode

  • TextDecoder

  • TextDecoder plus array

  • TextDecoder plus constructor and array