[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dennou-ruby:000771] Re: NumArray / NArray



FIP)����Ǥ����٤��쥹�Ǥ��ߤޤ���

�����Ȥʤ������äƤ��ޤä������ˡ��ְ㤤�⤢�ä��ꤷ�ơ����ߤ�
���䤷�Ƥ��ޤäƿ���������ޤ���Ǥ����� m(__)m

����ޤǤλ�Υ᡼���˺��Ƥ��������ơ�����򸫤Ƥ���������

����������

��Ƿ�⤵��ˤ����������٥���ޡ����ץ�������¹Ԥ�����̤Ǥ���
�긵�δĶ��ǣ��̤��Ƥߤޤ�����

NArray vs. NumArray �Ǥ���

��̤ο��ͤϡ�������
user time  system time  user+system  (really passed time)
��ɽ���Ƥ��ޤ���
��§�黻("shisoku")�ˤĤ��Ƥ� Fortran90, C ����ӤǤ��ޤ���
��Ӥˤ� 100*100*100 �Σ����������Ȥ��ޤ�����C���� 1000,000 ��
����������ʤΤ�ñ�����ӤϤǤ��ޤ��󤬡ˡ�

----------------------------------------------------------------
������Mobile Pentium III 600MHz (Linux)

#### NArray vs NumArray #### 
shisoku 
  0.220000   0.110000   0.330000 (  0.333320)  <- NArray
  0.390000   0.190000   0.580000 (  0.585586)  <- NumArray (�ʲ�Ʊ��)
shisoku (with scalar) 
  0.230000   0.070000   0.300000 (  0.298966) 
  0.420000   0.170000   0.590000 (  0.588529) 
shisoku (with scalar, coerced) 
  0.230000   0.100000   0.330000 (  0.331695) 
  0.440000   0.150000   0.590000 (  0.582622) 
math 
  0.830000   0.070000   0.900000 (  0.901456) 
  0.700000   0.150000   0.850000 (  0.849729) 
sum, av, var, rms 
  0.090000   0.000000   0.090000 (  0.093043) 
  0.100000   0.000000   0.100000 (  0.092251) 
max, min, median 
  0.000000   0.000000   0.000000 (  0.000016) 
  0.000000   0.000000   0.000000 (  0.000015) 
transpose 
  0.160000   0.040000   0.200000 (  0.202790) 
  0.570000   0.040000   0.610000 (  0.604540) 

#### shisoku in gcc (10 iterations of +-*/) #### 
 
real    0m1.044s    <- 10�󷫤��֤��Ƥ���Τ�
user    0m0.950s    <- ��η�̤���Ӥ���ˤ�
sys     0m0.100s    <- 1/10 ����

----------------------------------------------------------------
������Alpha21264 667MHz X 2 (Linux)

#### NArray vs NumArray ####
shisoku
  0.177734   0.047852   0.225586 (  0.224674)  <- NArray
  0.236328   0.048828   0.285156 (  0.285238)  <- NumArray (�ʲ�Ʊ��)
shisoku (with scalar)
  0.203125   0.042969   0.246094 (  0.246164)
  0.205078   0.061523   0.266602 (  0.266678)
shisoku (with scalar, coerced)
  0.173828   0.052734   0.226562 (  0.226627)
  0.207031   0.056641   0.263672 (  0.263747)
math
  1.154297   0.045898   1.200195 (  1.199562)
  1.154297   0.047852   1.202148 (  1.202493)
sum, av, var, rms
  0.068359   0.000000   0.068359 (  0.069356)
  0.044922   0.000000   0.044922 (  0.044934)
max, min, median
  0.000000   0.000000   0.000000 (  0.000000)
  0.000000   0.000000   0.000000 (  0.000000)
transpose
  0.125000   0.011719   0.136719 (  0.136758)
  1.082031   0.011719   1.093750 (  1.093086)

#### shisoku in Compaq Fortran (10 iterations of +-*/) ####

real    0m1.403s    <- 10�󷫤��֤��Ƥ���Τ�
user    0m1.372s    <- ��η�̤���Ӥ���ˤ�
sys     0m0.029s    <- 1/10 ����
#### shisoku in gcc (10 iterations of +-*/) ####

real    0m0.632s    <- 10�󷫤��֤��Ƥ���Τ�
user    0m0.598s    <- ��η�̤���Ӥ���ˤ�
sys     0m0.034s    <- 1/10 ����

----------------------------------------------------------------

��Ƿ�⤵��η�̤ȹ�碌�Ƹ��Ƥߤ�ȡ���§�黻�˴ؤ��ơ�NumArray
�� NArray ����٤��٤��褦�Ǥ����ץ�åȥۡ���ˤ�äư㤤�ޤ�����
1.2-1.7�ܻ��֤������äƤ��ޤ���
���ȡ�"sum, av, var, rms" ����ʬ�ǤϳΤ��˺����Ĥ��ʤ�(Alpha ��
�Ĥ��Ƥ� NumArray �Τۤ����ɤ���̤��ФƤ��ޤ���)�Τǡ���Ƿ�⤵��
����Ŧ�Τ褦�˿��������֥������Ȥ��ΰ����ݤ��뤿��λ��֤κ���
�������ȤʤΤǤ��礦����

������礭�����Ѥ����ꡤ���������ʥ᥽�åɤ�¹Ԥ������ꤷ�ơ�
Ʊ���褦�ʥƥ��Ȥ�⤦������äƤߤޤ���

�ޤ����������򸫤� NArray �� NumArray ��®�ٺ��θ�����ͻ����Ƥ�
�������ȤΤ��ȤǤ����Τǡ�������Τۤ���ܤ������Ƥߤޤ���


-- 
����  �� (KOSHIRO Tsuyoshi)  <t.koushiro@xxxxxx> 
�ٻ��̥��ա��������ԡ�(��) �Ķ������ƥ���ȿ���� �����ƥ��� 
��̳�� >> �̿����縦��� �ż��ȷ�¬���� �߿�졼�����롼�� 
mailto:koshiro@xxxxxx  TEL:042-327-6880  FAX:042-327-6666