TextEncoder vs String hash v2

Test TextEncoder encoding vs simply encoding with a string
5 months ago
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0
Test name Executions per second
Baseline encoder 8036.6 Ops/sec
baseline hash 11038.6 Ops/sec
Script Preparation code:
Tests:
  • Baseline encoder

  • baseline hash

Open this result on MeasureThat.net