!7 p-exp { new LogNArray a; int n = 100000; twice { time { repeat n { a.add(randomInt()); } }} printBenchResult("Adding", n); twice { time { for i to n: a.get(i); }} printBenchResult("Accessing in order", n); twice { time { for i to n: a.get(random(n)); }} printBenchResult("Accessing in random order", n); twice { time { repeat n { a.remove(random(l(a))); } }} printBenchResult("Removing", n); }