Page Performance Test 2-showslow + yslow Environment Construction

Source: Internet
Author: User
Tags mysql command line website performance

The previous section describes page performance testing and two testing tools. The page test tool described in this section is embedded into the browser as a browser plug-in.

 
----//Tool Introduction

 

Yslow:YslowYesYahooBased onFirefox.

YslowYou can analyze the website pages and tell you how to optimize the website based on certain rules to improve website performance.

Showslow:ShowslowPlatform used to collect page performance testing toolsYslowAnd analyze and display the test results. There is an onlineShowslowPlatform, free of chargeYslowTest results are collected and displayed. Considering that some systems of an enterprise can have trade secrets, we will build our own environment.

OnlineShowslowPlatform:Http://www.showslow.com

 
----//Environment Introduction

 

Because I am stuck in the version during the building process, so as to facilitate troubleshooting during the building process, I will list my build environment here.

System:Windows XP SP3

Browser:Firefox 6.0.2

YslowVersion:Yslow 3.0.4

ShowslowVersion:Http://download.csdn.net/detail/fnngj/3629866

AboutShowslow,Please follow the link I provided to download, although he is relatively old, but it is available.

Latest VersionHubgitAnd the latest version is:Showslow_1.1.3But I triedNTimes (NGreater10. Please despise me. I have tried my best to swim online for many days and have not found a solution. If you have succeeded, please write it out and share it with you. Thank you.

AppservVersion:Http://www.appservnetwork.com/

After entering the download page, downloadAppserv-win32-2.5.10Version. Although it is not the latest version, it is available. Please do not download it from other websites, because I cannot guarantee it is available. Brother and sister are not scaring you. Because I keep reporting errors when downloading on other websites and cannot find a solution, this is the second reason why Alibaba Cloud games has been around for many days. Please despise me again. 

Of course, you don't need it.AppservYou can install them separately.PHP,MySQL,ApacheAnd default modules. If you have configured it, I thinkSo far. Please write down the details, because cainiao like me will not understand it.

 

 
----//Configuration together

Install and downloadAppserv-win32-2.5.10.exeFile, just enter it all the way. Pay attention to the Database Password you entered.

After the installation is complete, hit youMySQLDatabase (start----Program---- Sppserv --- MySQL command line Client)

Enter the password you entered during installation.

Mysql> Create Database showslow;//Create a database

Mysql> Use showslow;//Switch to the new database

After you downloadShowslowTo find a folder named:Tables. SQLAnd then copy it to a simple path.CRun the following command in the root directory.

Mysql> source C:/Tables. SQL; //Import all tables to the new database.

Mysql> show tables;//Check whether the import is successful.

 

 

OpenShowslowFolder, findConfig. sample. phpRenameConfig. php

If you download the link provided by me, There isConfig. php, No need to rename.

ModifyConfig. phpParameters in

$ Db = 'showslow ';

$ User = 'root ';

$ Pass = '000000 ';//Change the password according to your situation. 

Last ModifiedShowslowFolder...... \ Appserv \ www \Folder. 

 

 

Open your Firefox browser,

Menu Bar: Tools-----Additional components-----Search:FirebugAndYslowDownload and install the two components and restart them. Let's take a look.

 

In the Firefox address column, enter:About: config -----I promise I will be careful.

Filter:Yslow

modify the following three items:

    • Extensions. yslow. beaconurl =Http: // localhost/showslow/beacon/yslow/(note that this is your local path !)
    • Extensions. yslow. beaconinfo =Grade
    • Extensions. yslow. optinbeacon =True

 

Restart the browser: EnterHttp: // localhost/showslow/

If there are no error messages on the page, congratulations! You are so lucky.

 

==========================================Possible problems========================================================== ===

 

Error message:

Fatal Error: Call to undefined function mcrypt_get_iv_size ()

 InC: \ appserv \ www \ showslow \ Users \ cookiestorage. phpOn Line62

Solution:

In\ Appserv \Search under folderLibmcrypt. dllAndLibmhash. dllFile

Copy these two files to the system disk (for exampleCDisk)Windows \ system32 \Folder.

Find and open the System Disk\ Winows \ PHP. ini (Make sure that the extension is correct.)

Probably in593Line

Extension = php_mcrypt.dll

Extension = php_mhash.dll

 Add the semicolon (;) Remove and save.

----------------------------------------------------------------

Error message:

Warning:Mysql_fetch_assoc (): supplied argument is not a valid MySQL result resource in C: \ appserv \ www \ showslow \ index. phpOn Line31

No data is gathered yet

Solution:

Sorry, I have never solved this problem. If you downloadShowslowThis error should not occur. If not, such an error may be reported. The red part will appear in multiple places .....

 

========================================================== ========================================================== ============

 
----//How to Use

 

If the installation is successful, let's see how to use it.

Open Firefox and enter the URL you want to test:Http://fnng.cnblogs.comOpenYslowPlug-in testing.

SwitchHttp: // localhost/showslwo/

 

"Last 100 measurements"Click the link to view the performance:

Okay! Finally, I wish you a pleasant test. If you have any questions, please join the QQ Group on the left of this blog.

 

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.