VS version of the STL version with gunc contrast efficiency

Remember the one we tracked the new operator, which is in operation on VS, but also found some problems, it seems that some of the design on the VS is not so efficient, but to achieve those functions.
For example, the following code:

DWORD dwbegin = GetTickCount();
    for(int i = 0; i < 1000000; ++i)
    {
        tmp.push_back(i);
    }
    DWORD dwend = GetTickCount();

VS version operation:
VS version of the STL version with gunc contrast efficiency
this is the result of running too many times after a relatively centered.

Look at the QT version (with MingW version)
VS version of the STL version with gunc contrast efficiency
This is a mean to obtain multiple runs

Contrast can be seen, the same code to achieve efficiency gunc indeed much higher than VS, a lot of good adapters seemingly exists only on gunc. It seems some of the requirements of efficiency server deployed on linux is not without reason.

Guess you like

Origin blog.51cto.com/11753138/2446894