Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
test flat
(version: 0)
Comparing performance of:
No Flat vs With Flat
Created:
2 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var arr = []; for (var i = 0; i < 10000; i++) { arr.push(Math.floor(Math.random() * 1000)); }
Tests:
No Flat
const noFlat = (arr) => { return arr.find(el => el === -1); }
With Flat
const withFlat = (...arr) => { return arr.flat().find(el => el === -1); }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
No Flat
With Flat
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!
Comments
Confirm delete:
Do you really want to delete benchmark?