Task 1
In the program below, a BigArray
with 10 billion entries will be pushed to an std::vector
. Compile the program and measure its performance. The program requires that you compile this program for 64-bit.
Task 2
Extend BigArray
with move semantic and measure the performance once more.
How big is the performance gain?
Get hands-on with 1400+ tech skills courses.