Many write that in the first place it depends on the "owner")) of Course it is, but another question, as I understand it )))
In Java, the strong typing, so compared to JS in some places it will be faster since you will not spend time converting types, but at the same time in JS at the moment of interpretation, some things can be optimized.
Another bad thing that prevents the stable operation of the games is the garbage collector. In the same Java it is, in any such language. For him at any possible moment he can on a few milliseconds to take a process that will greatly affect the render time of the frame
If first want performance: write C/C++ and manually manage memory, but it is much more difficult.
Another issue is the platform under which it would work (ie can be either native or Web as in browser, and using frameworks for writing mobile/desktop). In all these cases, and even for the Web, you can write in C++ (see emscripten)
Unambiguously it is impossible to give a short answer to this question, as it does not specify the detail of the requirements of the game (maybe it's just a day, or full 3D), as well as the devices which it must work. And speaking of 2017, that the computing power of even a budget smartphone is enough for almost all in JS and no brakes
there is such a famo.us js framework, the development of which raised $ 30 million: deprecated.famous.org
there is a video on YouTube "famo.us js" https://famous.co now just the Studio that makes websites