Testing machine:
win7
8G
I7 2600

qt4.7.4 php5.3.8 python 2.6

run with qt
Qt Code:
  1. t.start();
  2. QString aa="";
  3. for(int i=0;i<=1000000;i++){
  4. aa += "1";
  5. }
  6. printf("used: %d ms", t.elapsed());
To copy to clipboard, switch view to plain text mode 

debug :240ms
release:138ms


run with php
Qt Code:
  1. $time = new runtime;
  2. $time->start();
  3. $str = "";
  4. for ($i = 0; $i <= 1000000; $i++) {
  5. $str.="1";
  6. }
  7. $time->stop();
  8. echo "used:" . $time->spent() . "ms";
To copy to clipboard, switch view to plain text mode 
used time :92.9ms


run with python:
Qt Code:
  1. import os,sys
  2. from time import clock as now
  3. start = now()
  4. str = ""
  5. for i in range(0,1000000):
  6. str += "i"
  7. finish = now()
  8. print (finish-start)
To copy to clipboard, switch view to plain text mode 
used time:210ms

run with qt c++:
Qt Code:
  1. t.start();
  2. char *pStr = new char[1000001];
  3. for(int i=0;i<=1000000;i++){
  4. pStr[i] = '1';
  5. }
  6. delete pStr;
  7. printf("used: %d ms",t.elapsed());
To copy to clipboard, switch view to plain text mode 

debug,3ms
release,1ms

not just this one test,every test just faster to python,there is no php half of the fast
is this my qt configuration's problem?
some one answer me,please