Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /branches/lamont/test/boids/benchmark/speedup.r
ViewVC logotype

View of /branches/lamont/test/boids/benchmark/speedup.r

Parent Directory Parent Directory | Revision Log Revision Log

Revision 2561 - (download) (annotate)
Thu Mar 6 17:45:45 2014 UTC (5 years, 5 months ago) by lamonts
File size: 1081 byte(s)
Adding script for producing boids benchmark
#Load the data file with information strands and time infomration
timeData = read.table('parallel.dat',header=FALSE)

#The x axis will be the number of processors. 
processors = c(4,8,16,32,64)

#The number of processors 
nP = length(processors)

#The colors for the graph 
graph_colors = c("blue","green","red","orange","purple")

#The number of strand lines 
strand_lines = 5

#The symbol for each point 
plot_sym = 15

for (col in 1:strand_lines) {
  timeVec = c()
  for(row in 1:nP){
    timeVec = c(timeVec,timeData[nP+1,col]/timeData[row,col])
  if(col == 1){
    plot(processors,timeVec,ann=FALSE, type='b', pch=plot_sym,xaxt="n",col=graph_colors[1])
  }else {
#redefine the graph's x axos to include only the proccessors 

#add a title and subtitle 
title("Speedup (Boids)",xlab="Processors",ylab="Speedup",) 

# add a legend 
       pch=plot_sym, title="Number of Strands")

ViewVC Help
Powered by ViewVC 1.0.0