add timing to compress and decompress