I wanted to test my wlan speed, so I devised this little script:
Code:
#!/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?