I believe you can do it off the command line relatively efficiently by piping output straight into gzip.
ie) perl -e "print '0' for (1..1000000000)" | gzip > zipbomb.gz
This will create a ~ 1MB file that will expand into something 1000 times its size.