Sunday, February 25, 2007

Socket performance

Just written a small script to test network/firewall performance in Python, and could not help myself from testing it on both XP and Linux...

OpenSUSE 10.2 performance:
1896.296296 mbit / second

Windows XP performance:
299.645137 mbit / second

(Tested on a dualboot machine.)

So, again the question must be, is this related to Python or the OS?

Well, iperf to localhost on Win XP yields:

C:\Documents and Settings\Martin\Desktop>iperf.exe -c localhost
------------------------------------------------------------
Client connecting to localhost, TCP port 5001
TCP window size: 8.00 KByte (default)
------------------------------------------------------------
[1912] local 127.0.0.1 port 1328 connected with 127.0.0.1 port 5001
[ ID] Interval Transfer Bandwidth
[1912] 0.0-10.0 sec 610 MBytes 511 Mbits/sec


iperf on Linux:

martin@msjdell:~> iperf -c localhost
------------------------------------------------------------
Client connecting to localhost, TCP port 5001
TCP window size: 49.4 KByte (default)
------------------------------------------------------------
[ 3] local 127.0.0.1 port 28150 connected with 127.0.0.1 port 5001
[ 3] 0.0-10.0 sec 3.55 GBytes 3.05 Gbits/sec

No comments: