Added missing variables to benchmark function.
Pointed out shortcoming for midi contexts.