Table 1: push_back results.
Program
Time (new)
Time (old)
push_back
17.1
163
push_back and reserve
8.4
138
Allocate each iteration
8.8
60
Allocate once
2.7
28.6