Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
destructuring types
(version: 1)
Comparing performance of:
iterator vs normal
Created:
one year ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
let str = 'abc' let arr = [10,20,30]
Tests:
iterator
let[a,b,c]=str let[d,e,f]=arr
normal
let{0:a,1:b,2:c}=str let{0:d,1:e,2:f}=arr
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
iterator
normal
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
10 months ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Browser/OS:
Chrome 138 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
iterator
55845816.0 Ops/sec
normal
210264336.0 Ops/sec
Related benchmarks:
compound let assignment
let var
== vs === v3
let vs var
Evaluate Destructuring vs Assignment3
push VS destructuration
++ vs +1
i++ vs ++i 2
let vs array 2
Comments
Confirm delete:
Do you really want to delete benchmark?