Stepper motor slows down with analog read

Can I assume that the device connected to A2 is a potentiometer? So it is human controlled? Humans aren't very fast so you really only need to read the pot 20-50 times a second. Use a millis() timer to only take a pot reading and print it every 20ms to 50ms.

Speed up your Serial baud rate. 9600 is very slow.

Non-blocking (millis()) timing tutorials:
Blink without delay().
Beginner's guide to millis().
Several things at a time.

Read the forum guidelines to see how to properly post code and some good information on making a good post.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.

You can go back and fix your original post by highlighting the code and clicking the </> in the menu bar.
code tags new