Skip to content
Extraits de code Groupes Projets
Valider b9e9a855 rédigé par Samuel de Meester de Ravestein's avatar Samuel de Meester de Ravestein
Parcourir les fichiers

added file for the performance tests

parent ce6affa4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
"""
Return a dictionary of the different values found in the receiver stats (.csv) file
"""
def read_receiver_stats(filename):
dictionary = {}
with open(filename, 'r') as f:
for line in f.readlines():
key, value = line.split(":")
dictionary[key] = int(value)
return dictionary
"""
Return a dictionary of the different values found in the sender stats (.csv) file
"""
def read_sender_stats(filename):
dictionary = {}
with open(filename, 'r') as f:
for line in f.readlines():
key, value = line.split(":")
dictionary[key] = int(value)
return dictionary
#!/bin/bash
# File use for the test of performance
file_to_transfer='tests_files/smile.png'
# Chosen parameters for the test of performance
ERROR_RATE=20
CUT_RATE=30
DELAY=0
JITTER=0
LOSS_RATE=25
if [ ! -d "tests_logs/performance_tests/" ]; then
mkdir 'tests_logs/performance_tests/'
fi
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter