Hardware, OS and JVM Configurations

This section describes hardware, operating system and JVM configurations in which micro benchmark tests are performed.

The first thing I need to do is to record my hardware, operating system, and JVM configurations:

Hardware:
   Processor: Intel Core 2 CPU
   Speed: T7200 @ 2.00GHz
   Memory: 997 MHz, 1.00 GB of RAM

Operating system:
   Microsoft Windows XP Professional
   Version 2002
   Service pack 3
   
JVM:
   java version "1.6.0_06"
   Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
   Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)

All tests included in this chapter are done with above configurations.

Last update: 2010.

Table of Contents

 About This Book

 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

 Sun's JVM - Java HotSpot VM

 JRockit JVM 28.2.7 by Oracle Corporation

 JVM Runtime Data Areas

 Memory Management and Garbage Collectors

 Garbage Collection Tests

 JVM Stack, Frame and Stack Overflow

 Thread Testing Program and Result

 CPU Impact of Multi-Thread Applications

 I/O Impact of Multi-Thread Applications

 CDS (Class Data Sharing)

 Micro Benchmark Runner and JVM Options

Micro Benchmark Tests on "int" Operations

 Revised BenchmarkRunner.java

Hardware, OS and JVM Configurations

 "int" Empty Loop: 16 Nanoseconds per Step

 "int" Assignment Only: 14 Nanoseconds per Step

 "int" Shift and Assignment: 17 Nanoseconds per Step

 "int" Add and Assignment: 17 Nanoseconds per Step

 "int" Multiply and Assignment: 17 Nanoseconds per Step

 "int" Division and Assignment: 19 Nanoseconds per Step

 Micro Benchmark Tests on "long" Operations

 Micro Benchmark Tests in JIT Compilation Mode

 Micro Benchmark Tests on "float" and "double" Operations

 Outdated Tutorials

 References

 PDF Printing Version