time simple optimization with many iterations