1、安装supersmack
[url]http://vegan.net/tony/supersmack/[/url]
安装过程以及我中间遇到问题的总结都在这里。

之前记得把libmysqlclient.so.16拷贝到/usr/lib中去,这样make 的时候不用改MakeFile文件。
[root@localhost super-smack-1.3]# cp /usr/local/mysql/libmysqlclient.so.16 /usr/lib

我遇到的问题如下:
error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
看到北京野狼的这个帖子:
[url]http://bbs.chinaunix.net/archiver/?tid-638662.html[/url]

[root@localhost super-smack-1.2]# ./configure --with-mysql
configure: error: installation or configuration problem: C++ compiler cannot create executables.
没有安装C++编译器

[root@localhost rpmpackage]# rpm -ivh libc-client-2004g-2.2.1.i386.rpm
Preparing...                ########################################### [100%]
   1:libc-client            ########################################### [100%]
[root@localhost rpmpackage]# rpm -ivh libc-client-devel-2004g-2.2.1.i386.rpm
Preparing...                ########################################### [100%]
   1:libc-client-devel      ########################################### [100%]

[root@localhost rpmpackage]# rpm -ivh libstdc++-devel-4.1.1-52.el5.i386.rpm
Preparing...                ########################################### [100%]
   1:libstdc++-devel        ########################################### [100%]
[root@localhost rpmpackage]# rpm -ivh gcc-c++-4.1.1-52.el5.i386.rpm
Preparing...                ########################################### [100%]
   1:gcc-c++                ########################################### [100%]

[root@localhost rpmpackage]# cd ../sourcepackage/super-smack-1.2
[root@localhost super-smack-1.2]# ./configure --with-mysql
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
...
updating cache ./config.cache
creating ./config.status
creating Makefile
creating src/Makefile
creating config.h

Building with the following options:

MySQL Support..................... yes
PostgreSQL Support................ no
Oracle Support.................... no

If this is not what you intended, please re-run configure.

Thanks for using super-smack!
然后make;make install
其他问题看
[url]http://vegan.net/tony/supersmack/FAQ.php[/url]

2、进行实际测试。
拷贝示例文件。
[root@localhost super-smack-1.3]# cp -r smacks/ /usr/local/bin/
修改用户名和密码为自己的

默认是测试MYISAM表的性能。

[root@localhost smacks]# super-smack -d mysql select-key.smack 10 1000
Error running query select count(*) from http_auth:Table 'test.http_auth' doesn't exist
Creating table 'http_auth'
Loading data from file '/var/smack-data/words.dat' into table 'http_auth'
Table http_auth is now ready for the test
Query Barrel Report for client smacker1
connect: max=156ms  min=0ms avg= 21ms from 10 clients
Query_type      num_queries     max_time        min_time        q_per_s
select_index    20000   0       0       16299.96

10 是连接客户的数目,每个客户有100次轮询。
结果表示:super-smack总共执行了2W次查询,每秒执行16299.96 条数据

下来测试innodb 表
进入MYSQL的SHELL,修改表类型
mysql> alter table http_auth engine innodb;
Query OK, 90000 rows affected (15.18 sec)
Records: 90000  Duplicates: 0  Warnings: 0

[root@localhost smacks]# super-smack -d mysql select-key.smack 10 1000
Query Barrel Report for client smacker1
connect: max=117ms  min=0ms avg= 18ms from 10 clients
Query_type      num_queries     max_time        min_time        q_per_s
select_index    20000   0       0       16747.00
[root@localhost smacks]#
接下来测试集群的

mysql> alter table http_auth engine ndb;
Query OK, 90000 rows affected (11.14 sec)
Records: 90000  Duplicates: 0  Warnings: 0

[root@localhost smacks]# super-smack -d mysql select-key.smack 10 1000
Query Barrel Report for client smacker1
connect: max=3ms  min=0ms avg= 0ms from 10 clients
Query_type      num_queries     max_time        min_time        q_per_s
select_index    20000   3       1       2587.91

看一下update的。
[root@localhost smacks]# super-smack -d mysql update-select.smack 100 10000
Table 'http_auth' does not meet condtions, will be dropped
Creating table 'http_auth'
Loading data from file '/var/smack-data/words.dat' into table 'http_auth'
Table http_auth is now ready for the test
Query Barrel Report for client smacker
connect: max=752ms  min=0ms avg= 108ms from 100 clients
Query_type      num_queries     max_time        min_time        q_per_s
select_index    1000000 19      0       3837.48
update_index    1000000 20      0       3837.48

这个测试结果怎么表名MYISAM表的SELECT比INNODB的还差。
具体原因我会找找看。

对MYSQL进行压力测试相关推荐

  1. mysql 高性能压力测试(总结了好久)

    前言:根据业务需要,需测试mysql 性能和压力测试. 这里我说下测试方法和 测试过程以及测试中出错的问题 估计很多人 跟我一样 要测试mysql 的性能 压力,网上找了很多资料有很多,但是很乱,所以 ...

  2. mysql远程压力测试_mysql压力测试脚本实例

    本文实例讲述了mysql压力测试的脚本,分享给大家供大家参考.具体如下: 创建表dept create table dept( /*部门表*/ deptno mediumint   unsigned  ...

  3. 对mysql进行压力测试_mysqlslap对mysql进行压力测试

    mysqlslap是从5.1.4版开始的一个MySQL官方提供的压力测试工具.通过模拟多个并发客户端访问MySQL来执行压力测试,并且能很好的对比多个存储引擎在相同环境下的并发压力性能差别. mysq ...

  4. 用mysqlslap对MySQL进行压力测试

    MySQL5.1地的确提供了好多有力的工具来帮助我们DBA进行数据库管理. 现在看一下这个压力测试工具mysqlslap. 关于他的选项手册上以及--help介绍的很详细. 我解释一下一些常用的选项. ...

  5. mysql slap_mysqlslap压力测试介绍

    mysqlslap是一款压力测试工具,它会模拟多个客户端访问MySQL服务,记录各个阶段的消耗时间. 主要参数如下: --host=host_name, -h host_nameMySQL服务器所在的 ...

  6. 使用JMeter进行MySQL的压力测试

    前言 1. JMeter安装 2. 导入MySQL驱动 3. 配置并使用JMeter连接数据库 step1:添加JDBC Connection Configuration step2:添加JDBC R ...

  7. mysql smack_MySQL压力测试工具super-smack简单教程

    一.源码下载       下载地址:http://vegan.net/tony/supersmack/源码:二.编译及安装       编译环境:Ubuntu Server 9.10 64位配置编译选 ...

  8. mysql 工具_MySQL压力测试工具,值得收藏

    一.MySQL自带的压力测试工具--Mysqlslap mysqlslap是mysql自带的基准测试工具,该工具查询数据,语法简单,灵活容易使用.该工具可以模拟多个客户端同时并发的向服务器发出查询更新 ...

  9. php mysql 压力测试_MySQL的性能基线收集及压力测试

    建立基线的作用: 计算机科学中,基线是项目储存库中每个工件版本在特定时期的一个"快照". 比如我们现在有并发事物,那么在某时刻发起一个事物会产生当前数据的快照,那么这个快照就相当理 ...

  10. 数据库MySQL的性能基线收集及压力测试

    建立基线的作用: 计算机科学中,基线是项目储存库中每个工件版本在特定时期的一个"快照". 比如我们现在有并发事物,那么在某时刻发起一个事物会产生当前数据的快照,那么这个快照就相当理 ...

最新文章

  1. ASP.NET MVC 传值方法ViewData与ViewBag的区别
  2. sigmstar SSD201/SSD202 openwrt--应用支持分享
  3. 网络应用程序设计模式
  4. IDEA 项目结构旁边出现 0%classes,0% lines covered
  5. 计算机视觉论文-2021-06-16
  6. mysql udf提权_三分钟解析postgresql提权
  7. mysql 关键字搜索 排名_mysql 的 查找 与 排序
  8. Linux x86-64 IOMMU详解(一)——IOMMU简介
  9. 批量保存网页_一键下载网页所有图片,把美丽存下来
  10. 并行程序设计整理(一)
  11. android dbm模式判断,手机信号强弱判断即【dBm/asu】知识普及
  12. C语言8.14文曲星上的猜数游戏
  13. 【英语写作】以亚太杯为例
  14. 在html中对页面大小的设置吗,网页设计一般页面尺寸怎么设置呢?
  15. 机器学习笔记--微积分
  16. 分享!史上最全的STM32库....
  17. Python 实现office单个文件或整个文件夹(word,ppt,excel)转换成PDF文件,并获取PDF文件页数
  18. OpenGL ES 2.0 for Android教程(九):添加触摸反馈
  19. 一文读懂Kubernetes Scheduler扩展功能
  20. java社区源码_Java论坛系统巡云轻论坛 v4.8

热门文章

  1. linux常用命令V1.1
  2. python中@staticmethod_Python中的 @staticmethod@classmethod方法
  3. php分页类怎么使用,PHP实现的分页类定义与用法示例
  4. CS224N笔记——机器翻译和GRU以及LSTM
  5. Java 实现区块链中的区块,BLOCK的实现
  6. Openresty 学习笔记(二)Nginx Lua 正则表达式相关API
  7. 判断请求是通过点击链接还是直接输入网址
  8. 售前更需要关注客户业务
  9. MySQL多IDC部署注意事项
  10. 场景文字检测OD与字符识别OCR概述