The performance is the same as if you wrote the javascript by hand. The only potential performance issue is when the compiler generates really poor javascript for some particular bit of code, where a person would have written less poor javascript if doing it by hand.
I also believe there are some current projects that compile Python and Ruby into JS, but I'm not sure how mature they are.