No SDK statistical tools are required, so brother earned an iPhone 6.

Source: Internet
Author: User

LZ bet with keyou yesterday that it could solve the slow loading speed of his new App Browser game within an hour. The bet is, roar, an iPhone 6 ...... Although Mu youjia, he is satisfied!

He didn't even think that the cause of the loading speed would be related to the Statistical Code, but the kp747 used by his brother had a sharp statistics on the mobile end. I did a small experiment with a picture showing the truth, post as evidence. @ Fei yu, is brother's fruit 6 already on the road?

 

This experiment uses the built-in developer tools in the browser to calculate the TA statistics of a q. The cxzz statistics of the great god compared the performance of kp747, mainly from the traffic consumption and the number of network requests, this is a horizontal comparison with the three main aspects of JS operations.

 

The experiment code is as follows:

<HTML>

<Head>

</Head>

<Body>


<! -- Kp747 statistical code -->

<SCRIPT type = "text/JavaScript">

Document. Write ("<SCRIPT src = 'HTTP: // c.kp747.com/k.js? Id = 0130c0a08092f7 & ref = "+ encodeuricomponent (document. referrer) +" '\> </script \> ");

</SCRIPT>


<! -- Taqq statistics code -->

<SCRIPT type = "text/JavaScript" src = "http://tajs.qq.com/stats? SID = 3711508 "charset =" UTF-8 "> </SCRIPT>


<! -- Cnzz> statistical code -->

<SCRIPT src = "http:/s95.cnzz.com/z_stat.php? Id = 1253196984 "Language =" JavaScript "> </SCRIPT>


</Body>

</Html>



Tutorial steps:

1: Save your code to Your webpage file, such as test.html.

2: Open test.html with a browser. I use Google's Chrome browser. Of course, I can also use Firefox or a later version of IE.

3: Press F12 in the browser. The developer tool window is displayed. Select the network column.

4: Press F5 in the browser and refresh the current page. Then, you can view the network Request status of each statistical code under the network.

See Appendix 2.

After accessing the experiment code above, the evaluation result is LiLi:

See Appendix 3.

 

Comparative analysis:

See Appendix 4.

1: Traffic consumption comparison

Kp747 collects the download traffic as 0.15k, And the legendary Q and cxnn downloads the traffic of 10 KB each time, this makes friends who are still using 2G networks have to feel ashamed of this ......

2: Network request comparison

Kp747: 1 request, TA: 2, and cxnn: 3

3: Execute JS operations in Statistics

Kp747 does not execute complex JS Code on the browser side through background analysis, while a Q's ta statistics and cxnn need to download nearly 10 KB of JS Execution Code, it will indeed increase the burden on mobile apps and the probability of program crashes. It was found that brother was also drunk.


This article from the "little white blog" blog, please be sure to keep this source http://9448698.blog.51cto.com/9438698/1559786

No SDK statistical tools are required, so brother earned an iPhone 6.

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.