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

String Search Benchmark

Figure 2.5: This figure shows the time needed to search a medium-sized paragraph for several different words
\epsfig{file=Find.eps, width=4.5in}\end{center}\end{figure}

Figure 2.5 shows the performance of searching for various words in a moderately-sized paragraph. The char* strstr() method takes the prize in this test, with string once again coming in a distant third.