added benchmark code to matlab example (for next ws)