Skip to content

Some tests of mine comparing ATL vs. STL string performance.

Notifications You must be signed in to change notification settings

GiovanniDicanio/TestStringsAtlVsStl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

ATL vs. STL String Performance Tests

by Giovanni Dicanio

I wrote some tests for comparing the ATL vs. STL string performance.

This simple C++ code tests inserting strings into an STL std::vector, and then sorting the aforementioned string vector.

Both ATL’s CStringW and STL’s wstring are tested.

Building that code with VS2015 results in the STL’s std::wstring class winning for both the general case and for tiny strings (in this case the STL’s small string optimization (SSO) determines a huge performance increase over ATL’s CString).

The main C++ testing code can be found in the Test.cpp source file.

About

Some tests of mine comparing ATL vs. STL string performance.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages