Đánh giá chất lượng gói G1-SMALL Google Compute Engine – Google Cloud Computing

Google Compute Engine – Google Cloud Computing là một dịch vụ điện toán đám mây tương tự như dịch vụ Amazon Elastic Compute Cloud (Amazon EC2). Với Google Compute Engine, bạn có thể thực hiện và cấu hình như với 1 VPS hoặc server riêng (Dedicated Servers), nhưng việc nâng cấp khá dễ dàng và nhanh chóng mà không ảnh hưởng nhiều đến hoạt động của bạn nhờ công nghệ điện toán đám mây. Trong bài này, xTraffic.pep.vn sẽ đánh giá hiệu năng của gói G1-SMALL Google Compute Engine.

Đánh giá chất lượng gói G1-SMALL Google Compute Engine - Google Cloud Computing - g1-small google Google Cloud Google Cloud Computing Google Compute Engine - Hosting Phát triển website
Google Cloud Platform

Kiểm tra thông số phần cứng của G1-SMALL Google Compute Engine

[root@google-compute-engine-g1-small ~]# sudo lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                1
On-line CPU(s) list:   0
Thread(s) per core:    1
Core(s) per socket:    1
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 62
Stepping:              4
CPU MHz:               2499.998
BogoMIPS:              4999.99
Hypervisor vendor:     KVM
Virtualization type:   full
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              30720K
NUMA node0 CPU(s):     0
[root@google-compute-engine-g1-small ~]#
[root@google-compute-engine-g1-small ~]# sudo lshw -short
H/W path      Device     Class      Description
===============================================
                         system     Google
/0                       bus        Motherboard
/0/0                     memory     96KiB BIOS
/0/401                   processor  Intel(R) Xeon(R) CPU @ 2.50GHz
/0/1000                  memory     1740MiB System Memory
/0/1000/0                memory     1740MiB DIMM RAM
/0/1                     bridge     82371AB/EB/MB PIIX4 ISA
/0/1.3                   bridge     82371AB/EB/MB PIIX4 ACPI
/0/3                     generic    Virtio SCSI
/0/4                     network    Virtio network device
/0/2          scsi0      storage
/0/2/0.1.0    /dev/sda   disk       10GB PersistentDisk
/0/2/0.1.0/1  /dev/sda1  volume     10238MiB EXT4 volume
/1            eth0       network    Ethernet interface
[root@google-compute-engine-g1-small ~]#
[root@google-compute-engine-g1-small ~]# sudo lsblk
NAME   MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda      8:0    0  10G  0 disk
└─sda1   8:1    0  10G  0 part /
[root@google-compute-engine-g1-small ~]#

Kiểm tra tốc độ ổ cứng lưu trữ của G1-SMALL Google Compute Engine bằng dd

[root@google-compute-engine-g1-small ~]# dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync
16384+0 records in
16384+0 records out
1073741824 bytes (1.1 GB) copied, 31.5235 s, 34.1 MB/s
[root@google-compute-engine-g1-small ~]#

Kiểm tra tốc độ CPU của G1-SMALL Google Compute Engine bằng sysbench

[root@google-compute-engine-g1-small ~]# sudo sysbench --test=cpu --cpu-max-prime=20000 run
sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Doing CPU performance benchmark

Threads started!
Done.

Maximum prime number checked in CPU test: 20000


Test execution summary:
    total time:                          63.3002s
    total number of events:              10000
    total time taken by event execution: 63.2973
    per-request statistics:
         min:                                  2.64ms
         avg:                                  6.33ms
         max:                                176.48ms
         approx.  95 percentile:               3.14ms

Threads fairness:
    events (avg/stddev):           10000.0000/0.00
    execution time (avg/stddev):   63.2973/0.00

[root@google-compute-engine-g1-small ~]#

Kiểm tra tốc độ ổ cứng lưu trữ của G1-SMALL Google Compute Engine bằng sysbench

[root@google-compute-engine-g1-small ~]# sudo sysbench --test=fileio --file-total-size=5G --file-test-mode=rndrw --init-rng=on --max-time=300 --max-requests=0 run
sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1
Initializing random number generator from timer.


Extra file open flags: 0
128 files, 40Mb each
5Gb total file size
Block size 16Kb
Number of random requests for random IO: 0
Read/Write ratio for combined random IO test: 1.50
Periodic FSYNC enabled, calling fsync() each 100 requests.
Calling fsync() at the end of test, Enabled.
Using synchronous I/O mode
Doing random r/w test
Threads started!
Time limit exceeded, exiting...
Done.

Operations performed:  25103 Read, 16735 Write, 53504 Other = 95342 Total
Read 392.23Mb  Written 261.48Mb  Total transferred 653.72Mb  (2.179Mb/sec)
  139.46 Requests/sec executed

Test execution summary:
    total time:                          300.0081s
    total number of events:              41838
    total time taken by event execution: 235.9630
    per-request statistics:
         min:                                  0.00ms
         avg:                                  5.64ms
         max:                                115.39ms
         approx.  95 percentile:              18.13ms

Threads fairness:
    events (avg/stddev):           41838.0000/0.00
    execution time (avg/stddev):   235.9630/0.00

[root@google-compute-engine-g1-small ~]#

Kiểm tra hiệu năng MySQL của G1-SMALL Google Compute Engine bằng sysbench

[root@google-compute-engine-g1-small ~]# sudo sysbench --test=oltp --oltp-table-size=1000000 --db-driver=mysql --mysql-db=xtraffic_pep_vn_test --mysql-user=root --mysql-password=YOUR_MYSQL_ROOT_PASSWORD --max-time=60 --oltp-read-only=on --max-requests=0 --num-threads=8 run
sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 8

Doing OLTP test.
Running mixed OLTP test
Doing read-only test
Using Special distribution (12 iterations,  1 pct of values are returned in 75 pct cases)
Using "BEGIN" for starting transactions
Using auto_inc on the id column
Threads started!
Time limit exceeded, exiting...
(last message repeated 7 times)
Done.

OLTP test statistics:
    queries performed:
        read:                            218708
        write:                           0
        other:                           31244
        total:                           249952
    transactions:                        15622  (260.17 per sec.)
    deadlocks:                           0      (0.00 per sec.)
    read/write requests:                 218708 (3642.44 per sec.)
    other operations:                    31244  (520.35 per sec.)

Test execution summary:
    total time:                          60.0443s
    total number of events:              15622
    total time taken by event execution: 480.1890
    per-request statistics:
         min:                                  1.30ms
         avg:                                 30.74ms
         max:                               1672.01ms
         approx.  95 percentile:             143.31ms

Threads fairness:
    events (avg/stddev):           1952.7500/173.69
    execution time (avg/stddev):   60.0236/0.01

[root@google-compute-engine-g1-small ~]#

Kiểm tra tốc độ toàn diện của G1-SMALL Google Compute Engine bằng UnixBench

[root@google-compute-engine-g1-small UnixBench]# sudo ./Run
make all
make[1]: Entering directory `/root/UnixBench'
Checking distribution of files
./pgms  exists
./src  exists
./testdir  exists
./tmp  exists
./results  exists
make[1]: Leaving directory `/root/UnixBench'
sh: 3dinfo: command not found

   #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #
   #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #
   #    #  # #  #  #    ##            #####   #####   # #  #  #       ######
   #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #
   #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #
    ####   #    #  #  #    #          #####   ######  #    #   ####   #    #

   Version 5.1.3                      Based on the Byte Magazine Unix Benchmark

   Multi-CPU version                  Version 5 revisions by Ian Smith,
                                      Sunnyvale, CA, USA
   January 13, 2011                   johantheghost at yahoo period com


1 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

1 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

1 x Execl Throughput  1 2 3

1 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

1 x File Copy 256 bufsize 500 maxblocks  1 2 3

1 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

1 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

1 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

1 x Process Creation  1 2 3

1 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

1 x Shell Scripts (1 concurrent)  1 2 3

1 x Shell Scripts (8 concurrent)  1 2 3

========================================================================
   BYTE UNIX Benchmarks (Version 5.1.3)

   System: google-compute-engine-g1-small: GNU/Linux
   OS: GNU/Linux -- 2.6.32-504.1.3.el6.x86_64 -- #1 SMP Tue Nov 11 17:57:25 UTC 2014
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Xeon(R) CPU @ 2.50GHz (5000.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   16:00:45 up 58 min,  2 users,  load average: 0.07, 0.02, 0.00; runlevel 3

------------------------------------------------------------------------
Benchmark Run: Wed Dec 31 2014 16:00:45 - 16:28:48
1 CPU in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       15135742.5 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     1611.4 MWIPS (10.1 s, 7 samples)
Execl Throughput                               1881.6 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        452386.2 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          136427.4 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1111583.2 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1187415.5 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 163124.0 lps   (10.0 s, 7 samples)
Process Creation                               4676.5 lps   (30.1 s, 2 samples)
Shell Scripts (1 concurrent)                   2209.0 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    273.9 lpm   (60.1 s, 2 samples)
System Call Overhead                        1905286.3 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   15135742.5   1297.0
Double-Precision Whetstone                       55.0       1611.4    293.0
Execl Throughput                                 43.0       1881.6    437.6
File Copy 1024 bufsize 2000 maxblocks          3960.0     452386.2   1142.4
File Copy 256 bufsize 500 maxblocks            1655.0     136427.4    824.3
File Copy 4096 bufsize 8000 maxblocks          5800.0    1111583.2   1916.5
Pipe Throughput                               12440.0    1187415.5    954.5
Pipe-based Context Switching                   4000.0     163124.0    407.8
Process Creation                                126.0       4676.5    371.2
Shell Scripts (1 concurrent)                     42.4       2209.0    521.0
Shell Scripts (8 concurrent)                      6.0        273.9    456.4
System Call Overhead                          15000.0    1905286.3   1270.2
                                                                   ========
System Benchmarks Index Score                                         696.8

[root@google-compute-engine-g1-small UnixBench]#

Kiểm tra hiệu năng của G1-SMALL Google Compute Engine bằng vpsbench

[root@google-compute-engine-g1-small]# sudo bash vpsbench.sh
Benching I/O ... OK
Benching CPU. Bzipping 25MB file ... OK
Benching inbound network. Downloading 100MB file ... OK
Share at https://github.com/mgutz/vpsbench/wiki/VPS-Hosts


_12/31/2014 - VMPLAN - DATACENTER - OS - AUTHOR_
```
CPU model:  Intel(R) Xeon(R) CPU @ 2.50GHz
Number of cores: 1
CPU frequency:  2499.998 MHz
Total amount of RAM: 1700 MB
Total amount of swap: 0 MB
System uptime:   1:30,
I/O speed:  33.5 MB/s
Bzip 25MB: 13.73s
Download 100MB file: 10.1MB/s
```


[root@google-compute-engine-g1-small]#

Kiểm tra hiệu năng của G1-SMALL Google Compute Engine bằng freevps bench

[root@google-compute-engine-g1-small ~]# sudo bash freevpsbench.sh
CPU model :  Intel(R) Xeon(R) CPU @ 2.50GHz
Number of cores : 1
CPU frequency :  2499.998 MHz
Total amount of ram : 1700 MB
Total amount of swap : 0 MB
System uptime :   1:42,
Download speed from CacheFly: 16.2MB/s
Download speed from Coloat, Atlanta GA: 1.68MB/s
Download speed from Softlayer, Dallas, TX: 9.61MB/s
Download speed from Linode, Tokyo, JP: 7.75MB/s
Download speed from i3d.net, Rotterdam, NL: 5.26MB/s
Download speed from Leaseweb, Haarlem, NL: 4.26MB/s
Download speed from Softlayer, Singapore: 25.7MB/s
Download speed from Softlayer, Seattle, WA: 11.4MB/s
Download speed from Softlayer, San Jose, CA: 392KB/s
Download speed from Softlayer, Washington, DC: 9.05MB/s
I/O speed :  36.7 MB/s
[root@google-compute-engine-g1-small ~]#

Kiểm tra chất lượng toàn diện của G1-SMALL Google Compute Engine bằng PHP BENCHMARK SCRIPT BY XTRAFFIC.PEP.VN

--------------------------------------------------------------------------------------------------------------
|                                  PHP BENCHMARK SCRIPT BY XTRAFFIC.PEP.VN                                   |
|                                                VERSION 2.0                                                 |
|                   DOWNLOAD HERE : https://bit.ly/php-benchmark-script-by-xtraffic-pep-vn                   |
|                        Copyright 2014 http://xtraffic.pep.vn , All rights reserved!                        |
--------------------------------------------------------------------------------------------------------------
Start       : 2014-12-31 23:55:25
Server      : _@_
PHP version : 5.3.3
Platform    : Linux
Test level  : 1
--------------------------------------------------------------------------------------------------------------
                                                 CPU TESTED                                                 

+ xtraffic_testcpu_math                                                                 : 0.50141788 seconds.
+ xtraffic_testcpu_stringmanipulation                                                   : 0.81704712 seconds.
+ xtraffic_testcpu_hashstring                                                           : 0.41465306 seconds.
+ xtraffic_testcpu_gzipstring                                                           : 0.56607699 seconds.
+ xtraffic_testcpu_loops                                                                : 0.28118992 seconds.
+ xtraffic_testcpu_ifelse                                                               : 0.48560309 seconds.
+ xtraffic_testcpu_synthetic                                                            : 0.42454100 seconds.
----------------------------
* Total time                                                                            : 3.49052906 seconds.

--------------------------------------------------------------------------------------------------------------
                                    DATA STORAGE DEVICE (HDD/SSD) TESTED                                    

+ TEST WRITE     :                                                                   
      File Size  : 20 MB                                                             
      Time       : 0.015346574783325 seconds                                         
      Speed      : 1.27 GB/s                                                         
+ TEST READ     :                                                                    
      File Size  : 20 MB                                                             
      Time       : 0.033209180831909 seconds                                         
      Speed      : 632.36 MB/s                                                       
----------------------------
* Total time                                                                            : 0.04855576 seconds.

--------------------------------------------------------------------------------------------------------------
                                                MYSQL TESTED                                                

+ DB CONNECTION TIME                    : 0.19444108 seconds                         
+ TEST INSERT TO DB    "10,000 RECORDS" : 5.04266286 seconds                         
+ TEST SELECT (1) WITH "10,000 RECORDS" : 1.96679401 seconds                         
+ TEST SELECT (2) WITH "10,000 RECORDS" : 1.95904303 seconds                         
+ TEST SELECT (3) WITH "10,000 RECORDS" : 1.81808019 seconds                         
+ TEST UPDATE     WITH "10,000 RECORDS" : 0.40928507 seconds                         
+ TEST DELETE     WITH "10,000 RECORDS" : 0.58742094 seconds                         
----------------------------
* Total time                                                                            : 11.97772717 seconds.

--------------------------------------------------------------------------------------------------------------
                                               NETWORK TESTED                                               

+ Test download speed from "cachefly.cachefly.net"                                   
      [Location : CDN]                                                               
      Size : 68.57 MB                                                                
      Download Time : 4.847783 sec                                                   
      Speed : 14.15 MB/s                                                             

+ Test download speed from "mirror-fpt-telecom.fpt.net"                              
      [Location : Vietnam]                                                           
      Size : 486 KB                                                                  
      Download Time : 4.939153 sec                                                   
      Speed : 99 KB/s                                                                

+ Test download speed from "centos-hcm.viettelidc.com.vn"                            
      [Location : Ho Chi Minh, Vietnam]                                              
      Size : 30.27 MB                                                                
      Download Time : 4.495892 sec                                                   
      Speed : 6.73 MB/s                                                              

+ Test download speed from "centos-hn.viettelidc.com.vn"                             
      [Location : Ha Noi, Vietnam]                                                   
      Size : 30.27 MB                                                                
      Download Time : 2.633076 sec                                                   
      Speed : 11.5 MB/s                                                              

+ Test download speed from "mirror.nhanhoa.com"                                      
      [Location : Vietnam]                                                           
      Size : 30.27 MB                                                                
      Download Time : 4.165992 sec                                                   
      Speed : 7.27 MB/s                                                              

+ Test download speed from "dl.google.com"                                           
      [Location : Google]                                                            
      Size : 16.58 MB                                                                
      Download Time : 0.361024 sec                                                   
      Speed : 45.93 MB/s                                                             

+ Test download speed from "download.microsoft.com"                                  
      [Location : Microsoft]                                                         
      Size : 12.58 MB                                                                
      Download Time : 4.816336 sec                                                   
      Speed : 2.61 MB/s                                                              

+ Test download speed from "speedtest.tokyo.linode.com"                              
      [Location : Tokyo, Japan]                                                      
      Size : 88.88 MB                                                                
      Download Time : 4.942127 sec                                                   
      Speed : 17.99 MB/s                                                             

+ Test download speed from "speedtest-sgp1.digitalocean.com"                         
      [Location : Singapore]                                                         
      Size : 100 MB                                                                  
      Download Time : 3.329817 sec                                                   
      Speed : 30.03 MB/s                                                             

+ Test download speed from "ftp.funet.fi"                                            
      [Location : Finland]                                                           
      Size : 2.03 MB                                                                 
      Download Time : 4.316597 sec                                                   
      Speed : 482 KB/s                                                               

+ Test download speed from "ftp.belnet.be"                                           
      [Location : Belgium]                                                           
      Size : 790 KB                                                                  
      Download Time : 4.326069 sec                                                   
      Speed : 183 KB/s                                                               

+ Test download speed from "ga-us-ping.vultr.com"                                    
      [Location : Atlanta, Georgia, USA]                                             
      Size : 16.58 MB                                                                
      Download Time : 4.592307 sec                                                   
      Speed : 3.61 MB/s                                                              

+ Test download speed from "sjo-ca-us-ping.vultr.com"                                
      [Location : Silicon Valley, California, USA]                                   
      Size : 43.69 MB                                                                
      Download Time : 4.521819 sec                                                   
      Speed : 9.66 MB/s                                                              

+ Test download speed from "nj-us-ping.vultr.com"                                    
      [Location : New York / New Jersey, USA]                                        
      Size : 19.96 MB                                                                
      Download Time : 4.477371 sec                                                   
      Speed : 4.46 MB/s

Kiểm tra khả năng chịu tải WordPress trên G1-SMALL Google Compute Engine 

Kiểm tra khả năng chịu tải WordPress bằng công cụ Siege

Giả lập tối đa 20 kết nối cùng lúc (tương đương với website có 1.728.000 pageviews/day) với thời gian kiểm tra là 60 giây

Kiểm tra hiệu năng WordPress trước và sau khi sử dụng plugin WP Optimize By xTraffic
Yếu tố Trước khi cài đặt plugin Sau khi cài đặt plugin Hiệu quả
[root@xtraffic ~]# siege -c20 -t60s http://wordpress-test.pep.vn/
Lifting the server siege...      done.

Transactions:                    195 hits
Availability:                 100.00 %
Elapsed time:                  59.65 secs
Data transferred:               0.48 MB
Response time:                  5.26 secs
Transaction rate:               3.27 trans/sec
Throughput:                     0.01 MB/sec
Concurrency:                   17.18
Successful transactions:         195
Failed transactions:               0
Longest transaction:           16.99
Shortest transaction:           1.39
[root@xtraffic ~]# siege -c20 -t60s http://wordpress-test.pep.vn/
Lifting the server siege...      done.

Transactions:                   2075 hits
Availability:                 100.00 %
Elapsed time:                  59.15 secs
Data transferred:               5.70 MB
Response time:                  0.07 secs
Transaction rate:              35.08 trans/sec
Throughput:                     0.10 MB/sec
Concurrency:                    2.33
Successful transactions:        2075
Failed transactions:               0
Longest transaction:            1.06
Shortest transaction:           0.05
Thời gian tải trang trung bình (Response time) 5.26 secs 0.07 secs Tăng 7514%
Đáp ứng được số truy vấn trong 1 giây (Transaction rate) 3.27 trans/sec 35.08 trans/sec Tăng 1073%
Số truy vấn thành công (Successful transactions) 195 truy vấn 2075 truy vấn Tăng 1064%
Số truy vấn thất bại (Failed transactions) 0 truy vấn 0 truy vấn Tăng 0%
Thời gian tải trang lâu nhất (Longest transaction) 16.99 giây 1.06 giây Tăng 1603%
Thời gian tải trang thấp nhất (Shortest transaction) 1.39 giây 0.05 giây Tăng 2708%

Kiểm tra khả năng chịu tải WordPress bằng công cụ Apache Benchmark (ab)

Giả lập tối đa 20 kết nối cùng lúc (tương đương với website có 1.728.000 pageviews/day) với thời gian kiểm tra là 60 giây

Kiểm tra hiệu năng WordPress trước và sau khi sử dụng plugin WP Optimize By xTraffic
Yếu tố Trước khi cài đặt plugin Sau khi cài đặt plugin Hiệu quả
[root@xtraffic ~]# ab -c 20 -k -r -t 60 -v 3 http://wordpress-test.pep.vn/
Finished 202 requests


Server Software:        nginx/1.0.15
Server Hostname:        wordpress-test.pep.vn
Server Port:            80

Document Path:          /
Document Length:        7846 bytes

Concurrency Level:      20
Time taken for tests:   60.545 seconds
Complete requests:      202
Failed requests:        0
Write errors:           0
Keep-Alive requests:    0
Total transferred:      1632968 bytes
HTML transferred:       1584892 bytes
Requests per second:    3.34 [#/sec] (mean)
Time per request:       5994.589 [ms] (mean)
Time per request:       299.729 [ms] (mean, across all concurrent requests)
Transfer rate:          26.34 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       28   51  45.2     32     170
Processing:  2243 5540 2791.1   5265   15831
Waiting:     2243 5540 2791.1   5265   15831
Total:       2274 5591 2793.4   5313   15863

Percentage of the requests served within a certain time (ms)
  50%   5313
  66%   5548
  75%   7298
  80%   7971
  90%   9549
  95%  10728
  98%  13076
  99%  13516
 100%  15863 (longest request)
[root@xtraffic ~]# ab -c 20 -k -r -t 60 -v 3 http://wordpress-test.pep.vn/
Finished 14763 requests


Server Software:        nginx
Server Hostname:        wordpress-test.pep.vn
Server Port:            80

Document Path:          /
Document Length:        8457 bytes

Concurrency Level:      20
Time taken for tests:   60.004 seconds
Complete requests:      14763
Failed requests:        0
Write errors:           0
Keep-Alive requests:    14763
Total transferred:      129245220 bytes
HTML transferred:       124207959 bytes
Requests per second:    246.03 [#/sec] (mean)
Time per request:       81.290 [ms] (mean)
Time per request:       4.064 [ms] (mean, across all concurrent requests)
Transfer rate:          2103.46 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0  13.9      0    1365
Processing:     0   81 201.7     32    1885
Waiting:        0   75 191.1     31    1883
Total:          0   81 202.2     32    1885

Percentage of the requests served within a certain time (ms)
  50%     32
  66%     33
  75%     33
  80%     33
  90%     47
  95%    486
  98%    764
  99%   1151
 100%   1885 (longest request)
Thời gian tải trang trung bình (Time per request) 5.994589 giây 0.081290 giây Tăng 7374%
Đáp ứng được số truy vấn trong 1 giây (Requests per second) 3.34 truy vấn / giây 246.03 truy vấn / giây Tăng 7366%
Số truy vấn thành công (Complete requests) 202 truy vấn 14763 truy vấn Tăng 7308%
Số truy vấn thất bại (Failed requests) 0 truy vấn 0 truy vấn Tăng 0%
Thời gian tải trang lâu nhất 15.863 giây 1.885 giây Tăng 842%
Thời gian tải trang thấp nhất 5.313 giây 0.032 giây Tăng 16603%

Kiểm tra khả năng chịu tải WordPress bằng công cụ wrk Benchmark

Giả lập tối đa 20 kết nối cùng lúc (tương đương với website có 1.728.000 pageviews/day) với thời gian kiểm tra là 60 giây

Kiểm tra hiệu năng WordPress trước và sau khi sử dụng plugin WP Optimize By xTraffic
Yếu tố Trước khi cài đặt plugin Sau khi cài đặt plugin Hiệu quả
[root@xtraffic]# wrk -t10 -c20 -d60s http://wordpress-test.pep.vn/
Running 1m test @ http://wordpress-test.pep.vn/
  10 threads and 20 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     5.80s     2.50s   11.96s    60.29%
    Req/Sec     0.00      0.00     0.00    100.00%
  205 requests in 1.00m, 1.59MB read
  Socket errors: connect 0, read 0, write 0, timeout 375
Requests/sec:      3.41
Transfer/sec:     27.10KB
[root@xtraffic ~]# wrk -t10 -c20 -d60s http://wordpress-test.pep.vn/
Running 1m test @ http://wordpress-test.pep.vn/
  10 threads and 20 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    31.59ms    6.26ms 264.89ms   98.13%
    Req/Sec    63.09      9.04   100.00     77.34%
  37833 requests in 1.00m, 317.51MB read
Requests/sec:    630.47
Transfer/sec:      5.29MB
Thời gian tải trang trung bình (Latency) 5.80 giây 0.03159 giây Tăng 18360%
Đáp ứng được số truy vấn trong 1 giây (Requests/sec) 3.41 truy vấn / giây 630.47 truy vấn / giây Tăng 18489%
Thời gian tải trang lâu nhất (Max Latency) 11.96 giây 0.26489 giây Tăng 4515%
Tốc độ chuyển dữ liệu trong 1 giây(Transfer/sec) 27.10 KB/s 5.29 MB/s Tăng 19985%

Kiểm tra khả năng chịu tải WordPress bằng công cụ boom Benchmark

Giả lập tối đa 20 kết nối cùng lúc (tương đương với website có 1.728.000 pageviews/day) với 2000 truy vấn

Kiểm tra hiệu năng WordPress trước và sau khi sử dụng plugin WP Optimize By xTraffic
Yếu tố Trước khi cài đặt plugin Sau khi cài đặt plugin Hiệu quả
[root@xtraffic]# boom -n 2000 -c 20 -cpus 1 -allow-insecure http://wordpress-test.pep.vn/
2000 / 2000 Boooooooooooooooooooooooooo! 100.00 %
Summary:
  Total:        557.4468 secs.
  Slowest:      21.3067 secs.
  Fastest:      1.5292 secs.
  Average:      5.5694 secs.
  Requests/sec: 3.5878

Status code distribution:
  [200] 2000 responses

Response time histogram:
  1.529 [1]     |
  3.507 [640]   |∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎
  5.485 [577]   |∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎
  7.462 [230]   |∎∎∎∎∎∎∎∎∎∎∎∎∎∎
  9.440 [368]   |∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎
  11.418 [124]  |∎∎∎∎∎∎∎
  13.396 [38]   |∎∎
  15.373 [12]   |
  17.351 [8]    |
  19.329 [1]    |
  21.307 [1]    |

Latency distribution:
  10% in 2.5735 secs.
  25% in 2.7542 secs.
  50% in 5.2697 secs.
  75% in 7.7789 secs.
  90% in 8.8194 secs.
  95% in 10.6657 secs.
  99% in 13.5430 secs.
[root@xtraffic]# boom -n 2000 -c 20 -cpus 1 -allow-insecure http://test.pep.vn/wordpress/
2000 / 2000 Boooooooooooooooooooooooooo! 100.00 %
Summary:
  Total:        32.7290 secs.
  Slowest:      0.7713 secs.
  Fastest:      0.0628 secs.
  Average:      0.3264 secs.
  Requests/sec: 61.1079

Status code distribution:
  [200] 2000 responses

Response time histogram:
  0.063 [1]     |
  0.134 [48]    |∎∎
  0.204 [52]    |∎∎
  0.275 [433]   |∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎
  0.346 [800]   |∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎
  0.417 [78]    |∎∎∎
  0.488 [549]   |∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎
  0.559 [32]    |∎
  0.630 [1]     |
  0.700 [1]     |
  0.771 [5]     |

Latency distribution:
  10% in 0.2444 secs.
  25% in 0.2744 secs.
  50% in 0.2906 secs.
  75% in 0.4273 secs.
  90% in 0.4512 secs.
  95% in 0.4652 secs.
  99% in 0.5039 secs.
Thời gian tải trang trung bình (Summary Average) 5.5694 giây 0.3264 giây Tăng 1706%
Đáp ứng được số truy vấn trong 1 giây (Requests/sec) 3.5878 truy vấn / giây 61.1079 truy vấn / giây Tăng 1703%
Thời gian tải trang chậm nhất (Summary Slowest) 21.3067 giây 0.7713 giây Tăng 2762%
Thời gian tải trang nhanh nhất (Summary Fastest) 1.5292 giây 0.0628 giây Tăng 2435%
Link đăng ký G1-SMALL Google Compute Engine : https://cloud.google.com/compute/

Leave a Comment