public static void main(String[] args) throws InterruptedException {
        if(!(args.length == 2 || (args.length == 3 && args[0].matches("-speedup|-scaleup")))) {
            printUsage();
            return;
        }
        
        int numberThreads = Integer.parseInt(args[args.length - 2]);
        if(numberThreads < 1) {
            printUsage();
            return;
        }
        int numberIterations = Integer.parseInt(args[args.length - 1]);
        if(numberIterations < 1) {
            printUsage();
            return;
        }
        
        if(args[0].equals("-speedup")) {
            for(int i = 1; i <= numberThreads; i++) {
                timeTest(i, numberIterations);
            }
        } else if(args[0].equals("-scaleup")) {
            for(int i = 1; i <= numberThreads; i++) {
                timeTest(i, i*numberIterations);
            }            
        } else {
            timeTest(numberThreads, numberIterations);
        }
    }