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
#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


Messages In This Thread
Internet speed test - by Dario - 02.11.2022, 19:55
RE: Internet speed test - by admin - 03.11.2022, 07:09

Forum Jump: