The variables BENCHMARK and COMPILER aren't assigned in time to be used in the same iteration of the loop. It works if you just use $(1) and $(2) instead.
BENCHMARK
COMPILER