Last active
August 11, 2016 23:35
-
-
Save piaoger/74748382f7e0635267da096462aff96b to your computer and use it in GitHub Desktop.
zippint time test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for compress time and size, | |
# it seems that we can get the balance with "-1", i.e compress faster | |
ZIP_FOLDER="Utils./Users/piaoger/Box/*" | |
ZIP_OUTPUT=output.zip | |
FROM_TIME1=$(date) | |
zip -r output.zip Utils./Users/piaoger/Box/* | |
TO_TIME1=$(date) | |
A=$(ls -lrt | grep output.zip) | |
FROM_TIME2=$(date) | |
zip -r -0 output.zip Utils./Users/piaoger/Box/* | |
TO_TIME2=$(date) | |
B=$(ls -lrt | grep output.zip) | |
FROM_TIME3=$(date) | |
zip -r -1 output.zip Utils./Users/piaoger/Box/* | |
TO_TIME3=$(date) | |
C=$(ls -lrt | grep output.zip) | |
FROM_TIME4=$(date) | |
zip -r -9 output.zip Utils./Users/piaoger/Box/* | |
TO_TIME4=$(date) | |
D=$(ls -lrt | grep output.zip) | |
echo "compile start: " $FROM_TIME1 | |
echo "compile end: " $TO_TIME1 | |
echo "compile size: " $A | |
echo "compile start: " $FROM_TIME2 | |
echo "compile end: " $TO_TIME2 | |
echo "compile size: " $B | |
echo "compile start: " $FROM_TIME3 | |
echo "compile end: " $TO_TIME3 | |
echo "compile size: " $C | |
echo "compile start: " $FROM_TIME4 | |
echo "compile end: " $TO_TIME4 | |
echo "compile size: " $D | |
echo "compile end" | |
# We can also append new stuff to package with --grow option | |
# Even with different compression level | |
zip -r -0 package.zip ./18e3ed47_8957_4f4a_bc14_34a78a75257c | |
zip -g -1 package.zip scene.vrscene |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment