adding benchmarks - converted into library