

    \filetitle{testpar}{Test performance of for versus parfor loops in evaluating posterior simulator}{poster/testpar}

	\paragraph{Syntax}
 
 \begin{verbatim}
 [TFOR,TPARFOR] = testpar(POS,N,...)
 \end{verbatim}
 \paragraph{Input arguments}
 
 \begin{itemize}
 \item
   \texttt{POS} {[} poster {]} - Initialised posterior simulator object
   that will be evaluated \texttt{N} time.
 \item
   \texttt{N} {[} numeric {]} - Number of times the posterior
   distribution will be evaluated for both for and parfor loops.
 \end{itemize}
 \paragraph{Output arguments}
 
 \begin{itemize}
 \item
   \texttt{TFOR} {[} numeric {]} - Time elapsed when running \texttt{N}
   times the posterior simulator with a for loop.
 \item
   \texttt{TPARFOR} {[} numeric {]} - Time elapsed when running
   \texttt{N} times the posterior simulator with a parfor loop.
 \end{itemize}
 \paragraph{Options}
 
 \begin{itemize}
 \item
   \texttt{'progress='} {[} \texttt{true} \textbar{}
   \emph{\texttt{false}} {]} - Display progress bar in the command
   window.
 \end{itemize}
 \paragraph{Description}
 
 \paragraph{Example}
 
 -IRIS Toolbox. -Copyright (c) 2007--2012 Jaromir Benes \& Troy Matheson.


