mirror of https://github.com/sanderjo/fast.com
Merge branch 'master' of https://github.com/sanderjo/fast.com
commit
2196d13d7a
@ -1,21 +1,53 @@
|
||||
# fast.com
|
||||
Python CLI-tool (without need for a GUI) to measure Internet speed with fast.com
|
||||
|
||||
Example output:
|
||||
|
||||
You need js-beautifier
|
||||
```
|
||||
sudo pip install jsbeautifier`
|
||||
```
|
||||
Loop 0 Total MB 20 Delta MB 20 Speed kB/s: 6933 aka Mbps 56.4
|
||||
Loop 1 Total MB 57 Delta MB 37 Speed kB/s: 12700 aka Mbps 103.3
|
||||
Loop 2 Total MB 65 Delta MB 7 Speed kB/s: 2633 aka Mbps 21.4
|
||||
Loop 3 Total MB 74 Delta MB 9 Speed kB/s: 3300 aka Mbps 26.9
|
||||
Loop 4 Total MB 75 Delta MB 0 Speed kB/s: 33 aka Mbps 0.3
|
||||
Loop 5 Total MB 75 Delta MB 0 Speed kB/s: 0 aka Mbps 0.0
|
||||
Done
|
||||
Highest Speed (kB/s): 12700 aka Mbps 103.3
|
||||
|
||||
Example usage
|
||||
```
|
||||
$ python fast_com_example_usage.py
|
||||
Start speedtest against fast.com ...
|
||||
Result: 53.4 Mbps
|
||||
... Done
|
||||
```
|
||||
|
||||
You need js-beautifier
|
||||
```
|
||||
sudo pip install jsbeautifier`
|
||||
$ python
|
||||
Python 2.7.6 (default, Jun 22 2015, 18:00:18)
|
||||
[GCC 4.8.2] on linux2
|
||||
Type "help", "copyright", "credits" or "license" for more information.
|
||||
>>> import fast_com
|
||||
>>> print fast_com.fast_com(maxtime=6)
|
||||
55.6
|
||||
|
||||
```
|
||||
|
||||
Full verbose:
|
||||
```
|
||||
$ python fast_com.py
|
||||
let's go:
|
||||
javascript url is https://fast.com/app-ab2f99.js
|
||||
token is YXNkZmFzZGxmbnNkYWZoYXNkZmhrYWxm
|
||||
https://ipv4_1-cxl0-c098.1.ams001.ix.nflxvideo.net/speedtest?c=nl&n=15435&v=3&e=1464113040&t=w0W6_z1NZauM49GMaogSm1d-ZTU
|
||||
https://ipv4_1-cxl0-c073.1.ams001.ix.nflxvideo.net/speedtest?c=nl&n=15435&v=3&e=1464113040&t=Gq1NzaBpgH5zbSjLRRm7HlZ-v-o
|
||||
https://ipv4_1-lagg0-c099.1.nyc001.ix.nflxvideo.net/speedtest?c=nl&n=15435&v=3&e=1464113040&t=kSYV0QidXeQe7otelqNwxd05R-w
|
||||
Number of URLs: 3
|
||||
Loop 0 Total MB 5 Delta MB 5 Speed kB/s: 2033 aka Mbps 16.5
|
||||
Loop 1 Total MB 25 Delta MB 19 Speed kB/s: 6533 aka Mbps 53.2
|
||||
Loop 2 Total MB 43 Delta MB 18 Speed kB/s: 6333 aka Mbps 51.5
|
||||
Loop 3 Total MB 51 Delta MB 7 Speed kB/s: 2700 aka Mbps 22.0
|
||||
Loop 4 Total MB 53 Delta MB 2 Speed kB/s: 733 aka Mbps 6.0
|
||||
Loop 5 Total MB 55 Delta MB 1 Speed kB/s: 633 aka Mbps 5.2
|
||||
Loop 6 Total MB 58 Delta MB 3 Speed kB/s: 1100 aka Mbps 9.0
|
||||
Loop 7 Total MB 60 Delta MB 1 Speed kB/s: 500 aka Mbps 4.1
|
||||
Highest Speed (kB/s): 6533 aka Mbps 53.2
|
||||
done
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue