Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
array manip3
(version: 0)
s
Comparing performance of:
At once vs in loop
Created:
3 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
arr = []; for (i = 0; i < 1600; i++) { arr[i] = i % 20 } testArray = new Uint8Array(arr);
Tests:
At once
p = Array.from(testArray); while(p.length > 160) { discard = p.slice(0, 160); p = p.slice(160); }
in loop
while(testArray.length < 160) { discard = Array.from(testArray.subarray(0, 160)); testArray = testArray.subarray(160); }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
At once
in loop
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:
Shifting array elements
Initialize 2d array
Uint8Array vs Uint8ClampedArray
Uint8Array vs Uint8ClampedArray - more numbers
Uint8Array vs Uint8ClampedArray 4 value copy
Comments
Confirm delete:
Do you really want to delete benchmark?