Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the difference in performance between JVM 1.6 and JVM 1.5

2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the relevant knowledge of "what is the difference between the performance of JVM 1.6and JVM 1.5". The editor shows you the operation process through an actual case. The method of operation is simple and fast, and it is practical. I hope this article" what is the difference between the performance of JVM 1.6and JVM 1.5" can help you solve the problem.

Here we first introduce the software used to do JVM performance evaluation-Volano BenchMark, which is a server benchmark evaluation software written purely in Java. In fact, this is originally a WebChat software. Based on the function of Chat App, the author developed this small software to test the performance of JVM, which can be used to test the performance of different JVM on machines with different hardware configurations or on different Kernel operating systems. It measures the time required for the client program to broadcast batch information by establishing multiple client connections to the server, so as to achieve the results of the JVM performance test.

In fact, this software can evaluate the performance of the server in the following aspects: scheduler, network throughput and response of TCP/IP and Ethernet Driver, Pthreads threads, SMP (Symmetric Multi Processing symmetric multiprocessing) performance measurement.

Configuration of Benchmark

Number of CHAT rooms: 10

Number of users per room: 20

Amount of information per user: 1000

The server and client are on the same computer.

JVM used in the test

Sun Client JVM 1.6.0-beta-b59g:

Jdk-6-beta-windows-i586

Options used:-server-Xmx128m (default)

Sun Client JVM 1.5.0_01-b08:

Jdk-1_5_0_01-windows-i586-p

Options used:-server-Xmx128m (default)

I would like to add here that I did not configure the startup Option of JVM, because what is done here is only a comparison between Mustang (1.6m) and Tiger (1.5m), so we will not discuss whether to choose server or Client/Hotspot and whether the pre-allocated Heap size is 128m or 512m. If you need more in-depth discussion, welcome to discuss, here I personally feel-server is faster than-Client (that is, Hotspot in the Java option), starting will be a little slower, but running faster. At the same time, Net mode is not used for testing here, only Loop is used.

Hardware configuration

OS: Microsoft Windows XP [version 5.1.2600] (Service Pack 2)

CPU: AMD Athlon (tm) XP 2200 + Thoroughbred-B Processor (0.13 μ m)

Memory: 512MB

Cache:64+64KB L1 Cache+258 KB L2 Cache

Test results:

The test results are measured in terms of the number of messages per second. The test results take the average of 5 tests excluding * * and * *:

JVM

Index

one

two

three

four

five

1.6beta JVM

Mustang

Duration (seconds)

46.235

43.5

45.063

44.016

44.719

Average throughput

8651

9195

8876

9088

8945

1.5 JVM

Tiger

Duration (seconds)

47.828

43.125

42.266

41.984

42.359

Average throughput

8363

9275

9464

9527

9443

Test results:

Mustang JVM 1.6beta: 8969.667

Tiger JVM 1.5: 9394

It didn't feel right, so I restarted the computer and tried again:

JVM

Index

one

two

three

four

five

1.6beta JVM

Mustang

Duration (seconds)

46.312

44.063

44.11

44.109

44.953

Average throughput

8637

9078

9068

9068

8898

1.5 JVM

Tiger

Duration (seconds)

46.813

43.621

42.512

42.684

43.012

Average throughput

8663

9145

9435

9456

9426

That's all for "what's the difference between the performance of JVM 1.6 and JVM 1.5". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report