Mobile 2.5G Edge Network MD5 processing file speed

Source: Internet
Author: User

EdgeThe theoretical download is about10kb/sto30kb/sbetween, Testphone model is LGNexus 4, configured as 4 core CPU 1.2Ghz clock, 2G memory, test environment, mobile network signal strength of-69dbm,22ausleft and right (dbm and AUS values both represent the cell phone signal strength, the greater the dbm =-113+2*asu,dbm value, the better the signal, to ensure that the normal call signal strength value is -60dbm (strongest) to -90DBM (The weakest), -69dbm signal strength is good), through the phone rom with the status bar network speed monitoring (refresh rate of 500ms), detection of mobile phone download speed for3kb/sto10kb/s, most of the time stabilized in7kb/s. Browse the web for real-time download speed of3kb/sto8kb/sbetween, most of the time stable around 5kb/s.

The timing method uses the following method, the accuracy is 1ms

function Timedcount () {c=c+0.001 t=settimeout ("Timedcount ()", 1)}

During the actual testing process

MD5 processing file size (KB) 1th Time (s) 2nd time (s) 3rd time (s) 4th time (s) 5th time (s) 6th time (s) 7th time (s) 8th Time (s) Average (s)
0 0.130 0.082 0.076 0.116 0.191 0.152 0.117 0.065 0.116125
1 0.115 0.114 0.080 0.078 0.182 0.127 0.129 0.178 0.1175
10 0.104 0.162 0.166 0.104 0.153 0.096 0.116 0.099 0.125
20 0.129 0.140 0.109 0.113 0.170 0.100 0.102 0.162 0.128125
430 0.121 0.150 0.151 0.156 0.205 0.126 0.129 0.164 0.15025

In the test process, if the MD5 processing string before the start of the timing, after the MD5 processing the end of the string, the timing of the accuracy of 1ms, because the processing time is too short (less than 1ms), this part of the time is not accurate calculation, the time precision will be small then the result is also inaccurate. Therefore, the use of the MD5 processing string before the start of the timer, the server responds back to the end of the way to do. When the MD5 processing file size is 0 o'clock, that is the time to request a response, and then the test process 9.54KB files, 19KB files, 429KB files spent time, each minus the request response time is the time spent MD5 processing this part of the file. In order to ensure the accuracy of the test data, processing the same size file each time the page is reopened. Do not use refresh mode; Close the browser when processing different file sizes, clear the cache, reopen the test

Calculated,

When processing a 1KB size file, the time required to process the 1KB file size is 1.375ms,

When processing a 10KB size file, the time required to process the 1KB file size is 0.930ms,

When processing a 20KB size file, the time required for each 1KB file size is 0.632ms,

0.079ms required per 1KB file size for processing 430KB size files


The above data shows that the larger the MD5 disposable data, the less time it takes to process the data per KB, but for this processing speed, you can ignore the time the MD5 processes the data.

In the actual use of the process, found that the page load is very slow, generally need about 3s can be loaded out of the page, because 2G network speed is slow, loading takes time.

Add:

About the processing speed of data digest algorithm, Baidu Encyclopedia has a relatively authoritative test (test environment PC machine):

The processing of the Data Digest algorithm is very fast, in the general configuration of thePCon-Machine useMD5algorithm, processing1Gthe file data for just20-30seconds (some dedicated devices claim to be up to3gb/seconds) is calculated at the lowest processing speed and requires -seconds to finish processing1Gdata, each processing1kBdata requires only0.029ms.


Mobile 2.5G Edge Network MD5 processing file speed

Related Article

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.