Performance comparisons of structurally similar programs written in different languages