网站性能测试

简介:

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 /]# 



本文转自 murongqingqqq  51CTO博客,原文链接:http://blog.51cto.com/murongqingqqq/1536536


相关实践学习
通过性能测试PTS对云服务器ECS进行规格选择与性能压测
本文为您介绍如何利用性能测试PTS对云服务器ECS进行规格选择与性能压测。
相关文章
|
5天前
|
测试技术 C语言
网站压力测试工具Siege图文详解
网站压力测试工具Siege图文详解
31 0
|
5天前
|
敏捷开发 运维 安全
链家网站系统测试设计与实现_kaic
链家网站系统测试设计与实现_kaic
|
5天前
|
测试技术 Linux Apache
网站压力测试工具webbench图文详解
网站压力测试工具webbench图文详解
17 0
|
5天前
|
Web App开发 搜索推荐 测试技术
网站速度测试
【4月更文挑战第8天】网站速度测试
22 2
|
5天前
|
SQL Apache 流计算
Apache Flink官方网站提供了关于如何使用Docker进行Flink CDC测试的文档
【2月更文挑战第25天】Apache Flink官方网站提供了关于如何使用Docker进行Flink CDC测试的文档
349 3
|
5天前
|
前端开发 测试技术 Android开发
自动化测试学习网站
自动化测试学习网站
|
5天前
|
敏捷开发 测试技术 持续交付
几个有用的测试网站
几个有用的测试网站
104 0
|
5天前
|
SQL 安全 测试技术
面试题10: 如何测试一个网站?
面试题10: 如何测试一个网站?
|
5天前
|
API 数据安全/隐私保护
如何使用Postman 测试Https 网站?
如何使用Postman 测试Https 网站?
119 0
|
5天前
|
数据采集 测试技术 网络安全
阿萨聊测试 ZAP3:如何测试HTTPS的Web网站?
阿萨聊测试 ZAP3:如何测试HTTPS的Web网站?
阿萨聊测试 ZAP3:如何测试HTTPS的Web网站?

热门文章

最新文章