My render distance is set to 8 and I don’t use any shaders, I also lowered my settings but it didn’t make a huge difference. Usually when I play, I don’t have anything running in the background.You should be getting way more FPS than that.
Especially on Optifine.
What is your render distance set to?
Any shaders?
Try lowering other settings like particles,quality,etc..
Also disable any background apps.