librespeed / speedtest

Self-hosted Speed Test for HTML5 and more. Easy setup, examples, configurable, mobile friendly. Supports PHP, Node, Multiple servers, and more
https://librespeed.org
GNU Lesser General Public License v3.0
12.09k stars 2.18k forks source link

1Gbps Ethernet link testing out over 1Gbps (huh?) #65

Closed BeardedGaijin closed 7 years ago

BeardedGaijin commented 7 years ago

Found your speedtest tool and was very happy seeing as miniookla has been taken down. I have a home gateway with 1Gbps eth ports and two Mac Book Pros each with a 1Gbps Thunderbolt/Ethernet dongles. I am running OSX Sierra on both and they have default network settings (ie MTU = 1500). Speedtest server runs on one and the other runs the speedtest client in Chrome.

When I use the text based examples my 1Gbps link is always reporting more than 1Gbps (like 1015Mbps). When I test the same connection with iperf (command line) I consistently get 940Mbps (TCP). Possible there is some type of rounding error in the speedtest calculations?

Also, when I use the XY graph example I notice that near the end of the test the speed starts to drop down to around 800Mbps on the download but the upload stays right around 1Gbps (which again is a tad high but at least it stays consistent). Perhaps this is due to some apache/php configuration?

Both seem odd which is why I opened this issue. I have a screen shot of each.

Thanks,

-wb

1gbps_eth_lan - graph based 1gbps_eth_lan - text based
adolfintel commented 7 years ago

It's because it's calibrated to compensate the overhead of HTTP+TCP+ETH+ADSL. See the overheadCompensationFactor in the documentation.

BeardedGaijin commented 7 years ago

Thanks.


Will Bober Technical Marketing Engineer mobile +1 770 378 8745 email will.bober@technicolor.com

TECHNICOLOR CONNECTED HOME

From: Federico Dossena notifications@github.com Reply-To: adolfintel/speedtest reply@reply.github.com Date: Tuesday, September 12, 2017 at 3:18 PM To: adolfintel/speedtest speedtest@noreply.github.com Cc: Will Bober Will.Bober@technicolor.com, Author author@noreply.github.com Subject: Re: [adolfintel/speedtest] 1Gbps Ethernet link testing out over 1Gbps (huh?) (#65)

WARNING: This mail is from an external source

It's because it's calibrated to compensate the overhead of HTTP+TCP+ETH+ADSL. See the overheadCompensationFactor in the documentation.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/adolfintel/speedtest/issues/65#issuecomment-328954751, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AebF6M4OVsSUsXaVZKbXi02qNimEXtA0ks5shtj-gaJpZM4PVHek.

adolfintel commented 7 years ago

I'm here if you need help changing it

BeardedGaijin commented 7 years ago

Just reading the docs… what would you recommend for local network… 1Gbps Ethernet testing? I set it to 1 to ignore overheads and still getting over 1Gbps…. And now my graph drops off drastically….

[cid:image001.png@01D32BE0.957221F0]


Will Bober Technical Marketing Engineer mobile +1 770 378 8745 email will.bober@technicolor.com

TECHNICOLOR CONNECTED HOME

From: Federico Dossena notifications@github.com Reply-To: adolfintel/speedtest reply@reply.github.com Date: Tuesday, September 12, 2017 at 3:31 PM To: adolfintel/speedtest speedtest@noreply.github.com Cc: Will Bober Will.Bober@technicolor.com, Author author@noreply.github.com Subject: Re: [adolfintel/speedtest] 1Gbps Ethernet link testing out over 1Gbps (huh?) (#65)

WARNING: This mail is from an external source

I'm here if you need help changing it

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/adolfintel/speedtest/issues/65#issuecomment-328959407, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AebF6G3UYV4U5sbWOzdcDRzjLGAT7uCUks5shtv_gaJpZM4PVHek.

adolfintel commented 7 years ago

I think about 1.03 should be fine. I don't see your image though. Also, consider that gigabit is really fast and an HTTP server may get overloaded.

BeardedGaijin commented 7 years ago

I think that explains the graph dropping off at the end. I can try tweaking apache. Let me try 1.03.

And here is a snap of the example6.html.

[cid:image001.png@01D32BE1.609B9000]

If you don’t get it then git is stripping it out.

-wb


Will Bober Technical Marketing Engineer mobile +1 770 378 8745 email will.bober@technicolor.com

TECHNICOLOR CONNECTED HOME

From: Federico Dossena notifications@github.com Reply-To: adolfintel/speedtest reply@reply.github.com Date: Tuesday, September 12, 2017 at 4:06 PM To: adolfintel/speedtest speedtest@noreply.github.com Cc: Will Bober Will.Bober@technicolor.com, Author author@noreply.github.com Subject: Re: [adolfintel/speedtest] 1Gbps Ethernet link testing out over 1Gbps (huh?) (#65)

WARNING: This mail is from an external source

I think about 1.03 should be fine. I don't see your image though. Also, consider that gigabit is really fast and an HTTP server may get overloaded.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/adolfintel/speedtest/issues/65#issuecomment-328969247, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AebF6JTu_PoftZ9HmJT9tLW1Ixe3tmz6ks5shuRSgaJpZM4PVHek.

adolfintel commented 7 years ago

That's the chart library being shit and slow, makes the browser lag so the reported speed is wrong. Sigh...

BeardedGaijin commented 7 years ago

Am I to be changing speedtest_worker.js? Doesn’t seem my changes are taking effect… do I need to clear my browser cache? Or restart apache? Wouldn’t think I would need to as this is all just loaded content… but I am no code expert.


Will Bober Technical Marketing Engineer mobile +1 770 378 8745 email will.bober@technicolor.com

TECHNICOLOR CONNECTED HOME

From: Federico Dossena notifications@github.com Reply-To: adolfintel/speedtest reply@reply.github.com Date: Tuesday, September 12, 2017 at 4:10 PM To: adolfintel/speedtest speedtest@noreply.github.com Cc: Will Bober Will.Bober@technicolor.com, Author author@noreply.github.com Subject: Re: [adolfintel/speedtest] 1Gbps Ethernet link testing out over 1Gbps (huh?) (#65)

WARNING: This mail is from an external source

That's the chart library being shit and slow, makes the browser lag so the reported speed is wrong. Sigh...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/adolfintel/speedtest/issues/65#issuecomment-328970149, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AebF6BntruvVG1hC040q7dv9Rad_cL3yks5shuUrgaJpZM4PVHek.

adolfintel commented 7 years ago

You edited the example, right? Can you copy the line that starts the test?

BeardedGaijin commented 7 years ago

Sorry… not following… I edited the example html but just to add a graphic and change a title… no code. I have been editing the overheadCompensationFactor value in speedtest_worker.js and then loading the page from my client laptop. Am I missing something?


Will Bober Technical Marketing Engineer mobile +1 770 378 8745 email will.bober@technicolor.com

TECHNICOLOR CONNECTED HOME

From: Federico Dossena notifications@github.com Reply-To: adolfintel/speedtest reply@reply.github.com Date: Tuesday, September 12, 2017 at 4:15 PM To: adolfintel/speedtest speedtest@noreply.github.com Cc: Will Bober Will.Bober@technicolor.com, Author author@noreply.github.com Subject: Re: [adolfintel/speedtest] 1Gbps Ethernet link testing out over 1Gbps (huh?) (#65)

WARNING: This mail is from an external source

You edited the example, right? Can you copy the line that starts the test?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/adolfintel/speedtest/issues/65#issuecomment-328971172, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AebF6KUjGF1gO0aOsmxg-l29cWCEswMmks5shuYYgaJpZM4PVHek.

BeardedGaijin commented 7 years ago

Federico,

Sorry… I am not a software developer… took a bit more reading and reviewing the source to understand. Thanks for your patience. I was making changes to the .js file but didn’t realize that I need to uglify it. =) Once I got node.js installed (like I said not a developer much past some vi-make-makeinstall back in the day) and got uglifyjs on my system I was able to update my speedtest_worker.min.js…. now I am seeing the changes I made in my js file show when I run my speed tests.

I was able to update my overhead value and set the test time to 5 seconds which is sufficient for what I am doing.

Last note… I just opened a git account and not sure if you would want this but for OSX users the uglify command line is a tad different.

sh-3.2# uglifyjs --verbose -c --ie8 speedtest_worker.js > speedtest_worker.min.js WARN: Collapsing xhr [speedtest_worker.js:141,2] WARN: Collapsing speed [speedtest_worker.js:220,19] WARN: Collapsing speed [speedtest_worker.js:337,19] WARN: Collapsing i [speedtest_worker.js:397,12] WARN: Collapsing xhr [speedtest_worker.js:410,2] sh-3.2#

Thanks for a great tool!

-wb


Will Bober Technical Marketing Engineer mobile +1 770 378 8745 email will.bober@technicolor.com

TECHNICOLOR CONNECTED HOME

From: Federico Dossena notifications@github.com Reply-To: adolfintel/speedtest reply@reply.github.com Date: Tuesday, September 12, 2017 at 4:15 PM To: adolfintel/speedtest speedtest@noreply.github.com Cc: Will Bober Will.Bober@technicolor.com, Author author@noreply.github.com Subject: Re: [adolfintel/speedtest] 1Gbps Ethernet link testing out over 1Gbps (huh?) (#65)

WARNING: This mail is from an external source

You edited the example, right? Can you copy the line that starts the test?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/adolfintel/speedtest/issues/65#issuecomment-328971172, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AebF6KUjGF1gO0aOsmxg-l29cWCEswMmks5shuYYgaJpZM4PVHek.

BeardedGaijin commented 7 years ago

Also a browser refresh was required as well… I guess the min.js file was cached.

Thanks again.

-wb


Will Bober Technical Marketing Engineer mobile +1 770 378 8745 email will.bober@technicolor.com

TECHNICOLOR CONNECTED HOME

From: Will Bober Will.Bober@technicolor.com Date: Tuesday, September 12, 2017 at 6:56 PM To: adolfintel/speedtest reply@reply.github.com, adolfintel/speedtest speedtest@noreply.github.com Cc: Author author@noreply.github.com Subject: Re: [adolfintel/speedtest] 1Gbps Ethernet link testing out over 1Gbps (huh?) (#65)

Federico,

Sorry… I am not a software developer… took a bit more reading and reviewing the source to understand. Thanks for your patience. I was making changes to the .js file but didn’t realize that I need to uglify it. =) Once I got node.js installed (like I said not a developer much past some vi-make-makeinstall back in the day) and got uglifyjs on my system I was able to update my speedtest_worker.min.js…. now I am seeing the changes I made in my js file show when I run my speed tests.

I was able to update my overhead value and set the test time to 5 seconds which is sufficient for what I am doing.

Last note… I just opened a git account and not sure if you would want this but for OSX users the uglify command line is a tad different.

sh-3.2# uglifyjs --verbose -c --ie8 speedtest_worker.js > speedtest_worker.min.js WARN: Collapsing xhr [speedtest_worker.js:141,2] WARN: Collapsing speed [speedtest_worker.js:220,19] WARN: Collapsing speed [speedtest_worker.js:337,19] WARN: Collapsing i [speedtest_worker.js:397,12] WARN: Collapsing xhr [speedtest_worker.js:410,2] sh-3.2#

Thanks for a great tool!

-wb


Will Bober Technical Marketing Engineer mobile +1 770 378 8745 email will.bober@technicolor.com

TECHNICOLOR CONNECTED HOME

From: Federico Dossena notifications@github.com Reply-To: adolfintel/speedtest reply@reply.github.com Date: Tuesday, September 12, 2017 at 4:15 PM To: adolfintel/speedtest speedtest@noreply.github.com Cc: Will Bober Will.Bober@technicolor.com, Author author@noreply.github.com Subject: Re: [adolfintel/speedtest] 1Gbps Ethernet link testing out over 1Gbps (huh?) (#65)

WARNING: This mail is from an external source

You edited the example, right? Can you copy the line that starts the test?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/adolfintel/speedtest/issues/65#issuecomment-328971172, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AebF6KUjGF1gO0aOsmxg-l29cWCEswMmks5shuYYgaJpZM4PVHek.

adolfintel commented 7 years ago

Sorry for the late answer but it was night here. You didn't have to go though all that, the speedtest can take custom parameters. You could just have edited the example and replaced w.postMessage('start') With w.postMessage('start {"overheadCompensationFactor":"1.03"}')

BeardedGaijin commented 7 years ago

Haha… well.. yes if I was a coder… I was wondering how to pass parameters but I got it to do what I needed. I took Basic and Fortran in high school but that was over 30 years ago. =)

Now it’s late here (Atlanta, GA).

Thx again and nite.

-wb


Will Bober Technical Marketing Engineer mobile +1 770 378 8745 email will.bober@technicolor.com

TECHNICOLOR CONNECTED HOME

From: Federico Dossena notifications@github.com Reply-To: adolfintel/speedtest reply@reply.github.com Date: Wednesday, September 13, 2017 at 12:34 AM To: adolfintel/speedtest speedtest@noreply.github.com Cc: Will Bober Will.Bober@technicolor.com, Author author@noreply.github.com Subject: Re: [adolfintel/speedtest] 1Gbps Ethernet link testing out over 1Gbps (huh?) (#65)

WARNING: This mail is from an external source

Sorry for the late answer but it was night here. You didn't have to go though all that, the speedtest can take custom parameters. You could just have edited the example and replaced w.postMessage('start') With w.postMessage('start {"overheadCompensationFactor":"1.03"}')

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/adolfintel/speedtest/issues/65#issuecomment-329056185, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AebF6OFlULAQnCWpfjSOwyR2333oPr84ks5sh1s7gaJpZM4PVHek.