bash performance tuning