### pdf-file converted to text ### tic a=rand(500,300,200); t1=toc b=(sin(a)+cos(a)).*(log(sin(a)-cos(a))).^2; t2=toc Test numbers 1 2 3 4 5 t1(create matrix) 0.90615 0.81242 0.81237 0.81743 0.81966 t2(total time) 9.1472 8.8163 8.8272 8.8243 8.8367 P-octave (Test on dual core system.) hosts=["127.0.0.1";"127.0.0.1"]; sockets=connect(hosts); tic reval(["tic";"a=rand(500,300,100);";"t(1)=toc";"b=(sin(a)+cos(a)).*(log(sin(a)-cos(a))).^2;";"t(2)=toc"],sockets(2,:)); tc1=toc a=rand(500,300,100); t0=toc; b=(sin(a)+cos(a)).*(log(sin(a)-cos(a))).^2; t2=toc; reval("send(t,sockets(1,:))",sockets(2,:)); t3=toc; tp2=recv(sockets(2,:)) tt=toc tp1=t2-tc1 tc2=t3-t2 tc3=tt-t3 tcomm=tc1+tc2+tc3 tp11=t0-tc1 tp12=t2-t0 Test number 1 2 3 Tp1(create matrix) 0.053338 0.52372 0.50853 Tp1(total time on 6.0395 6.0568 6.1578 1st processor) Tp2(create matrix) 0.49761 0.48925 0.50326 Tp2(total time on 6.06351 5.94482 6.07540 2nd processor) communication 0.028245 0.0012259 0.0012391 time Total time 6.0677 6.0580 6.1578 Speedup=1.456 Efficiency of parallel code=72.8%