I did a test a few months back…bored as hades.
First, even outside of this test, I have all my compiling set up to use /tmp.
The time it took to complete this test was irrelevant…the purpose was to fill 32GB of RAM and crash the system.
Put my entire $HOME/.cache in RAM (using ASD)
Compile linux 5.8.0RC1 simultaneously with:
glibc 2.31 and
At no point did I exceed 27GB.
So, for my daily use, swap [file,partition] is unnecessary/unneeded.
Sure, but probably not as pronounced as when swap is on a spinner. It still takes time to do the actual work.