Add simple benchmark to evaluate the performance of algorithms