Script Preparation code:
AخA
 
var uint8Array = {
    "0": 146,
    "1": 131,
    "2": 172,
    "3": 109,
    "4": 97,
    "5": 116,
    "6": 101,
    "7": 114,
    "8": 105,
    "9": 97,
    "10": 108,
    "11": 84,
    "12": 121,
    "13": 112,
    "14": 101,
    "15": 168,
    "16": 82,
    "17": 69,
    "18": 83,
    "19": 79,
    "20": 85,
    "21": 82,
    "22": 67,
    "23": 69,
    "24": 162,
    "25": 105,
    "26": 100,
    "27": 161,
    "28": 49,
    "29": 166,
    "30": 97,
    "31": 109,
    "32": 111,
    "33": 117,
    "34": 110,
    "35": 116,
    "36": 164,
    "37": 49,
    "38": 48,
    "39": 48,
    "40": 48,
    "41": 131,
    "42": 172,
    "43": 109,
    "44": 97,
    "45": 116,
    "46": 101,
    "47": 114,
    "48": 105,
    "49": 97,
    "50": 108,
    "51": 84,
    "52": 121,
    "53": 112,
    "54": 101,
    "55": 168,
    "56": 82,
    "57": 69,
    "58": 83,
    "59": 79,
    "60": 85,
    "61": 82,
    "62": 67,
    "63": 69,
    "64": 162,
    "65": 105,
    "66": 100,
    "67": 161,
    "68": 50,
    "69": 166,
    "70": 97,
    "71": 109,
    "72": 111,
    "73": 117,
    "74": 110,
    "75": 116,
    "76": 164,
    "77": 49,
    "78": 48,
    "79": 48,
    "80": 48
}
Tests:
  • toString

     
    uint8Array.toString()
  • JSON.stringify

     
    JSON.stringify(uint8Array);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    toString
    JSON.stringify

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Chrome 132 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
toString 109406344.0 Ops/sec
JSON.stringify 361988.9 Ops/sec