Optifine allows you to optimize your Minecraft graphical settings. You can use it to increase your FPS drastically or decrease it. The result depends on your settings, but OptiFine is primarily used to get more FPS.