PDA

Bekijk de volledige versie : How to test http/ftp performance



ghaspias
12-12-2004, 23:07
I wanted to test my wlan speed, so I devised this little script:

#!/bin/sh
# Purpose:
# generate a large stream of data for bandwidth testing.

# send headers:
echo "Content-type: application/octet-stream"
echo "Content-Length: 104857600"
echo ""

# set up a named pipe to write to... discarding any output sent to stderr
mknod myfifo p 2>/dev/null

#write to it, and send it to output with cat
dd if=/dev/zero of=myfifo bs=1024 count=100k 2>/dev/null& cat myfifo
#cat /dev/zero

Now I can initiate a 100 MB download from the router (no usb disk! ;) ), but it seems the troughput is limited by the busybox_httpd performance: it goes to about 80% cpu usage, and I only get about 1MB per second, even on ethernet.
I guess that by ftp I would get better performance, but I don't know how to do that trick on ftp...
Any sugestion how to generate a large stream of data trough ftp?

Antiloop
12-12-2004, 23:29
the best way is to install a FTP server at a PC connected to LAN, as that will be your speed in real life as it will utilize LAN and WLAN ports

brubber
13-12-2004, 01:50
If you are able to get more then 1MB/s for WLAN I would be very interested. AFAIK this about the max you (and I) can get from the WL-500g

Wired LAN should be a lot faster though, around 3.5 MB/s max. Also if you get more overthere or pinpoint the bottleneck a lot of people will be interested!

ghaspias
13-12-2004, 04:05
You mean data served from httpd or busybox_httpd or stupid_ftd?

As far as I know, the limit is in the server (busybox_httpd in my case), because that's what top shows to be using most cpu time.
I didn't notice a real difference when using wired lan.

As a side note, I get about 22 Mbit/s on wlan (about 2.75 MB/s), paired with a wl-107g (11g protection off, burst enabled, no other wireless devices, using 128-bit wep), when transfering to another pc via the router (tested w/ Ixia Qcheck).