The quality of your code and software architecture impacts your performance way more than your choice of language or choice of library. BUT! If you are already an excellent programmer and already pushing things very close to the limit, then the language and library choice can add a small boost of extra performance that may come in handy for the next Modern Warfare or Crysis game.
Interesting. So the quality of code matters than the language. Thanks for the awesome info!
Yeah, using ASM, C, C++, etc won't magically produce faster programs in itself.
As an example, we had a C++ game renderer that was taking 8ms of CPU time per frame. We rewrote it (to do the same tasks, but smarter) and this new version took 1ms per frame (125fps to 1000fps by itself).
The rest of the game was using about 24ms of CPU time per frame, so that rewrite actually took us from "barely 30fps" to "comfortably 30fps" ;)
Both versions were written in C++, but one used better algorithms and a more hardware friendly design (good memory layouts).
Non experts may even be better off writing in python than C++, because it lets you focus on algorithms more than the small details ;)