Skip to content

Commit

Permalink
Update vector.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
wXwSmilewXw committed Nov 22, 2024
1 parent 7b80be6 commit 4c3139e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion LibraryC/Tests/vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,11 @@ int main()
// Performance test
for (int i = 1 ; i <= 10000000 ; ++i)
{
std::cout << vector_size(vector) << std::endl;
vector_resize(vector, i);
vector_set(vector, i - 1, new int(i));
}
std::cout << vector_size(vector) << std::endl;

long long sum = 0;
for (int i = 0 ; i < 10000000 ; ++i) {
sum += vector_get_int(vector, i);
Expand Down

0 comments on commit 4c3139e

Please sign in to comment.