Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
123456qqq
(version: 0)
Comparing performance of:
1 vs 2
Created:
4 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
const arr = [1,2,3,4,5,6,7,8,9]
Tests:
1
const arr = [1,2,3,4,5,6,7,8,9] arr.map(el => el)
2
const arr = [1,2,3,4,5,6,7,8,9] const arr1 = [] for (let i = 0; i < arr.length; i++) { arr1.push(arr[i]) }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
1
2
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
Array mutation VS creation
testing--js
slice vs splice vs concat -- mee
Indexof vs Includes in an array
Arr clear
Comments
Confirm delete:
Do you really want to delete benchmark?