next up previous contents
Next: String Search Benchmark Up: Benchmarks Previous: String Equality Benchmark   Contents

String Append Benchmark

Figure 2.4: This figure shows the time needed to build a sentence by appending individual words together
\begin{figure}\begin{center}
\epsfig{file=Append.eps, width=4.5in}\end{center}\end{figure}

Figure 2.4 shows the performance of building a sentence by appending several words together. In this case, I chose not to compare char* as there are many different approaches that could be used here with the faster approaches involving a higher level of complexity than the standard strcat method. Of the approaches shown, the Str class continues to outperform string.



2007-05-05