How does it compare to Google's closure compiler? It is considered by many best in class. It understands the code (uses Java based Rhino Javascript engine), while most alternatives (UglifyJS & co) just monkey patch things. You can trust the Google's closure compiler output. Edit: @jagthebeetle: have you tried "advanced mode"? (One should read the documentation before using it, it's really a game changer but requires…
Closure compiler optimizes code size, while this optimises code execution.
Closure is really a great compiler, it's just a shame it doesn't interact well (that is, at all) with the modern JS ecosystem.