Implemented benchmark functionality