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

  • getCookieRegex - 1000 short cookies

  • getCookieRegex - 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
    getCookieRegex - 1000 short cookies
    getCookieRegex - 10 long cookies

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
for...of - 1000 short cookies 31134.7 Ops/sec
IndexOf() - 1000 short cookies 652432.5 Ops/sec
find() - 1000 short cookies 30552.9 Ops/sec
reduce() - 1000 short cookies 7565.9 Ops/sec
for...of - 10 long cookies 323858.7 Ops/sec
IndexOf() - 10 long cookies 229865.0 Ops/sec
find() - 10 long cookies 322693.6 Ops/sec
reduce() - 10 long cookies 414275.5 Ops/sec
for - 1000 short cookies 31143.0 Ops/sec
for - 10 long cookies 324835.5 Ops/sec
getCookieRegex - 1000 short cookies 80701.0 Ops/sec
getCookieRegex - 10 long cookies 549934.6 Ops/sec