How to write the transfer speed of the server to the client?

Source: Internet
Author: User
How to write the transfer speed of the server to the client?

I wrote the app client PHP server made a request and then the server sent a 100kb picture to the client for 2 seconds ... My home speed is 4 trillion ah I'm depressed I want to write the transfer speed I want to see which part of the question


Reply to discussion (solution)

The client uploads the image to the service side?

There are many factors that affect the transmission speed, the specific situation should be analyzed
According to the phenomenon you describe, provide several facts for reference
1, the current PC installed hundred Gigabit Network card, its downstream (server to local) speed is 100M bit, and the upstream speed is 10M bit, conversion to byte is 1M bytes
That means up to 1m/s at upload.
2, your 4M speed, should be the community broadband it? Using the PPOE protocol, the upstream speed is generally 640K bit, that is 64k/s
Your 100k picture takes 2 seconds, that is, 50k/s is good.

If you have the conditions, you can apply for fiber-optic residential broadband, up and down the speed can reach 10M.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.