Typically, those that use the Java auto-boxing mechanism tend to be slower, since the JVM must convert a primitive type to an auto-warp type.
This means that if you adhere to primitives, you will strive faster than objects created by the JVM for you. Also, to measure, you could do something like this in pseudocode:
start timer do 10,000 operations on primitive/boolean stop timer display time
This will help you measure the time difference in your system, but it may or may not be the same for multiple systems.
Hope this helps :) Greetings!
source share