Open
Conversation
spajic
approved these changes
Mar 22, 2025
Collaborator
spajic
left a comment
There was a problem hiding this comment.
Отличная работа, респект!
| ```bash | ||
| Finished in 6 minutes 36 seconds (files took 7.37 seconds to load) | ||
| 7673 examples, 0 failures | ||
| Line Coverage: 94.95% (12600 / 13270) |
Collaborator
There was a problem hiding this comment.
это 13к строк? выглядит маловато, точно coverage корректнг работает?
| *** | ||
| ### Оптимизация - 2 | ||
| Решил `ударить по площадям` дабы еще меньше сократить время на feedback loop и | ||
| написал скрипт который заменяет все вхождения `create` на `build_stubbed`, если тест проходит, то оставляет изменение. |
Collaborator
There was a problem hiding this comment.
сейчас же ещё AI развился. можно что-то в этом духе сделать с промптом вида попробуй оптимизировать тесты не меняя сути, исходя из вот таких подсказок (create -> build_stubbed, что-то ещё...)
| Top 5 slowest suites (by `let` time): | ||
|
|
||
| Boardgames::RollDice::MegaRoll (.../mega_roll_spec.rb:6) – 00:20.066 of 00:26.192 (401) | ||
| ↳ player – 2666 |
|
|
||
| Промежуточный итог: | ||
| - в последовательном режиме ускорение с `5 minutes 35 seconds` до `4 minutes 20.5 seconds` | ||
| - в параллельном режиме улучшения не произошло: `3 minutes 8.3 seconds` |
Collaborator
There was a problem hiding this comment.
зависит от компьютера, но если комп хороший, то можно и 6+ процессов параллельно
| ``` | ||
|
|
||
| Оптимизировал каждый из этих тестов следующим образом: | ||
| - Строил `flamegraph` отчет по тесту, где видна проблемная фабрика |
| ## TODO: | ||
| Запланировал на следующую неделю продолжить оптимизацию и использовать `stackprof`. | ||
|
|
||
| План построить json отчет с сэмплированием и найти точки роста с использованием `speedscope`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.