PHP: Simulate multiple MySQL connections to same database

Posted by Varun on Stack Overflow See other posts from Stack Overflow or by Varun
Published on 2010-12-31T09:52:12Z Indexed on 2010/12/31 9:53 UTC
Read the original article Hit count: 171

Filed under:
|
|

An insert query is constantly getting logged in my MySQL slow query log.
I want to see how much time the INSERT query is taking with 100 simultaneous insert operations(to the same table).

So I need to simulate the follwoing.
500 different simultaneous connections from PHP to the same database on a mysql server, all of which are inserting a row(simultaneously) to the same table.

DO I need to use any load testing tool? Or Can I simply write a PHP script to do this?

Any thoughts?

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql