This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Internet speed test
#1
Hi,
is it possible with a LUA script, make a internet speed test?
Thanks
Reply
#2
You can test download speed like this. But most likely the result will be lower than the available network bandwidth.
Code:
require('socket.http')

ts, tu = os.microtime()
data = socket.http.request('http://speed.transip.nl/10mb.bin')
time = os.udifftime(ts, tu)
speed = string.format('%.2f MB/s', 10 / time)

log(speed)
Reply


Forum Jump: