Search
Search titles only
By:
Search titles only
By:
Forums
New posts
Search forums
What's new
New posts
Latest activity
Feedback
View Statistics
Members
Current visitors
Buy Sell Trade
WTB
Log in
Register
Search
Search titles only
By:
Search titles only
By:
New posts
Search forums
Menu
Install the app
Install
Reply to thread
Forums
Technology
Programming
Need help with a couple of javascript programs
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="blr_p" data-source="post: 1855828" data-attributes="member: 10952"><p>Believe you're right about this and indicated the weakness of this script with uploads .</p><p></p><p>However the download figures are in the right ball park.</p><p></p><p></p><p>Since the purpose is to test streaming ability and files are necessarily on a HDD somewhere i don't think this will work. The download part simulates a download, the upload however should also have something to send but i think that will require local permissions and the user to select a file to send back to the server which will be more complicated.</p><p></p><p>Anyway, the download part is the most important bit here as that is what most people will be interested in.</p><p></p><p></p><p>Are you aware of any php scripts that do the same, i'm not too tied to mongoose, any language or server will do so long as its simple to setup for novices to do some testing.</p><p></p><p>This Node JS script does 3 downloads of increasing size and then calculates an average, same with upload compared to the previous JS. Multiple transfers are more reliable than just one transfer. Here is the script.</p><p></p><p><a href="https://github.com/soterinsights/speedtest" target="_blank">Speedtest</a></p><p></p><p>The demo for the script referenced by the blogger provided <a href="http://cdn.snoj.us/speedtest/speed.html" target="_blank"><u>here</u></a> works perfectly. The problem is i can't get the scripts he put up on github to work. Either there is a configuration problem or the script is buggy</p><p></p><p>There are four branches there, tried with master, nothing, then experimental, also nothing. By nothing i mean the browser does not even get a response from nodeJS. Split seemed to work in the sense i could get the webpage to display but the formatting was all over the place. Reason i picked nodejs was simplicity and cross platform support, tried on XP with the windows 32 bit binary from <a href="http://nodejs.org/download/" target="_blank"><u>here</u></a>.</p><p></p><p>What can be simpler that unzipping the script, drop the nodejs exe in the same folder and run it.</p><p></p><p>Appreciate you taking the time to look at this <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="blr_p, post: 1855828, member: 10952"] Believe you're right about this and indicated the weakness of this script with uploads . However the download figures are in the right ball park. Since the purpose is to test streaming ability and files are necessarily on a HDD somewhere i don't think this will work. The download part simulates a download, the upload however should also have something to send but i think that will require local permissions and the user to select a file to send back to the server which will be more complicated. Anyway, the download part is the most important bit here as that is what most people will be interested in. Are you aware of any php scripts that do the same, i'm not too tied to mongoose, any language or server will do so long as its simple to setup for novices to do some testing. This Node JS script does 3 downloads of increasing size and then calculates an average, same with upload compared to the previous JS. Multiple transfers are more reliable than just one transfer. Here is the script. [URL='https://github.com/soterinsights/speedtest']Speedtest[/URL] The demo for the script referenced by the blogger provided [URL='http://cdn.snoj.us/speedtest/speed.html'][U]here[/U][/URL] works perfectly. The problem is i can't get the scripts he put up on github to work. Either there is a configuration problem or the script is buggy There are four branches there, tried with master, nothing, then experimental, also nothing. By nothing i mean the browser does not even get a response from nodeJS. Split seemed to work in the sense i could get the webpage to display but the formatting was all over the place. Reason i picked nodejs was simplicity and cross platform support, tried on XP with the windows 32 bit binary from [URL='http://nodejs.org/download/'][U]here[/U][/URL]. What can be simpler that unzipping the script, drop the nodejs exe in the same folder and run it. Appreciate you taking the time to look at this :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Technology
Programming
Need help with a couple of javascript programs
Top
Bottom