Zipping a file will generally take more time than deleting it, often much more time, especially if the file is large. But this has nothing to do with Perl, this will also be true if you doing it manually under your shell (or under Windows, for that matter).