Sorting String Vectors Benchmark: ATL vs. STL. vs. Raw Pointers

Another string benchmark, comparing sorting times of string vectors.

Conclusions

  • In 32-bit builds, ATL’s CStringW performs slightly better.

  • In 64-bit builds, STL’s wstring performs slightly better.

  • With small strings, STL’s wstring performs much better than ATL, thanks to the Small String Optimization (SSO).

  • Raw wchar_t pointers show best performance.

Leave a Reply

Your email address will not be published. Required fields are marked *