next up previous contents
Next: String Append Benchmark Up: Benchmarks Previous: String Length Benchmark   Contents

String Equality Benchmark

Figure 2.3: This figure shows the time needed to compare 20 English words of varying lengths with one another
\begin{figure}\begin{center}
\epsfig{file=Equals.eps, width=4.5in}\end{center}\end{figure}

Figure 2.3 shows the performance of taking 20 English words of various lengths and comparing them for equality. Both Str and char* do well here. The string class performance is noticeably lower.



2007-05-05