网站性能测试


RHEL6.5


---查看服务器的内存:

[root@linuxcast /]# free -m

             total       used       free     shared    buffers     cached

Mem:          1870       1794         76          0         62        862

-/+ buffers/cache:        868       1001

Swap:         4095          0       4095


---查看服务器cpu信息

[root@linuxcast /]# 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:                 58

Stepping:              9

CPU MHz:               3569.820

BogoMIPS:              7139.64

Hypervisor vendor:     VMware

Virtualization type:   full

L1d cache:             32K

L1i cache:             32K

L2 cache:              256K

L3 cache:              8192K

NUMA node0 CPU(s):     0


---查看服务器的磁盘读写性能

[root@linuxcast /]# hdparm -t /dev/sda


/dev/sda:

 Timing buffered disk reads: 1952 MB in  3.00 seconds = 649.96 MB/sec

[root@linuxcast /]# ab -c 10 -n 1000 http://linuxcast.net/linuxcast/index.php

This is ApacheBench, Version 2.3 <$Revision: 655654 $>

Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/

Licensed to The Apache Software Foundation, http://www.apache.org/


Benchmarking linuxcast.net (be patient)

Completed 100 requests

Completed 200 requests

Completed 300 requests

Completed 400 requests

Completed 500 requests

Completed 600 requests

Completed 700 requests

Completed 800 requests

Completed 900 requests

Completed 1000 requests

Finished 1000 requests



Server Software:        Apache/2.2.15

Server Hostname:        linuxcast.net

Server Port:            80


Document Path:          /linuxcast/index.php

Document Length:        0 bytes


Concurrency Level:      10

Time taken for tests:   96.102 seconds

Complete requests:      1000

Failed requests:        0

Write errors:           0

Non-2xx responses:      1000

Total transferred:      313000 bytes

HTML transferred:       0 bytes

Requests per second:    10.41 [#/sec] (mean)

Time per request:       961.021 [ms] (mean)

Time per request:       96.102 [ms] (mean, across all concurrent requests)

Transfer rate:          3.18 [Kbytes/sec] received


Connection Times (ms)

              min  mean[+/-sd] median   max

Connect:        0    0   1.2      0      17

Processing:   463  959  60.5    958    1883

Waiting:      463  956  59.8    953    1883

Total:        463  959  60.8    958    1900


Percentage of the requests served within a certain time (ms)

  50%    958

  66%    974

  75%    979

  80%    981

  90%    990

  95%   1000

  98%   1029

  99%   1076

 100%   1900 (longest request)

[root@linuxcast /]# 


本文出自 “森林博客” 博客,请务必保留此出处http://murongqingqqq.blog.51cto.com/2902694/1536536

网站性能测试,古老的榕树,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。