falsified? before you say this, please read some document and tune you page first, here are some link, http://books.zkoss.org/wiki/ZK%20Developer's%20Reference/Performance%20Tips
dennis ( 2013-08-06 09:40:18 +0800 )edit-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I am writer a page.
<window border="none" height="100%" width="100%">
<grid height="100%" width="100%">
<rows>
<attribute name="onCreate">
int rowNum = 1000;
int colNum = 20;
Row row = null;
Cell cell = null;
Label label = null;
for(int i=0;i<rowNum;i++){
row = new Row();
self.appendChild(row);
for(int j=0;j<colNum;j++){
cell = new Cell();
row.appendChild(cell);
label = new Label("数据["+i+","+j+"]");
cell.appendChild(label);
}
}
</attribute>
</rows>
</grid>
</window>
Then I test concurrent users of this page in zksandbox-6.5.1. This is the result from LoadRunner-11.
users / average response time(s)
1 / 1.849
10 / 7.303
20 / 12.921
30 / 22.64
Why is the average response time for this page increments so terrible?
Please help me!
Your test code has 2 main issue that cause bad performance. 1. you used zscript (it is slow, and very slow when current access), you should use native Java+MVC, 2. you created a huge among of component at once, you should consider to use Model+Render to render the grid, and ZK will load the component only when it is needed (ROD: load on demand). Please read http://books.zkoss.org/wiki/ZK%20Developer's%20Reference/Performance%20Tips, there provides more detail.
falsified? before you say this, please read some document and tune you page first, here are some link, http://books.zkoss.org/wiki/ZK%20Developer's%20Reference/Performance%20Tips
dennis ( 2013-08-06 09:40:18 +0800 )editAsked: 2013-08-05 10:34:09 +0800
Seen: 22 times
Last updated: Aug 06 '13