How is it possible to check a users upload and download speed in MB/s ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To time a download you could do something like this in your action:
For timing a user upload you wouldn’t be able to check how long it took the user to upload something strictly in Ruby or Rails since the request is not processed until the user is finished uploading. What you could do is have javascript populate a field (e.g. upload_start_time) when the form is submitted and then subtract the time at the beginning of the action like this:
This won’t be precise but it should give you a good approximation.