🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #22759

ibm��jvm����Ч�ʱ�sun�ĸ�

#22759
From: �����ӽ�����....
Date: Fri, 05 Sep 2003 03:20
79 lines
2831 bytes
����������ibm��jvm,�򵥵ĺ�sun�ıȽ���һ��,��������
import java.util.*;

public class Test{
    public  static void main(String args[]){
        int i,j;
        int n=600000;
        Collection c=new ArrayList();
        long t=System.currentTimeMillis();
        for(i=0;i<20;i++){
            long t2=System.currentTimeMillis();
            for(j=0;j<n;j++){
                
                c.add(new String("to take some space"+j));
            }
            System.out.println(System.currentTimeMillis()-t2);
            c=new ArrayList();
        }
        System.out.println(System.currentTimeMillis()-t);
    }
}
sun��ʱ������
3595
2674
2694
2624
2704
2694
2673
2644
2684
2684
2704
2704
2694
2653
2724
2664
2694
2624
2724
2674
54539
ibm������
1923
591
570
561
561
611
941
581
571
561
551
590
942
591
580
571
561
601
931
591
13990

������n��Ϊ700,000,sun��out of memory,ibm�ĵ�1,300,000������ִ��,֪��1,40
0,000���׳��쳣.����2000+sp4 256M althon1600+�Ľ��,��redhat 8�IJ��Խ��Ҳ��
����.������sun��javac��ibm�ı����������
�ɴ˿���,��������container����sun���������ٶȻ����ڴ����ö���ibmѷɫ
��˵ibmÿ��Ͷ��java��Ǯ��sun�ĺü���,����ȷʵ��Ч��

����Ϊʲô��������ibm��jdk?�����Ҹ㿪��,����վ��඼��sun��jdk?����Ϊsun��
���׼?

��������ibm jdk��win���linux��,����1.4��,����մ�ibm��վ����,��˭ϲ�����Դ�
����.����60M����
--
�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 211.80.90.109]
Technical Details
Message-ID: <489MEa$AGO@bbs.sjtu.edu.cn>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-06!sn-xit-08!sn-xit-09!supernews.com!newsfeed.news2me.com!canoe.uoregon.edu!logbridge.uoregon.edu!newsgate.cuhk.edu.hk!news.zixia.net!news.neu.edu.cn!SJTU

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,GB
X-Google-Thread: f6cb0,b082984b0663c402,start
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2003-09-04 20:23:06 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-06!sn-xit-08!sn-xit-09!supernews.com!newsfeed.news2me.com!canoe.uoregon.edu!logbridge.uoregon.edu!newsgate.cuhk.edu.hk!news.zixia.net!news.neu.edu.cn!SJTU
From: jawahh.bbs@bbs.sjtu.edu.cn (�����ӽ�����....)
Newsgroups: cn.bbs.comp.lang.java
Subject: ibm��jvm����Ч�ʱ�sun�ĸ�
Date: 05 Sep 2003 03:20:55 GMT
Organization: ��ˮ˼Դ
Message-ID: <489MEa$AGO@bbs.sjtu.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1062729924.A
Lines: 79