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

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



FIP)����Ǥ���

�Ȥꤢ�����Ǥ�������Ƿ�⤵�󤫤餤���������٥���ޡ����ץ�������
�긵�ˤ���Ķ���ư��������̤���𤤤����ޤ���


��Linux -- Mobile Pentium III 600MHz �ξ��  �� �ٻ��̤ΥΡ���PC ;-)

#### NArray vs NumArray ####
shisoku
  0.220000   0.110000   0.330000 (  0.333320)
  0.390000   0.190000   0.580000 (  0.585586)
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 C (10 iterations of +-*/) ####

real    0m1.044s
user    0m0.950s
sys     0m0.100s


��Linux -- Alpha21164A 	667MHz (or 750MHz? ���ߤޤ��󡤳�ǧ���ޤ�)

#### NArray vs NumArray ####
shisoku
  0.000000   0.000000   0.000000 (  0.223697)
  0.000000   0.000000   0.000000 (  0.284261)
shisoku (with scalar)
  0.000000   0.000000   0.000000 (  0.246164)
  0.000000   0.000000   0.000000 (  0.270586)
shisoku (with scalar, coerced)
  0.000000   0.000000   0.000000 (  0.225650)
  0.000000   0.000000   0.000000 (  0.262771)
math
  0.000000   0.000000   0.000000 (  1.190771)
  0.000000   0.000000   0.000000 (  1.171234)
sum, av, var, rms
  0.000000   0.000000   0.000000 (  0.067402)
  0.000000   0.000000   0.000000 (  0.043958)
max, min, median
  0.000000   0.000000   0.000000 (  0.000000)
  0.000000   0.000000   0.000000 (  0.000000)
transpose
  0.000000   0.000000   0.000000 (  0.135781)
  0.000000   0.000000   0.000000 (  0.991495)

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

real    0m1.399s
user    0m1.372s
sys     0m0.027s
#### shisoku in C (10 iterations of +-*/) ####
./Bench: line 12:  4107 Floating point exception./a.out

real    0m0.113s
user    0m0.095s
sys     0m0.019s


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