public static void runTask() throws Exception {
		Map<String, String> propMap = BenchmarkUtils
				.getSystemProperties(new String[] { Constants.TASK_CLASS_NAME,
						Constants.WARM_UPS, Constants.RUNS,
						Constants.TASK_PARAMS });
		// First, need to instantiate the task
		Task task = TaskFactory.createTask(propMap
				.get(Constants.TASK_CLASS_NAME), BenchmarkUtils
				.getCommaSeparatedParameter(Constants.TASK_PARAMS));
		TaskRunner runner = new TaskRunner(Integer.valueOf(propMap
				.get(Constants.WARM_UPS)), Integer.valueOf(propMap
				.get(Constants.RUNS)));

		runner.run(task);
	}
public static void runTask() throws Exception {
		Map<String, String> propMap = BenchmarkUtils
				.getSystemProperties(new String[] { Constants.TASK_CLASS_NAME,
						Constants.WARM_UPS, Constants.RUNS,
						Constants.TASK_PARAMS });
		
		Task task = TaskFactory.createTask(propMap
				.get(Constants.TASK_CLASS_NAME), BenchmarkUtils
				.getCommaSeparatedParameter(Constants.TASK_PARAMS));
		TaskRunner runner = new TaskRunner(Integer.valueOf(propMap
				.get(Constants.WARM_UPS)), Integer.valueOf(propMap
				.get(Constants.RUNS)));

		runner.run(task);
	}
public static void runTask ( ) throws Exception { Map < String , String > propMap = BenchmarkUtils . getSystemProperties ( new String [ ] { Constants . TASK_CLASS_NAME , Constants . WARM_UPS , Constants . RUNS , Constants . TASK_PARAMS } ) ; // First, need to instantiate the task Task task = TaskFactory . createTask ( propMap . get ( Constants . TASK_CLASS_NAME ) , BenchmarkUtils . getCommaSeparatedParameter ( Constants . TASK_PARAMS ) ) ; TaskRunner runner = new TaskRunner ( Integer . valueOf ( propMap . get ( Constants . WARM_UPS ) ) , Integer . valueOf ( propMap . get ( Constants . RUNS ) ) ) ; runner . run ( task ) ; }
/*
A macro method, reads system properties, instantiates the task and runs
it
/ * A macro method reads system properties instantiates the task and runs it