Script Preparation code:
AخA
 
var replacementTags = ['Hola', 'A', 'B', 'Adios'];
var customLocalTags = [];
Tests:
  • forEach

     
    replacementTags.forEach((tag) => {
      customTag = {
        value: tag,
        name: tag
      };
      customLocalTags.push(customTag);
    });
  • map

     
    customLocalTags = replacementTags.map((tag) => {
      return {
        value: tag,
        name: tag
      };
    });
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    forEach
    map

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.106 Safari/537.36
Chrome 80 on Linux
View result in a separate tab
Test name Executions per second
forEach 347113.1 Ops/sec
map 3459118.8 Ops/sec