Giter Club home page Giter Club logo

html5_speedtest's People

Contributors

enryit avatar moiseevigor avatar peterdavehello avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

html5_speedtest's Issues

Wrong behavior when downloading

When I deployed the speedtest on cloudfactory platform with PHP custom buildpack it shows a strange behavior, download test never ends, it keeps retrying

It took less than 8 seconds to download 10MB of data... Restarting with 20MB!
It took less than 8 seconds to download 20MB of data... Restarting with 40MB!
It took less than 8 seconds to download 40MB of data... Restarting with 80MB!
It took less than 8 seconds to download 80MB of data... Restarting with 160MB!
It took less than 8 seconds to download 160MB of data... Restarting with 320MB!
It took less than 8 seconds to download 320MB of data... Restarting with 640MB!
It took less than 8 seconds to download 640MB of data... Restarting with 1280MB!
It took less than 8 seconds to download 1280MB of data... Restarting with 2560MB!
.
.
.
.

Progress bar on gauge is not correctly show any progress.

Improve perfomance at high speeds

As it was mentioned in previous issues, there's some ploblems when running test at 1Gbit lines.
For example, I use data sizes 32, 64,128 Mbytes for test, and I get only 200Mbit/s download and same upload on local server.
But in speedtest.net flash test I got 600/400 for non-local server,
I think, the main problem is than there's one ajax request, and the whole data transmitted (received) in one request.
I suggest:

  • instead of transmitting all data, for example 32 Mbytes in 1 request, make 2 parallel request, each has 16 Mbytes, or 4 request, each has 8 Mbytes of data. Number of requests can variable, and can be changed in network.js. I think, 2 or more parrallel requeset will give more preformance.

progressbar snaping

This may or may not be a known issue, This happens for me on multiple browsers and multiple systems both on my site copy and your demo copy.

What is happening is the progress bars roll up to about 35-38% and then snap instantly to 100%

I've had a look around main.js but can't find anything that looks like a cause

I create a gif of what its doing for visual reference if needed

progress bar issue

Filtering out spikes

Find a way to filter the results when the "restart" happens because it took less than 8 seconds to finish the download/upload test.

Trouble with download and upload values

see results on your site:

resultsuploed

how the upload number is so huge and also when i try the script on my server. the download bar is just going and going. i want to accomplish same behaviour for download like your demo has. Can you please help?

see results on my server:
image

thank you for the time and effort in advance!

no error validations

os software:
-centos 7.2 (in openvz)
-nginx 1.6.3
-php 5.4.16 with php-fpm

no download result checking.

in chrome console:

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

500 xhr network.js:990

in nginx acces and ssl access logs
"GET /network.php?module=download&size=0&network-1462870505927 HTTP/1.1" 500 5
"POST /network.php?module=upload&size=2097152&network-1462871045121 HTTP/1.1" 413 600

--- nginx error.log:
"PHP Fatal error: Call to undefined function mb_strlen() in /var/www/speedtest/network.php"

client intended to send too large body: 2097152 bytes

in web browser:

It took less than 8 seconds to download 1342177280MB of data... Restarting with 2684354560MB!
It took less than 8 seconds to download 2684354560MB of data... Restarting with 5368709120MB!
It took less than 8 seconds to download 5368709120MB of data... Restarting with 10737418240MB!
It took less than 8 seconds to download 10737418240MB of data... Restarting with 21474836480MB!
It took less than 8 seconds to download 21474836480MB of data... Restarting with 42949672960MB!
It took less than 8 seconds to download 42949672960MB of data... Restarting with 85899345920MB!
It took less than 8 seconds to download 85899345920MB of data... Restarting with 171798691840MB!
It took less than 8 seconds to download 171798691840MB of data... Restarting with 343597383680MB!
It took less than 8 seconds to download 343597383680MB of data... Restarting with 687194767360MB!
It took less than 8 seconds to download 687194767360MB of data... Restarting with 1374389534720MB!
...
It took less than 8 seconds to download 7.555786372591432e+23MB of data... Restarting with 1.5111572745182865e+24MB!
It took less than 8 seconds to download 1.5111572745182865e+24MB of data... Restarting with 3.022314549036573e+24MB!

Finished download, average: NaNMbps

speed testing with ~1Gbit/s

We try to use your app for your 1Gbit's channel, but mathematic of code fails at ~200-250 mbits and upper. We can help you to test it foor higher speeds
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.