1
0
Fork 0

Ex7.3 feedback: missed conclusion

This commit is contained in:
Eric Teunis de Boone 2020-07-09 16:45:01 +02:00
parent 599b73b216
commit f0ec419a8a
5 changed files with 13 additions and 2 deletions

3
ex7.3/conclusion.txt Normal file
View File

@ -0,0 +1,3 @@
The timing is much longer for vectors than for a list.
However, I also get a segfault for the vector program.

4
ex7.3/list.time Normal file
View File

@ -0,0 +1,4 @@
real 0m0.028s
user 0m0.021s
sys 0m0.004s

View File

@ -4,7 +4,7 @@ int main() {
std::list<int> l;
// Fill List
for (int i = 0; i < 10000000 ; i++) {
for (int i = 0; i < 10000 ; i++) {
l.push_back(i);
}

View File

@ -13,5 +13,4 @@ int main() {
iter = l.erase( iter );
}
}
}

5
ex7.3/vector.time Normal file
View File

@ -0,0 +1,5 @@
Segmentation fault (core dumped)
real 0m0.927s
user 0m0.349s
sys 0m0.007s