(a)
Thread <1024>: Creating/destroying 100000 strings...
Thread <1024>: total time=3 millisecs, average=0.000030

(b)
Thread <1026>: Creating/destroying 100000 strings...
Thread <1026>: total time=3 millisecs, average=0.000030
Thread <3076>: Creating/destroying 100000 strings...
Thread <3076>: total time=4 millisecs, average=0.000040
Thread <4101>: Creating/destroying 100000 strings...
Thread <4101>: total time=3 millisecs, average=0.000030
Thread <5126>: Creating/destroying 100000 strings...
Thread <5126>: total time=3 millisecs, average=0.000030
Thread <6151>: Creating/destroying 100000 strings...
Thread <6151>: total time=3 millisecs, average=0.000030
Thread <7176>: Creating/destroying 100000 strings...
Thread <7176>: total time=3 millisecs, average=0.000030
Thread <8201>: Creating/destroying 100000 strings...
Thread <8201>: total time=4 millisecs, average=0.000040
Thread <9226>: Creating/destroying 100000 strings...
Thread <9226>: total time=3 millisecs, average=0.000030
Thread <10251>: Creating/destroying 100000 strings...
Thread <10251>: total time=4 millisecs, average=0.000040
Thread <2051>: Creating/destroying 100000 strings...
Thread <2051>: total time=3 millisecs, average=0.000030

Example 5: (a) The results of running teststring7.cpp; (b) results of running teststring8.cpp.

Back to Article