-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hw04-GC #4
base: master
Are you sure you want to change the base?
Hw04-GC #4
Conversation
Выводы: | ||
1. Наилучший сборщик для данной задачи - G1. При его использовании больше всего количество операций с хранилищем и | ||
время жизни программы до OOM. При этом наименьшее время потрачено на сборки. | ||
2. Serial и CMS примерно одинаковы по параметрам |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не соглашусь... Serial довольно быстро отработал на фоне остальных. Это тоже полезный навык
// printMetrics("ADD", storage.size(), getTimeSpent()); | ||
|
||
for (int i = 0; i < MAX_SIZE; i++) { | ||
storage.add(new String(new char[255])); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spring не лучший выбор для теста. У него несколько специфические отношения с памятью. Лучше взять Integer
|
||
// printMetrics("REMOVE", storage.size(), getTimeSpent()); | ||
|
||
int eraseAmount = storage.size()/10; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
10% под сборку не интересно. Так сборщику работы немного. Давайте хоть половину удалять
@@ -0,0 +1,15 @@ | |||
Тестовое окружение: JDK 9, MacOS 10.13.6, Corei5 1.6 GHz, 8Gb RAM | |||
VM Options: -Xms256m -Xmx256m |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Памяти совсем мало... Так не интересно. Давайте хоть гиг дадим, а то Parrallel просто негде развернуться
Garbage collectors