Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Push or Map
Push or Map to create a new array
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Browser:
Chrome 134
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Map
15495.3 Ops/sec
Push
6903.6 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
var strs = Array.from(new Array(10000)).map(() => 'String concat. ');
Tests:
Map
var result = strs.map(value => value + " OK");
Push
var result = []; strs.forEach(value => result.push(value + " OK"));