ZK 5.0.4's memory improvements
Sam Chuang, Engineer, Potix Corporation
August 25, 2010
ZK 5.0.4 and above
- CPU: AMD Athlon(tm) 64 Processor 3800+ 2.40 GHz
- Memory (RAM): 3.00 GB
- Network Adapter: Broadcom 440x 10/100 Integrated Controller
- Window 7
- JDK 1.6.0-16 32 Bit
- Apache Tomcat Server 6.0.20
- ZK Demo
- ZK 5.0.4 versus ZK 5.0.3
We use sizeof.jar to measure the component memory usage. First of all we measure the memory use of individual components and then measure the total memory used by the sample application, ZK Demo.
In this test, we do not measure the objects that a component might reference. For example, we don't include the memory taken by the String object,
This is a long string, in this report.
<label label="This is a long string"/>
Memory Usage of Individual Components
At first, we measure the memory use of individual components. Here we test the popular components, such as window, label, listbox and so on.
|Component||ZK 5.0.3 (byte)||ZK 5.0.4 (byte)||Memory Saved (%)|
Memory Usage of a Sample Application: ZK Sandbox
Here is the measure of a sample application, ZK Sandbox (old ZK Demo).
|ZK Demo||ZK 5.0.3 (KB)||ZK 5.0.4 (KB)||Memory Saved (%)|
As demonstrated, the memory usage has reduced between 40% and 70% depending on the component tested. This combines for a grand total of 63% memory saving on our ZK Sandbox’s index page just by upgrading the ZK version to 5.0.4.
|Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.|