static void dabBench(int type, boolean useAA, int iterations, int sMin, int sDiff, boolean useTexture) {
		CPBrushManager manager = new CPBrushManager();
		CPBrushInfo brush = new CPBrushInfo();

		brush.type = type;
		brush.isAA = useAA;

		if (useTexture) {
			brush.texture = 1;

			int textureSize = 8;
			CPGreyBmp texture = new CPGreyBmp(textureSize, textureSize);
			for (int i = 0; i < textureSize * textureSize; i++) {
				texture.data[i] = (byte) (((i & 1) == 1) ? 255 : 0);
			}
			manager.setTexture(texture);
		}

		double lastTime = System.currentTimeMillis(), newTime;

		@SuppressWarnings("unused")
		CPBrushManager.CPBrushDab dab;

		for (int i = 0; i < iterations; i++) {
			brush.curSize = i % (sDiff + 1) + sMin;
			dab = manager.getDab(100.5f, 100.5f, brush);
		}

		newTime = System.currentTimeMillis();
		System.out.println("Result time: " + String.valueOf((newTime - lastTime) / 1000.) + "s "
				+ String.valueOf((newTime - lastTime) * 1000. / (iterations)) + "us per iteration\n");
	}