23
edits
Changes
→Comparing STL/PPL to TBB: Sorting Algorithm
Let’s compare a simple sorting algorithm between TBB and STL/PPL.
[[File:SortSerial.png]]
[[File:SortTBB.png]]
[[File:SortSTL.png]]
[[File:ResultsTable.png]]
The clear differentiation in the code is that TBB does not have to operate using random access iterators, while STL’s parallel solution to sorting (and serial solution) does. If TBB sort is run using a vector instead of a simple array, you will see more even times.