private static void generateTest(int length) {
		int[] list = generateList(length);

		System.out.println(length + " random numbers");
		arrayToString(list);

		System.out.print("Bechmark sort: ");
		int[] sortedList = Arrays.copyOf(list, list.length);
		long time = System.currentTimeMillis();
		Arrays.sort(sortedList);
		time = System.currentTimeMillis() - time;
		System.out.println("Duration: " + time);

		System.out.print("Bubble sort: ");
		int[] testList = Arrays.copyOf(list, list.length);
		time = System.currentTimeMillis();
		BubbleSort.sort(testList);
		time = System.currentTimeMillis() - time;
		if (!equalLists(testList, sortedList)) {
			System.out.println("Sorted list not correct");
		} else {
			System.out.println("Duration: " + time);
		}

		System.out.print("Merge sort: ");
		testList = Arrays.copyOf(list, list.length);
		time = System.currentTimeMillis();
		MergeSort.sort(testList);
		time = System.currentTimeMillis() - time;
		if (!equalLists(testList, sortedList)) {
			System.out.println("Sorted list not correct");
		} else {
			System.out.println("Duration: " + time);
		}

		System.out.print("Quick sort: ");
		testList = Arrays.copyOf(list, list.length);
		time = System.currentTimeMillis();
		QuickSort.sort(testList);
		time = System.currentTimeMillis() - time;
		if (!equalLists(testList, sortedList)) {
			System.out.println("Sorted list not correct");
		} else {
			System.out.println("Duration: " + time);
		}
		
		System.out.print("Quick sort threaded: ");
		testList = Arrays.copyOf(list, list.length);
		time = System.currentTimeMillis();
		QuickSortParallellization.sort(testList);
		time = System.currentTimeMillis() - time;
		if (!equalLists(testList, sortedList)) {
			System.out.println("Sorted list not correct");
		} else {
			System.out.println("Duration: " + time);
		}
		
	}