I feel that if doubling is also carried out, it will be more beneficial rather than only electrification. Crossings take a lot of time and due to speed limitations trains take quite some time from station to another. Best example being Bypl to Carmelaram which takes almost 15-20 minutes.
So doubling would be the best way along with electrification