Home  >  Article  >  Database  >  mysql 并发插入简单测试

mysql 并发插入简单测试

WBOY
WBOYOriginal
2016-06-07 15:24:331217browse

测试工具:JMeter 2.8 JDK1.7 Tomcat7 MySql 5.0 数据库中只有有一个表user,user中的字段有id,username,userpwd 测试结果下: 并发数 成功插入条数 100 100 200 200 300 300 400 400 500 500 600 600 700 528 800 635 900 633 1000 654 1100 556 1200 797

测试工具:JMeter 2.8

JDK1.7

Tomcat7

MySql 5.0

数据库中只有有一个表user,user中的字段有id,username,userpwd

测试结果下:

并发数   成功插入条数
100       100
200       200
300       300
400       400
500       500
600       600
700       528
800       635
900       633
1000      654
1100      556
1200      797
1300      406
1400      457
1500      478
2000      1438
3000      1706

发现超过600,就有数据丢失了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn