The end of the civil war and the IMF loan , however , have largely restored investors ' confidence , reflected in part by the Sri Lankan stock market 's recognition as one of the best performing markets in the world .