https://github.com/encapsulin/coreJava/blob/main/src/speedCalc/MainCollections.java
-=start=-
///////////////////////////////
addFirst()class java.util.ArrayDeque1000000: 134 ms
addFirst()class java.util.ArrayDeque2000000: 107 ms
addFirst()class java.util.ArrayDeque3000000: 60 ms
addFirst()class java.util.ArrayDeque4000000: 70 ms
addFirst()class java.util.ArrayDeque5000000: 105 ms
removeFirst()class java.util.ArrayDeque: 22 ms
addFirst()class java.util.LinkedList1000000: 285 ms
addFirst()class java.util.LinkedList2000000: 38 ms
addFirst()class java.util.LinkedList3000000: 176 ms
addFirst()class java.util.LinkedList4000000: 155 ms
addFirst()class java.util.LinkedList5000000: 152 ms
removeFirst()class java.util.LinkedList: 85 ms
addFirst()class java.util.ArrayList50000: 194 ms
addFirst()class java.util.ArrayList100000: 615 ms
addFirst()class java.util.ArrayList150000: 1080 ms
addFirst()class java.util.ArrayList200000: 1509 ms
addFirst()class java.util.ArrayList250000: 1941 ms
removeFirst()class java.util.ArrayList: 5289 ms
///////////////////////////////
addLast()class java.util.ArrayList1000000: 32 ms
addLast()class java.util.ArrayList2000000: 78 ms
addLast()class java.util.ArrayList3000000: 25 ms
addLast()class java.util.ArrayList4000000: 18 ms
addLast()class java.util.ArrayList5000000: 37 ms
removeLast()class java.util.ArrayList: 27 ms
addLast()class java.util.ArrayDeque1000000: 50 ms
addLast()class java.util.ArrayDeque2000000: 18 ms
addLast()class java.util.ArrayDeque3000000: 29 ms
addLast()class java.util.ArrayDeque4000000: 18 ms
addLast()class java.util.ArrayDeque5000000: 18 ms
removeLast()class java.util.ArrayDeque: 55 ms
addLast()class java.util.LinkedList1000000: 157 ms
addLast()class java.util.LinkedList2000000: 211 ms
addLast()class java.util.LinkedList3000000: 210 ms
addLast()class java.util.LinkedList4000000: 15 ms
addLast()class java.util.LinkedList5000000: 214 ms
removeLast()class java.util.LinkedList: 86 ms
///////////////////////////////
addMiddle()class java.util.ArrayList50000: 86 ms
removeMiddle()class java.util.ArrayList: 89 ms
addMiddle()class java.util.LinkedList50000: 1480 ms
removeMiddle()class java.util.LinkedList: 1479 ms
addMiddle()class java.util.ArrayDeque50000: 16636 ms
-=stop=-
foxminded
https://youtu.be/IFL7qnRR6YE?t=2070
https://youtu.be/IFL7qnRR6YE?t=5895