Script Preparation code:
Tests:
  • For

  • Foreach

  • Foreach + push + concat

  • Filter + concat

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    For
    Foreach
    Foreach + push + concat
    Filter + concat

    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: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:98.0) Gecko/20100101 Firefox/98.0
Firefox 98 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
For 67358.2 Ops/sec
Foreach 595782.3 Ops/sec
Foreach + push + concat 824854.0 Ops/sec
Filter + concat 497839.3 Ops/sec