static void blendingBench(CPLayer l1, CPLayer l2, int iterations, boolean useFullAlpha) {
		double lastTime = System.currentTimeMillis(), newTime;
		CPRect size = l1.getSize();

		if (useFullAlpha) {
			for (int i = 0; i < iterations; i++) {
				l1.fusionWithFullAlpha(l2, size);
			}
		} else {
			for (int i = 0; i < iterations; i++) {
				l1.fusionWith(l2, size);
			}
		}
		newTime = System.currentTimeMillis();
		System.out.println("Result time: "
				+ String.valueOf((newTime - lastTime) / 1000.)
				+ "s "
				+ String.valueOf((newTime - lastTime) * 1000. / (iterations))
				+ "us per iteration "
				+ String.valueOf((newTime - lastTime) * 1000000.
						/ ((double) iterations * size.getWidth() * size.getHeight())) + "ns per pixel\n");
	}