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.