$a1[$i] = $i; } $Sys->gc(); $t1 = java_values($Sys->currentTimeMillis()); $v = new java("java.util.LinkedList", $a1); $t2 = java_values($Sys->currentTimeMillis()); $T1 = $t2 - $t1; $Sys->gc(); $t1 = java_values($Sys->currentTimeMillis()); $v = new java("java.util.HashMap", $a1); $t2 = java_values($Sys->currentTimeMillis()); $T2 = $t2 - $t1; $Arrays = new JavaClass("java.util.Arrays"); $Sys->gc(); $t1 = java_values($Sys->currentTimeMillis()); $v = $Arrays->asList($a1); $t2 = java_values($Sys->currentTimeMillis()); $T3 = $t2 - $t1; $Sys->gc(); $t1 = java_values($Sys->currentTimeMillis()); java_begin_document(); $v = new java("java.util.LinkedList"); for ($i = 0; $i < $n; $i++) { $v->add($i, $i); } java_end_document(); $t2 = java_values($Sys->currentTimeMillis()); $T4 = $t2 - $t1; $Sys->gc(); $t1 = java_values($Sys->currentTimeMillis()); java_begin_document();