![]() |
Figure 2.2 shows the performance of taking the lengths of
9, 31, 65, and 257 character strings. In this test, the simple structure of the
char*
string lead to a big disadvantage with runtime.
Both
Str
and string
do much better with
runtime.