func testList(listType string, n int, list cslib.List) {
	// a. Append n integers.
	timeFunc(fmt.Sprintf("%s Append", listType), func() {
		for j := 0; j < n; j++ {
			list.Append(j)
		}
	})

	// b. Get a random index 10000 times.
	timeFunc(fmt.Sprintf("%s Get 10K", listType), func() {
		for j := 0; j < 10000; j++ {
			list.Get(rand.Intn(list.Length()))
		}
	})

	// c. Remove all elements from the front of the list.
	timeFunc(fmt.Sprintf("%s Remove", listType), func() {
		for list.Length() > 0 {
			list.Remove(0)
		}
	})

	fmt.Println()
}