Created
January 3, 2022 18:23
-
-
Save acip/73b2547905da8d36c8f454492530f717 to your computer and use it in GitHub Desktop.
Copy Composer vendor folder methods speed comparison
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
# 189M vendor | |
# 3.7s | |
time tar cf - ./vendor --warning=no-file-changed | (cd /tmp/; tar xf -) | |
# 4.7s | |
rsync -aW --no-compress vendor/ /tmp/ | |
# 5s | |
cp -a ./vendor /tmp/ | |
# different drives - on the same drive cp is slightly faster |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment