Download Latest Version pytestlan.pyc (4.2 kB)
Email in envelope

Get an email when there's a new version of pytestlan

Home
Name Modified Size InfoDownloads / Week
pytestlan008.py 2015-02-21 11.2 kB
readme.txt 2015-02-21 1.6 kB
pytestlan-008-win32.zip 2015-02-21 3.0 MB
pytestlan-007-win32.zip 2015-02-19 2.5 MB
pytestlan.py 2015-02-19 6.1 kB
pytestlan.pyc 2015-02-19 4.2 kB
COPYING 2015-02-19 32.0 kB
Totals: 7 Items   5.5 MB 0
simple command line tool linux, windows
revision 0.0.8 add times details and log file

pytestlan v0.0.8: time benchmark tcp stream send/recive
	
send several trames over TCP lan in AF_INET SOCK_STREAM
and return time elapsed.

   usage: pytestlan ser IP PORT
   usage: pytestlan cli IP PORT nb_of_loop data_size

   example for server: pytestlan ser localhost 50000
   example for server: pytestlan ser 172.168.0.37 50000
   example for client: pytestlan cli 172.168.0.12 50000 1000 100

result log on file pytestlan.log on local lan 100M linux client win7 server
pytestlan.pyc cli 192.168.0.37 50000 (10000 1000)
result log on file pytestlan.log on local lan 100M linux server win7 client
python pytestlan.pyc ser 192.168.0.37 50000 10000 1000

pytestlan.log:
21/02/15 10:42:17 pytestlan v0.0.8, as SERVER
total bytes recived: 10009003, total elapsed time: 24.1515, software time: 0.1746
total elapsed send time: 0.0938(average: 0.0), min: 0.0, max: 0.001
total elapsed recive time: 23.8831(average: 0.0024), min: 0.0, max: 0.0044
21/02/15 10:43:01 pytestlan v0.0.8, as CLIENT
total bytes recived: 38894, total elapsed time: 7.7366, software time: 0.2111
total elapsed send time: 0.0949(average: 0.0), min: 0.0, max: 0.001
total elapsed recive time: 7.4306(average: 0.0007), min: 0.0005, max: 0.0039

please note that times are relevant from program, theses may be not reality:
- when send data on socket, program can continue, but we don't know if data are effectively transmitted.
- when client recive data, we're waitting for server acknoledgement, it can be long, but we'll know that only after.
- ...

Source: readme.txt, updated 2015-02-21