Speedtest CLI. Run speedtest on pfSense box
-
@johnpoz said in Speedtest CLI. Run speedtest on pfSense box:
JFC I5-7600 cpu for a "router" That is nuts for any sort of soho network... That cpu has a tdp of 65W.. Why would anyone want such beast to firewall/route.. Just sucking juice!
I have no idea who you're talking about
-
@RaidArray because this is for CLI. @aln is a GUI. It needs its own thread for updates, support, contribution, and feature requests. Each separate item should have its own thread. Also, it helps with advertising.
-
@jimp said in Speedtest CLI. Run speedtest on pfSense box:
That looks nice, though it's usually better to test bandwidth through the firewall and not from the firewall itself. pfSense has been optimized to work in a routing role, so sometimes you might see reduced numbers when pfSense itself is acting like the client.
Point-
On my "made to be a router" Watchguard XTM5 box with a 4 core 3ghz proc running pfsense I only see about 50% of my speed on the router itself. But full speed + on the LAN.I still like this idea and plan on using it on some remote sites where I have no computer on site to access and test.
-
Hi All,
Hearing the comments here I did a complete rebuild.
The new version on github is using Netflix'es fast.com and not Ookla's speedtest.net, it is single threaded and should be easier on lesser cpus.
It also does not depend on the speedtest-cli package.
Feedbacks are welcomed. -
Yeah that is even more of difference..
Let me say this once again!!! Speed test on "routers" is not valid... You with your I5 freaking ROCKETship desktop/server box is not a "router".. Even if your using it as one ;)
So while such test have use, its going to cause users to question.. Why is pfsense slow... Has been doing so for years.. Ever since the first time the php client was shown that it would run on pfsense.
-
@aln and everyone -
Has anybody tried using the official Ookla Speedtest.net FreeBSD CLI package on pfSense instead of the third party speedtest-cli package?
https://www.speedtest.net/apps/cli
I'm curious if this could just be a drop in replacement or has the potential to cause issues. Thanks in advance!
-
@aln you really need to start a new thread
-
@aln After a few runs, new speedtest seems not to report new values. I see it generates traffic, seems to complete but no new output is reported. Tried removing it and re adding and it comes with same results, even without running.. Any ideas?
-
@tman222 i tried it on osx, seems to lock my computer. also if you are on freebsd on non x86 architecture then you're out of luck.
-
@netblues difficult to say. Do you get any errors on your browser's dev tools? can you maybe paste the request and response that the widget generates?
-
@johnpoz got it, it doesn't work for you. Did you notice that a widget has an uninstall (-) button?
-
@aln After some fiddling, I thing the problem is on how you interpret upload speed
It is completely wrong. It reports 26.6 when both trafic graphs AND running fast from browser reports upload around 4.
For test, I just inserted an$upload = number_format($info['upload_content_length'] * 8 / $info['total_time'] / 1024 / 1024, 2);
$upload = 5;effectively ovewriting the result, and got it reported after a speed test
Download speed and everything else seems to work(and the time is completely wrong too, but thats minor)
-
@netblues thanks for the feedback!
I don't think that the calculation is wrong cause thats also how download is being calculated. I suspect that I push a too large upload that might be rejected by the server.
Can you check if the latest version works for you? -
@aln Well, its closer, at 6.6 but still not the real one.
Also it took ages to complete, and fails to keep the download steady too.
The cli version produced far more better results on the same network/hardware..
-
@netblues I think you are right, I'll scrap this version.
-
This is a dual core, Intel(R) Celeron(R) CPU N3050 @ 1.60GHz
Current: 1600 MHz, Max: 1601 MHz
2 CPUs: 1 package(s) x 2 core(s)
AES-NI CPU Crypto: Yes (active)speedtest-cli on pfsense and via browser is close too
1st peak is with cli, 2nd via browser
Hosted by Vodafone - Panafon S.A. (Athens) [0.97 km]: 36.415 ms
Testing download speed................................................................................
Download: 41.65 Mbit/s
Testing upload speed......................................................................................................
Upload: 4.08 Mbit/sand web based below
-
@aln said in Speedtest CLI. Run speedtest on pfSense box:
it doesn't work for you. Did you notice that a widget has an uninstall (-) button?
It works for me.. Your code is fine, an its great work.. My point is this not something that is needed or even wanted by anyone that actually runs a router.. And doesn't run a desktop sucking 95 watts sitting there idle as their "router"
Your point of testing it at the router makes more sense because it removes stuff that could slow down in your network is not a valid logic..
When you do a speed test, you should testing from your client to test your "network" not just pfsense.. Pfsense is meant to route/firewall traffic - not be a client..
I have made my point clear.. And here is what I am going to do.. Every single post that comes up that I come across asking about why is pfsense slow I am going to forward to you to answer ;) hehehe
@netblues your on dialup.. So yeah its going to be fine.. 40mbps?? That is an internet connection? Or your hot spotted off you phone on 3g?
-
@johnpoz This is a home lab which I use for tests, and no, its not dialup :P
Obviously, a dual core n3050 can handle 50/5 speedtests at ease.Getting back to the original speedtest@pf debate, consider sitting at the porch, and then the youngsters complain about games lagging.
Wifi is at limits, so instead of getting up and head to the home data center management room, one logs in to pf from phone. And since speed test from mobile wifi won't cut it, speedtest widget will tell you if you really need to get up.
Now I could run ssh terminal on android and use a bluetooth foldable keyboard and......
No.ps If speedtest widget is not available on a default pf install, and one has to find and install it by reading the forum, then all is good. I doubt anyone will ever complain about speed. At least not from the widget. I even bet a few beers on that.
-
@johnpoz your point of view is very narrow. There are different users out there with different needs.
Also if they came that far to use pfSense then probably not all of them are "fools". -
@aln agree totally, but at the time it gave me what I needed so thought I'd share it with the community. didn't think it would divide the community in the way it did. bottom line in my book is that if you are intelligent enough to find the solution to a problem you have you should be intelligent enough to fault find it. I'm not impressed with the negativity coming through some of the posts on this thread.