How does one benchmark relatively simple shader? I need to determine such things like what to do: discard in the beginning or multiply by 0 in the end of shader.
What I'm struggling with is general approach to benchmark glsl shaders and also, how to benchmark particular shader, because it has no effect on general performance (like fps etc) but I need to determine what is the difference.