
public class ListTester {


	public static void main(String[] args) {
		testList( new SimpleList() );
		testList( new SimpleListFixedIncrease() );
	}
	
	public static void testList(IList list){
		Stopwatch s = new Stopwatch();
		for(int i = 1000; i < 2500000; i *= 2){
			s.start();
			for(int j = 0; j < i; j++)
				list.add(j);
			s.stop();
			System.out.println("Time to add " + i + " elements " + s.time() + " seconds.");
			list.clear();
		}
	}

}
