diff --git a/demo_superviseur.py b/demo_superviseur.py index 2d365c0..5f90072 100644 --- a/demo_superviseur.py +++ b/demo_superviseur.py @@ -23,7 +23,9 @@ super = client.protocol.superviseur rtt_l = [] rtt_s = [] -for n_rep in range(1000): +N_rep = 10000 + +for n_rep in range(N_rep): # print('rep{}'.format(n_rep)) response = client.get(path) rtt_l.append(super.RTT_L) @@ -41,10 +43,9 @@ axs[0].hist(super.RTTs, 100, density=True) axs[0].set_xlabel('RTT (s)') axs[0].set_xlim(left=0) -# axs[1].step(range(1000), super.RTTs, where='post', label='$RTT$') -axs[1].plot(rtt_l, label="$RTT_L$") +# axs[1].step(range(N_rep), super.RTTs, where='post', label='$RTT$') axs[1].plot(rtt_s, label="$RTT_S$") - +axs[1].plot(rtt_l, label="$RTT_L$") axs[1].set_ylim(bottom=0) axs[1].set_xlabel('Nombre de message')