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

SCM Repository

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

View of /branches/lamont/test/boids/benchmark/pvst.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: 1108 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 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

t = seq(from = 0.03, to = 0.16, by = 0.01)

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

#add a title and subtitle 
title("Processors vs Execution Time (Boids)",  xlab="Processors", ylab="Time") 

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

ViewVC Help
Powered by ViewVC 1.0.0