Giter VIP home page Giter VIP logo

fast-cli's People

Contributors

gesquive 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  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  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

fast-cli's Issues

installation error

running go get -u .. on a clean machine yields:

$ go get -u github.com/gesquive/fast-cli
# github.com/gesquive/fast-cli
src/github.com/gesquive/fast-cli/main.go:66:2: undefined: cli.SetLogLevel
src/github.com/gesquive/fast-cli/main.go:68:3: undefined: cli.SetLogLevel

Different Speed Results Browser vs CLI

Forked the repo to add in the Upload feature asked about in #7, and in testing I've been seeing drastic differneces in download speed in browser vs via the cli app.

Example:

Tests taken just a few seconds apart:
CLI: 302.58 Mbps
Browser: 560 Mbps

Wanted to mark this as an issue. I'll be investigating as well.

Option to not show progress

Please add some option, maybe --simple, to not show any progress but just the estimated download speed. I want to use this for a nagios service test and only want the final estimate.

Thanks.

Upload mode?

Upstream now supports testing upload also, could that be added say behind a flag --upload?

Normalized output (allow an option for non-human readable output)

Overview

An option for normalized output in bytes (aka a non-human readable form) would allow for easier machine processing of the output.
For example, normalized results could be trivially plotted over time.

Currently the result is always printed in human readable form, which makes the magnitude of the numeric result change depending on its unit. Machine processing requires post-processing of the result in order to get it back into bps, which is cumbersome to do from the command line. The resultant line also includes additional whitespace prefixing, which makes processing in bash even more cumbersome.

Example

Example of current output:

$ fast-cli --simple
  47.19 Mbps

Example of normalized output:

$ fast-cli --simple --normalized
47190000

Workaround

Current workaround is to use numfmt (available in debian coreutils package):

$ fast-cli --simple | numfmt --from=auto --suffix=bps -d \n
47100000bps

However, this still includes a "bps" suffix which must be removed.

Changes

This would require parsing an additional argument, and adding an extra case in main.go:

fast-cli/main.go

Lines 161 to 163 in 7d2b485

} else {
fmt.Printf("%s\n", format.BitsPerSec(bandwidthMeter.Bandwidth()))
}

Settings to make test longer

Hi,

any chance we could make the test last longer? For high speed connections it gets very inacurate:

[root@haproxy bin]# ./fast-cli -D
Using HTTPS
trying to get fast api token from https://fast.com/app-233b5b.js
token found: YXNkZmFzZGxmbnNkYWZoYXNkZmhrYWxm
getting url list from https://api.fast.com/netflix/speedtest?https=true&token=YXNkZmFzZGxmbnNkYWZoYXNkZmhrYWxm&urlCount=3
urls:
 - https://ipv6-c081-fra002-ix.1.oca.nflxvideo.net/speedtest?c=de&n=24940&v=5&e=1575368342&t=_6HtmgNNziNVhSqCLyoziWVuZO8
 - https://ipv6-c085-fra002-ix.1.oca.nflxvideo.net/speedtest?c=de&n=24940&v=5&e=1575368342&t=E4ThGGZ8eUrO_ogKnCSM7G4vVbY
 - https://ipv6-c147-ams001-ix.1.oca.nflxvideo.net/speedtest?c=de&n=24940&v=5&e=1575368342&t=51DwzqeI43brrdK5pSR0rJayMKY
Got 3 from fast service
Download Size=26214400
Estimating current download speed
   1.64 Gbps - 100.0%
Completed in 0.2 seconds

How can he accurately calcutate 1.65 Gbps with just 26 MB?

Also if repeated over and aover again it jumps from 1.26 to 1.89 Gbps

So my suggestion would be to either add a flag to run a long test (download larger files more than once) or make it more dymanic like fast.com ?

Thanks!

show more info

The client should also have an option for "more info" which shows latency and uplink speed.

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.