Emscripten - An LLVM-to-Javascript compiler
mozakai.blogspot.com
mozakai.blogspot.com
It'd be interesting to see how decent performance can get between the LLVM optimizations and the tracing/JIT of the newer JS engines.
Emscriptem doesn't generate C/C++ code, it generates Javascript, which then runs on top of a Javascript execution environment (V8 etc).
The real comparison would be some C/C++ code run though this and running in Javascript vs handwritten Javascript.
(It's possible what you mean is a comparison of the generated machine code from LLVM vs that from the Javascript engine. I agree that would be interesting, but I think you'd be better off comparing the machine code generated by a Javascript-on-LLVM implementation such as http://github.com/omo/jsllc vs that generated by a conventional Javascript runtime.)
http://syntensity.blogspot.com/2010/08/emscripten.html
The game engine's website is here:
Hopefully this experiment works out - both of these projects looks very interesting!
If I weren't so comfortable in Java, though, I'd definitely think about using this.