s-news
[Top] [All Lists]

S-Plus graphing speed

To: S-News <s-news@lists.biostat.wustl.edu>
Subject: S-Plus graphing speed
From: Thom Burnett <Thom.Burnett@cognigencorp.com>
Date: Thu, 16 Mar 2006 12:07:33 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113
S-News,

We are benchmarking S-Plus performance on Unix and Windows. If you would be willing to execute the following code, forward results and machine configuration (if available), I would be happy to share any useful information obtained.
We are testing both the command
> source(codefile)
and batch mode using SBATCH

Please report your basic machine specs (report on what you know, it's okay if you don't know all the specifics):
-Platform (PC or Unix): ____________
-OS/Version:__________
-Processor speed: ___________
-Memory: _____________
-Command (source or batch): _____________

-------------------------------------------------------------------------------------------------------------------------------------
For the PC:

plotToFile <- T
now <- proc.time()

outputDir <- "C:\\\\myDir"
x <- seq(from=0, to=5, by=.001)
y <- cos(x)

   outputFilename <- paste(outputDir, 'simpleSinPc.png', sep='')
   resolutionWidth <- 1000
   formatString <- 'PNG'

   plot(x,y)

   z <- sin(x)
   points(x,z, type='l')
if(plotToFile) {export.graph(FileName = outputFilename, ExportType = formatString) }

print(proc.time() - now)
remove(objects(), where=1)

-------------------------------------------------------------------------------------------------------------------------------------
For Unix:

remove(objects(), where=1)
print(objects())

now <- proc.time()

plotToFile <- T


x <- seq(from=0, to=5, by=.001)
y <- cos(x)
outputDir <- "/myPath/myDir/"
outputFilename <- paste(outputDir, 'simpleSin1.png', sep='')
resolutionWidth <- 1000
formatString <- 'PNG'
if(plotToFile) java.graph(file=paste(outputFilename, sep=""), format=formatString, width=resolutionWidth)
   plot(x,y)

   z <- sin(x)
   points(x,z, type='l')
 if(plotToFile)dev.off()


print(proc.time() - now)







<Prev in Thread] Current Thread [Next in Thread>
  • S-Plus graphing speed, Thom Burnett <=