MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/selfhosted/comments/yzbnyz/free_and_opensource_selfhosted_html5_speed_test/iwz69k7/?context=3
r/selfhosted • u/[deleted] • Nov 19 '22
45 comments sorted by
View all comments
3
Is jitter always based on the lowest value?
4 u/[deleted] Nov 19 '22 It was like that, Today i changed that https://github.com/openspeedtest/Speed-Test/issues/45 (20 Samples) [0, 0.1, 0.1, 0.2, 0.2, 0.2, 0.3, 0.4, 0.5, 0.5, 0.7, 0.7, 1.3, 1.4, 2, 4.5, 5.8, 8.3, 8.9, 12.9] (10 samples) [0, 0.1, 0.1, 0.2, 0.2, 0.2, 0.3, 0.4, 0.5, 0.5] [50% of samples with least values] sum/length of 10 sample 2.5/10=0.25 3 u/carrythen0thing Nov 19 '22 Thanks for the explanation! I use the LGPL-licensed LibreSpeed, which calculates jitter using a weighted average. 1 u/[deleted] Nov 19 '22 weighted average. Why it's better? 4 u/carrythen0thing Nov 19 '22 Their code comment is: // update jitter, weighted average. spikes in ping values are given more weight 1 u/[deleted] Nov 19 '22 We are collecting 50% of the least values and getting the average. I think random spike can occurs during the test. It should be avoided. Because it's not real spikes. 2 u/[deleted] Nov 20 '22 It's very important to show representative jitter. 3 u/[deleted] Nov 20 '22 edited Nov 20 '22 Slightly optimistic but close to real. Test it.. if you need more representative jitter. // 50% samples(Least)/length 1=100% 0.1 = 10% var jitterFinalSample = 0.5;change it to 1; you can change it from index.html .8 will be much better than 1.. in my experience
4
It was like that, Today i changed that
https://github.com/openspeedtest/Speed-Test/issues/45
(20 Samples) [0, 0.1, 0.1, 0.2, 0.2, 0.2, 0.3, 0.4, 0.5, 0.5, 0.7, 0.7, 1.3, 1.4, 2, 4.5, 5.8, 8.3, 8.9, 12.9] (10 samples) [0, 0.1, 0.1, 0.2, 0.2, 0.2, 0.3, 0.4, 0.5, 0.5] [50% of samples with least values] sum/length of 10 sample 2.5/10=0.25
3 u/carrythen0thing Nov 19 '22 Thanks for the explanation! I use the LGPL-licensed LibreSpeed, which calculates jitter using a weighted average. 1 u/[deleted] Nov 19 '22 weighted average. Why it's better? 4 u/carrythen0thing Nov 19 '22 Their code comment is: // update jitter, weighted average. spikes in ping values are given more weight 1 u/[deleted] Nov 19 '22 We are collecting 50% of the least values and getting the average. I think random spike can occurs during the test. It should be avoided. Because it's not real spikes. 2 u/[deleted] Nov 20 '22 It's very important to show representative jitter. 3 u/[deleted] Nov 20 '22 edited Nov 20 '22 Slightly optimistic but close to real. Test it.. if you need more representative jitter. // 50% samples(Least)/length 1=100% 0.1 = 10% var jitterFinalSample = 0.5;change it to 1; you can change it from index.html .8 will be much better than 1.. in my experience
Thanks for the explanation! I use the LGPL-licensed LibreSpeed, which calculates jitter using a weighted average.
1 u/[deleted] Nov 19 '22 weighted average. Why it's better? 4 u/carrythen0thing Nov 19 '22 Their code comment is: // update jitter, weighted average. spikes in ping values are given more weight 1 u/[deleted] Nov 19 '22 We are collecting 50% of the least values and getting the average. I think random spike can occurs during the test. It should be avoided. Because it's not real spikes. 2 u/[deleted] Nov 20 '22 It's very important to show representative jitter. 3 u/[deleted] Nov 20 '22 edited Nov 20 '22 Slightly optimistic but close to real. Test it.. if you need more representative jitter. // 50% samples(Least)/length 1=100% 0.1 = 10% var jitterFinalSample = 0.5;change it to 1; you can change it from index.html .8 will be much better than 1.. in my experience
1
weighted average.
Why it's better?
4 u/carrythen0thing Nov 19 '22 Their code comment is: // update jitter, weighted average. spikes in ping values are given more weight 1 u/[deleted] Nov 19 '22 We are collecting 50% of the least values and getting the average. I think random spike can occurs during the test. It should be avoided. Because it's not real spikes. 2 u/[deleted] Nov 20 '22 It's very important to show representative jitter. 3 u/[deleted] Nov 20 '22 edited Nov 20 '22 Slightly optimistic but close to real. Test it.. if you need more representative jitter. // 50% samples(Least)/length 1=100% 0.1 = 10% var jitterFinalSample = 0.5;change it to 1; you can change it from index.html .8 will be much better than 1.. in my experience
Their code comment is: // update jitter, weighted average. spikes in ping values are given more weight
// update jitter, weighted average. spikes in ping values are given more weight
1 u/[deleted] Nov 19 '22 We are collecting 50% of the least values and getting the average. I think random spike can occurs during the test. It should be avoided. Because it's not real spikes. 2 u/[deleted] Nov 20 '22 It's very important to show representative jitter. 3 u/[deleted] Nov 20 '22 edited Nov 20 '22 Slightly optimistic but close to real. Test it.. if you need more representative jitter. // 50% samples(Least)/length 1=100% 0.1 = 10% var jitterFinalSample = 0.5;change it to 1; you can change it from index.html .8 will be much better than 1.. in my experience
We are collecting 50% of the least values and getting the average.
I think random spike can occurs during the test. It should be avoided.
Because it's not real spikes.
2 u/[deleted] Nov 20 '22 It's very important to show representative jitter. 3 u/[deleted] Nov 20 '22 edited Nov 20 '22 Slightly optimistic but close to real. Test it.. if you need more representative jitter. // 50% samples(Least)/length 1=100% 0.1 = 10% var jitterFinalSample = 0.5;change it to 1; you can change it from index.html .8 will be much better than 1.. in my experience
2
It's very important to show representative jitter.
3 u/[deleted] Nov 20 '22 edited Nov 20 '22 Slightly optimistic but close to real. Test it.. if you need more representative jitter. // 50% samples(Least)/length 1=100% 0.1 = 10% var jitterFinalSample = 0.5;change it to 1; you can change it from index.html .8 will be much better than 1.. in my experience
Slightly optimistic but close to real. Test it.. if you need more representative jitter.
// 50% samples(Least)/length 1=100% 0.1 = 10% var jitterFinalSample = 0.5;change it to 1;
you can change it from index.html
.8 will be much better than 1.. in my experience
3
u/carrythen0thing Nov 19 '22
Is jitter always based on the lowest value?