Vector/ArrrayList/LinkedList benchmark
Mar. 11th, 2005 03:18 pmAnother benchmark. I decided to check, which List implementation is "better". The code (boring) is at the bottom, under cut.
<th><td>Vector</td><td>ArrayList</td><td>LinkedList</td></th>
</td></tr>
</table>
I ran it on JVM 1.4.2, Windows 2000, 2Gig memory, some 2.6Gig processor.
Now, the code (boring)
( Read more... )
add |
188.9 | 128.2 | 234.3 |
|
set |
33.0 | 54.5 | 2681.4 |
|
get |
84.3 | 103.1 | 5495.5 |
|
rnd |
256.2 | 313.8 | 5947.1 |
|
lst |
228.0 | 187.4 | 104.9 |
|
</td></tr>
</table>
I ran it on JVM 1.4.2, Windows 2000, 2Gig memory, some 2.6Gig processor.
Now, the code (boring)
( Read more... )