引用来自“eechen”的评论
http://stackoverflow.com/questions/14734068/mingw-4-7-2-vs-visual-c-11-0-2012-benchmark 测试中使用了Adobe公司提供的代码包C++ Performance Benchmarks
http://stlab.adobe.com/performance/
MinGW 4.7.2
Total absolute time for uint8_t loop invariant: 83.17 sec
Total absolute time for int16_t loop invariant: 167.16 sec
Total absolute time for uint16_t loop invariant: 111.19 sec
Total absolute time for int32_t loop invariant: 150.49 sec
Total absolute time for uint32_t loop invariant: 142.03 sec
Total absolute time for int64_t loop invariant: 253.23 sec
Total absolute time for uint64_t loop invariant: 213.13 sec
Total absolute time for float loop invariant: 5.41 sec
Total absolute time for double loop invariant: 11.07 sec
Visual C++ 11.0 (2012) Total absolute time for uint8_t loop invariant: 165.57 sec
Total absolute time for int16_t loop invariant: 157.70 sec
Total absolute time for uint16_t loop invariant: 169.43 sec
Total absolute time for int32_t loop invariant: 152.36 sec
Total absolute time for uint32_t loop invariant: 143.81 sec
Total absolute time for int64_t loop invariant: 363.21 sec
Total absolute time for uint64_t loop invariant: 353.42 sec
Total absolute time for float loop invariant: 11.05 sec
Total absolute time for double loop invariant: 55.41 sec
虽然在这个测试里MinGW占优,当然也不能说MinGW就比MSVC好,但肯定能说明的是MinGW绝不是玩具,Qt SDK集成MinGW也不无道理.