Travail sur le fichier git_update.sh et un fichier de tests associé
Go to file
2024-07-03 14:54:44 +02:00
tests-manuels initialisation 2024-06-24 18:09:48 +02:00
.~lock.notes.odt# initialisation 2024-06-24 18:09:48 +02:00
.gitignore avec un .gitignore 2024-06-25 15:57:35 +02:00
creation_repo.sh remote local 2024-07-03 14:51:49 +02:00
git_update.sh fichier git_update.sh restauré 2024-07-01 09:30:05 +02:00
notes.odt local remote 2024-07-03 14:54:44 +02:00
performance_tests.sh remote local 2024-07-03 14:51:49 +02:00
readme.md performance_tests.sh et readm.md mis en forme 2024-06-28 15:45:45 +02:00
test_git_update.sh local remote 2024-07-03 14:54:44 +02:00

Testing of differeng cloning methods

Our objective is to find the least-consuming method in terms of memory and bandwidth resources. We are interested in cloning one specific state of the repository. We are not interested in its history or the possibility to change it from the server where it has been cloned. The first step is done by the script creation_repo.sh which creates an adequate repository to test on. The testing in itself is done by performance_tests.sh.

Creation of the test repository

The script creation_repo.sh creates a performance_testing repository. NAME creation_repo.sh SYNOPSIS creation_repo.sh [SSH LINK to en empty remote git repository] DESCRIPTION This script is in writing. It creates a git repository in the current directory, linked to a remote passed as argument. Everything is up-to-date between the remote and the local versions. The data stored is generated randomly in binary. OPTIONS -h prints the help.

Here is a history of the commits: ### branch main commit f665df376fa57880b5edfb85b156c7703601980e (tag: start) sample0 1M created commit a17812c13a69986c1103e0d06ff0a0b59a3a4a63 sample1 1M created commit bd9d8e9421c3253abba47b9def480f1b2d595568 sample3 1M created commit 0e599f3b47bf3200dc6e2734df0c6e655c0d8dde sample4 5M created commit effb3cab262e6e1e8242e524e1862b6f77d7ad38 sample4 5M deleted ### branch secondary commit 643cdbbda81f4c4f26513b9d6ecca3d436e97040 sample0 1M created commit b4bac1f2a2c1b4ab325751748b9496cccc65b082 sample1 1M created commit e69695f08e79c160045b3319297597a9d8c9b513 sample2 500K created

Which gives us the latest state:

branch main

sample0 1M sample1 1M sample3 1M ### branch secondary sample0 1M sample1 1M sample2 500K

Testing

The script performance_tests.sh measures memory and bandwidth usage of different git cloning scenarii. NAME performance_tests.sh SYNOPSIS performance_tests.sh [SSH LINK to en empty remote git repository] [number] OPTIONS -a excutes all the tests. -n [number] executes test [number] -h prints the help. DESCRIPTION This script is in writing. It allows you to measure memory and bandwidth usage for different method of cloning on the remote repository given. TEST0: classic cloning TEST1: --single-branch