Ever wonder if it would be more efficient to save compressed versions of your strings for storage in databases etc? I wanted to check several variations on this recently, so came up with the following simple test. Just enter the string in the box below, select the compression level, and the answer will be shown. The php function ‘gzcompress’ is used.
The results of last text where as follows
The string was originally characters in length. The new compressed string is characters in length. This is a saving of percent. The conversion took microseconds. Compression level was used.
Your original string
Your compressed string (base64 encoded)