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

(b)
Thread <1026>: Creating/destroying 100000 strings...
Thread <9226>: Creating/destroying 100000 strings...
Thread <9226>: total time=60 millisecs, average=0.000600
Thread <4101>: Creating/destroying 100000 strings...
Thread <5126>: Creating/destroying 100000 strings...
Thread <5126>: total time=65 millisecs, average=0.000650
Thread <4101>: total time=125 millisecs, average=0.001250
Thread <6151>: Creating/destroying 100000 strings...
Thread <7176>: Creating/destroying 100000 strings...
Thread <8201>: Creating/destroying 100000 strings...
Thread <10251>: Creating/destroying 100000 strings...
Thread <6151>: total time=130 millisecs, average=0.001300
Thread <1026>: total time=81 millisecs, average=0.000810
Thread <10251>: total time=94 millisecs, average=0.000940
Thread <7176>: total time=166 millisecs, average=0.001660
Thread <8201>: total time=195 millisecs, average=0.001950
Thread <3076>: Creating/destroying 100000 strings...
Thread <3076>: total time=60 millisecs, average=0.000600
Thread <2051>: Creating/destroying 100000 strings...
Thread <2051>: total time=60 millisecs, average=0.000600

Example 3: (a) The results of running teststring3.cpp; (b) results of running teststring4.cpp.

Back to Article