This may affect the performance of your application. The value will vary depending on the type of equipment used and the load on the host.
Some points on which this can be translated into performance:
-> As stated by Rocket boy, println is synchronized, which means that you will encounter blocking overhead on the object header and may cause bottlenecks in the stream depending on your design.
-> To print to the console, kernel time is required, kernel time means that the processor will not work in user mode, which basically means that your processor will be busy executing kernel code instead of application code.
-> If you already register this, this means extra kernel time for I / O, and if your platform does not support asynchronous I / O, this means that your processor may stall while it is busy.
You can try and compare this and see for yourself.
There are ways to get rid of this, for example, with very fast I / O, a huge machine for special use, and possibly an offset lock on your JVM settings if your application design is not multithreaded for this console.
Like everything in performance, it all depends on your equipment and priorities.
bubooal
source share