Skip to content
Prev 33587 / 398506 Next

Spedd: R vs S-plus

On Fri, 20 Jun 2003, Uwe Ligges wrote:

            
Prejudices?
Yes, especially versions of S-PLUS. There are big differences between
recent versions of S-PLUS, and a comparison of 2000 vs 6.1 depends heavily
on the task.

It also depends on the version of Windows, and (especially in S-PLUS) the
file system type (NTFS/VFAT and even the versions of each) and if it is 
local or remotely mounted.
I often compare on the same hardware, using Windows XP.  I'd say that on
average the Windows port is 10-20% slower (and we have some idea why), and
almost never 50% slower.

I don't think it is normal to see factors as large as 5 either way on real
tasks, provided there is a reasonable amount of RAM available.  (Both R
and S-PLUS under Windows run very slowly if there is a very small amount
of RAM.)  I used to keep extensive tables of the time taken for different
versions on the same hardware for all the MASS scripts, but these days
they run fast enough on all the systems I use.  Here's some numbers, RH8.0
on a dual Athlon 2600, R using ATLAS (single-processor)

	R 1.7.1	S+6.1
ch04	8.40	10.52
ch05	5.94	11.18
ch06	72.80	23.89
ch07	11.36	29.45
ch10	20.07	39.61
ch13	9.00	13.7

That's probably a fair comparison, as I have tried to make those tasks
work well on both systems *and* they are real tasks, not small artificial
`benchmarks'.