From: Ole Kristensen <ole@linux.local>
Subject: Re: Is ther any sense in *= and matrices?
Date: 10 Jun 2003 21:48:47 +0200
Date: 2003-06-10T21:48:47+02:00 [thread overview]
Message-ID: <m3adcp3e8w.fsf@linux.local> (raw)
In-Reply-To: mVpFa.110557$DV.125036@rwcrnsc52.ops.asp.att.net
tmoran@acm.org writes:
> To summarize some of the benchmarks of A=A+B vs A+=B, 3x3 matrices, 10**7 iterations
> A=A+B A+=B ratio
> 55 19 2.9 Russ's special code on Sunblade, slightly faster than
> an 866MHz Pentium III according to
> http://www.phys.ocean.dal.ca/~kelley/linux/benchmark/benchmark_POM.html
> 4.4 3.3 1.3 MSVC++5.0 simple code on Tom's 866MHz Pentium III
> 1.4 0.8 1.6 Gnat 3.15p on Tom's 866MHz Pentium III
> 1.1 0.7 1.6 g++.5.8 (GCC) 3.2.2 using C templates on Hyman's "Sun workstation", speed unspecified
> 0.45 0.18 2.5 Ole-Hjalmar's machine ? gcc Ada or C the same?
Another data point: My old home PC, a 266MHz pentium II, compiler g++
3.2, Tom's simple C++ code:
ole@linux:~> time ./tmoran
Go 1000000 4460000 6320000
real 0m13.626s
user 0m10.800s
sys 0m0.000s
If I read the results correctly, it actually beats the SunBlade 2000,
which it definitely should not do. But there is much less of a
difference between + and += on this machine than on the fast machine
at work. Maybe I should check the g++ version on my machine at work
once more.
Turning optimization off produces even less difference:
ole@linux:~> g++ -o tmoran tmoran.cc
ole@linux:~> !time
time ./tmoran
Go 1000000 12850000 14120000
real 0m34.219s
user 0m26.950s
sys 0m0.040s
Ole-Hj. Kristensen
next prev parent reply other threads:[~2003-06-10 19:48 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-10 19:00 Is ther any sense in *= and matrices? tmoran
2003-06-10 19:37 ` Ole Kristensen
2003-06-10 19:37 ` Ole Kristensen
2003-06-10 19:48 ` Ole Kristensen [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-06-05 10:45 Preben Randhol
2003-06-05 11:13 ` Vinzent Hoefler
2003-06-05 11:28 ` Preben Randhol
2003-06-05 11:53 ` Vinzent Hoefler
2003-06-05 15:27 ` Preben Randhol
2003-06-05 15:40 ` Vinzent Hoefler
2003-06-05 15:47 ` Preben Randhol
2003-06-05 16:38 ` Vinzent Hoefler
2003-06-05 17:16 ` Preben Randhol
2003-06-05 17:17 ` Preben Randhol
2003-06-05 17:59 ` Vinzent Hoefler
2003-06-07 19:38 ` Russ
2003-06-08 6:46 ` John R. Strohm
2003-06-08 18:51 ` Russ
2003-06-08 20:52 ` tmoran
2003-06-09 4:24 ` Russ
2003-06-09 5:13 ` John R. Strohm
2003-06-10 9:38 ` Ole-Hjalmar Kristensen
2003-06-10 16:11 ` Wesley Groleau
2003-06-10 19:24 ` Ole Kristensen
2003-06-10 18:33 ` Russ
2003-06-10 23:16 ` John R. Strohm
2003-06-09 6:58 ` tmoran
2003-06-08 22:23 ` John R. Strohm
2003-06-09 6:06 ` Russ
2003-06-09 10:06 ` Mango Jones
2003-06-08 22:56 ` Bobby D. Bryant
2003-06-09 4:27 ` Russ
2003-06-09 5:17 ` John R. Strohm
2003-06-09 14:53 ` Bobby D. Bryant
2003-06-09 17:46 ` Russ
2003-06-10 9:57 ` Ole-Hjalmar Kristensen
2003-06-05 12:33 ` John R. Strohm
2003-06-05 19:25 ` Wesley Groleau
2003-06-05 20:17 ` David C. Hoos
2003-06-05 20:52 ` Wesley Groleau
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox