JVM Tutorials - Herong's Tutorial Examples - Version 4.23, by Dr. Herong Yang
Performance Improvements of JIT Compilation
This section provides a performance comparison between interpreted-only mode and JIT compilation mode on loops with different operations. The JIT compiler improves performance a lot!
If you compare testing results between interpreted-only mode and JIT compilation mode, you will see performance improvements produced by the JIT compiler.
This table provides execution time of different "float" loops per step in nanoseconds:
float float Interpreted JIT Only Compilation Empty loop 17 2 Assignment: x=i 19 4 Add: x=i+i 33 2 Multipply: x=i*3 29 2 Divide: x=i/3 35 9
This table provides execution time of different "double" loops per step in nanoseconds:
double double Interpreted JIT Only Compilation Empty loop 32 2 Assignment: x=i 39 4 Add: x=i+i 56 2 Multipply: x=i*3 57 2 Divide: x=i/3 70 16
Conclusion:
Last update: 2010.
Table of Contents
Downloading and Installing JDK 1.8.0 on Windows
Downloading and Installing JDK 1.7.0 on Windows
java.lang.Runtime Class - The JVM Instance
java.lang.System Class - The Operating System
ClassLoader Class - Class Loaders
Class Class - Class Reflections
JRockit JVM 28.2.7 by Oracle Corporation
Memory Management and Garbage Collectors
JVM Stack, Frame and Stack Overflow
Thread Testing Program and Result
CPU Impact of Multi-Thread Applications
I/O Impact of Multi-Thread Applications
Micro Benchmark Runner and JVM Options
Micro Benchmark Tests on "int" Operations
Micro Benchmark Tests on "long" Operations
Micro Benchmark Tests in JIT Compilation Mode
►Micro Benchmark Tests on "float" and "double" Operations
Benchmark Test Methods for "float" Operation
"float" Operations without JIT Compilation
"float" Operations with JIT Compilation
Benchmark Test Methods for "double" Operation
"double" Operations without JIT Compilation
"double" Operations with JIT Compilation