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

(b)
Thread <1026>: Creating/destroying 100000 strings...
Thread <2051>: Creating/destroying 100000 strings...
Thread <3076>: Creating/destroying 100000 strings...
Thread <4101>: Creating/destroying 100000 strings...
Thread <5126>: Creating/destroying 100000 strings...
Thread <6151>: Creating/destroying 100000 strings...
Thread <7176>: Creating/destroying 100000 strings...
Thread <8201>: Creating/destroying 100000 strings...
Thread <9226>: Creating/destroying 100000 strings...
Thread <10251>: Creating/destroying 100000 strings...
Thread <1026>: total time=7804 millisecs, average=0.078040
Thread <2051>: total time=8749 millisecs, average=0.087490
Thread <10251>: total time=10455 millisecs, average=0.104550
Thread <6151>: total time=10643 millisecs, average=0.106430
Thread <8201>: total time=10718 millisecs, average=0.107180
Thread <9226>: total time=10724 millisecs, average=0.107240
Thread <7176>: total time=10755 millisecs, average=0.107550
Thread <5126>: total time=10760 millisecs, average=0.107600
Thread <4101>: total time=10765 millisecs, average=0.107650
Thread <3076>: total time=10867 millisecs, average=0.108670

Example 2: (a) The results of running teststring1.cpp; (b) results of running teststring2.cpp.

Back to Article