In my quick and dirty test, xz produced the best possible compression for tar and other file compression-related tasks under #macOS, #Linux, #BSD and #Unix-like systems. See https://www.cyberciti.biz/faq/how-do-i-compress-a-whole-linux-or-unix-directory/ for more info.

