JavaRush /Courses /New Java Syntax /Measuring list performance

Measuring list performance

New Java Syntax
Level 14, Lesson 5
Available

"Finally! I missed you. Where have you been? Here are some tasks for you."

"Are they interesting?"

"Of course. Very interesting:"

14
Task
New Java Syntax, level 14, lesson 5
Locked
LinkedList and ArrayList
LinkedList and ArrayList
14
Task
New Java Syntax, level 14, lesson 5
Locked
10 thousand deletions and insertions
10 thousand deletions and insertions
14
Task
New Java Syntax, level 14, lesson 5
Locked
Measure how long it takes to perform 10,000 insertions on each list.
Measure how long it takes to perform 10,000 insertions on each list.
14
Task
New Java Syntax, level 14, lesson 5
Locked
Measure how long it takes to perform 10,000 get and set calls on each list
Measure how long it takes to perform 10,000 get and set calls on each list
14
Task
New Java Syntax, level 14, lesson 5
Locked
Method quartet
Method quartet
14
Task
New Java Syntax, level 14, lesson 5
Locked
Longest sequence
Longest sequence
Comments (2)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
1 January 2024
User that code to actually compare times

new Date().getTime() - start.getTime();
Andrei Karavai Level 30
13 November 2023
The task "10 thousand deletions and insertions" is very abstract and therefore very confusing.