

In general, ZRAM performs better than ZSWAP on low-memory devices. Google has used ZRAM on Android for a while. Since you have 4 GB of RAM, ZSWAP accesses the physical drive, which makes it feel a little slower than ZRAM.
Using Debian 13 on an Intel Celeron, in case that should be relevant.
I installed a dual boot of Linux Mint and Endeavour OS on my weak mini PC [Celeron 1007U, 8 GB RAM, and 500 GB HDD]. I use ZSWAP on Linux Mint and ZRAM on Endeavour.
While KDE on Endeavour OS uses 700-900 MB of memory after booting, it feels slow before reaching the desktop screen, and the HDD LED constantly blinks. Cinnamon on Linux Mint uses 1 GB of memory after booting, but feels much faster with less HDD LED blinking.
I think the situation is a bit more complex on a Linux desktop than on a Linux server. Depending on your hardware configuration, Linux distro, and DE/WM, the performance of ZSWAP and ZRAM may be affected.
























As I said, ZRAM performs better on low-memory devices. A device with 4 GB of RAM should be considered low by today’s standards.
On devices with 8 GB of memory or more, you won’t see any difference in performance. In certain cases, ZRAM may be exhausted due to low memory.
I ran into this issue with dBeaver [a java applet database manager], it would crash after a while. Also, compiling from the source code may exhaust ZRAM since there’s no physical swap, just like Chris said, you’ll need OOM killer to avoid these situations.