I have found some scripts for network bandwidth measurement . One script is Simple javascript to measure the Download and upload. The problem which I facing with this script is it requires to accept customized to post the commands and it depends on the server. It only allows to download from the client browser but it will not be able to upload.
The other script is Node JS , but I am not able to work reliably with it for some reason. The author has given an example which works very well. Any body who is good in JS that can help me