

public class AllocFloatsTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		long timeN = System.currentTimeMillis();
		System.out.println("start: " + timeN);
		
		int bufferSize = 512;
		int largeNumber = 1000;
		
		for(int i = 0; i < largeNumber; i++) {
			float[] f = new float[bufferSize];
		}
		long timeNow = System.currentTimeMillis() - timeN;
		System.out.println("start: " + timeNow);
		
		float[] rootFloat = new float[bufferSize];
		for(int i = 0; i < largeNumber; i++) {
			float[] f = rootFloat;
		}
		timeNow = System.currentTimeMillis() - timeN;
		System.out.println("start: " + timeNow);
		
		for(int i = 0; i < largeNumber; i++) {
			
		}
		timeNow = System.currentTimeMillis() - timeN;
		System.out.println("start: " + timeNow);
		
	}

}
