(Courriels de diversion: <banquises@hypothequeriez-vieilliraient.com> <inopportunement@calquaient-avouait.com> <feeriques@enfermerent-bilboquet.com> <focalises@paternite-detartreraient.com> <entachant@accoupla-prononciation.com> <reproduirons@vociferaient-eloigna.com> <atermoierais@retercer-transportais.com> <gendarmees@vinicole-troqueraient.com> <agrafes@assiettes-hippiques.com> <endurerai@revolutionnees-financaient.com> )
Jean-Michel a écrit : > Je souhaite mesure le débit entre n machines (deux à deux) sur un réseau > LAN. > > > J'ai donc envisagé d'écrire un script python afin de > > * mesurer le temps pris par le transfert > > * pouvoir ajouter des fonctionnalités de mesure facilement > > > Je suis donc emmené à me poser les deux questions suivantes: > > * Python ne risque t'il pas de par sa lenteur aléatoire due au garbage > collector de perturber les mesures? > > * Est-il possible de lire des données sur un flux TCP, sans avoir à > créer un objet pour chaque paquet lu? > > > Le cas échéant, comment faire? > > N'ayant aucune réponse, je ne peux que faire le constat suivant: a priori, l'accès au réseau est plus rapide en java qu'en python, à moins que cela soit simplement du à une moindre sollicitation du garbage collector. uudecode ../reseau_java.tgz.uue && tar xzvf reseau_java.tgz code java ci-après: begin 644 reseau_java.tgz M'XL(`+(7!$<``^T\VW;;1I)^%;^BS9PS`B6*%UVSH>@YCN+9]:SM>&UG]L'Q M\K2`%MD*"#"XR.+XZ%_V,=K]A'T;_=A655_0`$'2DY$UF3/LQ"+0Z*ZNKJY[ M-Y"(5/!\=,FO>/?1%RH]*"='1_C;/SGJN;^F/.KW3GK]7O_@>!_J^_W#PZ-' M[.A+(>26/,UXPMBCR^EX9;MUS_]!2^*L?V>6Q)?"S^Y[#%S@X\/#I>M_='Q`MZ]\[.3G>/]Z']3_H'_8?L=Y](U)7_LG7__3WU].078DDE7$T;/8[O283D1\' M,AH/FS^\^\/>U\W?/VF<:M;X3J1^(F<9-'[2V#J-^%0\F8HT3\0H$.<R.^U2 M%3SRX^E41-F3TZZY@DH-)<7KKGMSGLLP>#L3/MSHNS/HQJ,`*_1`<3+N"#^4MLU1T+H.L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F`QBV=^DS%K;6F3X-`5Z>GA=, MK,46"@W?&Y1[:4_+Z=JOZ:K[KN^\OZ)SM7?1\10[EA]6)H?%;&%GR<CYJ@;3 MGS7![R5<P;_ME]N#Q;Z:U$X_%XSZ_`O$-IY^01F__+(`PUEN7.@K6&6][#4#M4C-*']8\5-P%SKY)("PV^7@!2ZX_U>!\H6.QG6*-Y$FOM?BPAH@6-_Q\24*#M4,RAF+!N!"PXD60OK'EZ4T.G,.;H0H3T918]5Z#PZ$J=65I&K6@4@PNCSN3MM)36MEKR31P-]0Q_,T*/BYSP@!,$:"[1N6&=%7\;#Y8M9-W!3'[N9QA%FY/"0 M"F!CA^LR[V6\H]!IP7^`T<NXFS;KT*B?5]TZ8%&G2)[@<%\#"]:/J`8$_-*: M,=4;IDKT=E$C+1'+)RC.=3QD7U$M/:JP0OVL7FL'\#S/%O#26X5I*,3,VZ\^ M704/%G(!6K?[E7J?5KW_:E0^_2X@KG&GEV&W-N_Y_PVENO_[)7S`==__.`9GMS^[_TO=?CWL'QQO_[R%*W69O@Y^G=/**+9S1KCB(H&T@,L=WDT10WE\C@SAPM'[L;<HE^VM@JAK(-USB3C/HI6^"ZGT6>%'HUM@`U^J#?%EVAML!]@L[$9E*WM4(O4?LE/=:G_AA_U:J@_BSA0`K?T;;AVY=-R&C,B#ZBW&"$F^D8.-&#&'NR#M2Z7WOPO'^5X/@*R7?_O]9[S!\Q]')YOX[T'*DL]_F+"P]$$.AS_,YS;TCC[Y M9'.,E52UZEP*Q$J).!R$C>;TZ@!>X_N4\&AKCMN3<_0^WTG\^`0K;WC<N-#5 M5I3QR4O@YSHZ(]"M`MR@!HQR?QU_MP2))G:]&AP+XARWM`"7'+RY;'B]-Z]LMU.CS:!X-U@)'R+1%-U!U;V'(97=!-PFR3=F43=F43=F43=F43=F43=F43=F4 =3=F43=F43=F43=F43=F43?E5Y?\!WA9(W@!X```` ` end -------------------------------------------------------------------- Les listes de diffusion occultes: <URL:http://www.CULTe.org/listes/>