Game performance loss while using swapfile

Hello everyone and thanks for help in advance,

So, I recently added a swapfile (3GB) on my HDD with intention to increase gaming performance.
I configured it and got it ready for use.
My RAM is 4GB.

There is just one very strange thing happening, my FPS does increase from 40-45 to around 55-60, BUT the game keeps freezing constantly for short amounts of time.

So I am guessing it’s due to “swapping” between RAM and swapfile memory, It might be some kind of delay or something.

Any help/advice would be great, thank you