Added benchmarks for ToSlice function