Communities
|
Social Applications
Networks
Support
|
|
C-Level Executives
Other Roles
|
|
Support
Education
Partner
Other Tasks
|
|
| |
| |
-Xmx512m was required for proper benchmark execution with J2SE 1.4.2).
java version "1.4.2_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
java version "1.5.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
Java HotSpot(TM) Server VM (build 1.5.0_01-b08, mixed mode)
System.nanoTime()
has been added, providing access to a nanosecond-granularity time source for relative time measurements. The actual precision of the time values returned by System.nanoTime() is platform-dependent.
NORM_PRIORITY can now compete as expected with native threads. An excellent reference for these topics is Chapter 9, "Threads," in Joshua Bloch's book
Effective Java Programming Language Guide
. See also the
Thread Priority on the Solaris Platform document.
System.arraycopy()
. In J2SE 1.4.2
System.arraycopy() was implemented using
memmove() which performed well on Solaris, but was found to be a performance bottleneck on Linux. In J2SE 5.0, calls to
memmove() were replaced with highly optimized x86 and x64 instructions tailored for running Java on these modern processors.
System.arraycopy(). The test was conducted using highly tuned parameters for J2SE 1.4.2 and the exact same parameters for J2SE 5.0 as to eliminate any advantage J2SE 5.0 would gain from ergonomics. Here we are highlighting the array copy optimization on x86 platforms while holding the hardware constant.
-server
-Xmx512m
-XX:+UseConcMarkSweepGC
java version "1.4.2_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Server VM (build 1.5.0-b64, mixed mode)
| |
| |

