Whether the IDEA optimizes the application at startup?

Hello! Need to do a quick performance test.

For example, you want to find out the time of interacia the array for a large number of objects. While stupidly running the app from IDEA.
Do I understand correctly that if I create an empty loop, the compiler will cut it, and the test will not be relevant.
June 10th 19 at 14:52
2 answers
June 10th 19 at 14:54
The IDEA is a development environment that is built the compiler, which is usually separate from Oracle for example. Itself the development environment, nothing is optimized, but the optimization makes the primary virtual machine, a compiler which can optimize, including empty cycles, but if you run your bytecode. Not sure how now, but earlier it was possible to specify the virtual machine or not to conduct the optimization.
Thanks, will look for the setting. IDEA I mentioned, as they have no idea how it runs the application (also a novice), so she may be there a compiler or something. Just for subjective feelings, launched the IDEA of the app is slower than ready assembled, but can just seems.... - Freeman.Stark80 commented on June 10th 19 at 14:57
when you run of IDEA in debug mode, with debugger, it will be slower than twice, sometimes more. So of course it will be slower. - Kasey.Cruickshank commented on June 10th 19 at 15:00
June 10th 19 at 14:56
In IDEA there is such a thing optimize imports, which optimizes and removes unused imported packages. But again it's early launch. And this function is in Ultimate

Find more questions by tags JavaIntelliJ IDEA