December 2001
Beginner
976 pages
22h 4m
English
![]() | Applying It |
Try to complete the following exercises by yourself.
Write an example that measures the performance of the Add methods for an ArrayList, HashTable, and SortedList.
Hint: Use a large number of objects (10000, for instance) so that you can measure the time consistently. Also see the note that follows on how to measure the length of an operation.
Modify the preceding example to measure the performance of a search operation for the three classes. For the ArrayList use a loop. Alternatively, you could use the advanced BinarySearch method.
Note
To measure the time it takes to execute an operation, ...
Read now
Unlock full access