Hello, I'm learning Java - after writing some code I've gotten into the habit of asking ChatGPT for improvements without telling me exactly what to change.
I then take each step one at a time and make a commit on Github for it, so I know what I changed and why. If I get stuck, ChatGPT can give me further pointers that I read up on without going straight to the answer.
One of the points I recently received was to re-order some conditionals in an else-if loop, as this apparently improves performance.
To that end, how can I best assess the performance of my code? At the moment, I am running my code through VS Code.
I guess my expected user-flow is:
- Run code
- Am told how long it took to execute etc.
- I make my changes.
- I compare the statistics to see what the improvement was.
Many thanks