HTML Preparation code:
Script Preparation code:
Tests:
  • for...of - 1000 short cookies

  • IndexOf() - 1000 short cookies

  • find() - 1000 short cookies

  • reduce() - 1000 short cookies

  • for...of - 10 long cookies

  • IndexOf() - 10 long cookies

  • find() - 10 long cookies

  • reduce() - 10 long cookies

  • for - 1000 short cookies

  • for - 10 long cookies

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    for...of - 1000 short cookies
    IndexOf() - 1000 short cookies
    find() - 1000 short cookies
    reduce() - 1000 short cookies
    for...of - 10 long cookies
    IndexOf() - 10 long cookies
    find() - 10 long cookies
    reduce() - 10 long cookies
    for - 1000 short cookies
    for - 10 long cookies

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 5 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36
Chrome 96 on Windows
View result in a separate tab
Test name Executions per second
for...of - 1000 short cookies 13350.6 Ops/sec
IndexOf() - 1000 short cookies 284406.1 Ops/sec
find() - 1000 short cookies 13157.1 Ops/sec
reduce() - 1000 short cookies 1866.7 Ops/sec
for...of - 10 long cookies 188081.5 Ops/sec
IndexOf() - 10 long cookies 172432.9 Ops/sec
find() - 10 long cookies 189973.3 Ops/sec
reduce() - 10 long cookies 119977.1 Ops/sec
for - 1000 short cookies 13555.8 Ops/sec
for - 10 long cookies 192742.0 Ops/sec