Script Preparation code:
Tests:

Historical Performance Data aggregated from 9 community runs

Desktop Results:
Chrome 9 runs
TextEncoder
833/s
Blob
13/s
Buffer.byteLength
12/s

Fastest: TextEncoder (70.5x faster)

View exact numbers
  • TextEncoder: 833 ops/sec
  • Blob: 13 ops/sec
  • Buffer.byteLength: 12 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    TextEncoder
    Blob
    Buffer.byteLength

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36
Chrome 140 on Windows
View result in a separate tab
TextEncoder
890/s
Blob
10/s
Buffer.byteLength
9/s
View exact numbers
Test name Executions per second
TextEncoder 890 Ops/sec
Blob 10 Ops/sec
Buffer.byteLength 9 Ops/sec