Fixed the duplicate call of functions

Fixed the duplicate call of functions and made sure same sample data set should be used for benchmark.