sventhan
asked on
Insert Statements Load Testing
Experts -
I'm tryng to simulate the user load testing for the following insert statement. The idea is running this in multiple sessions/threads and measuring
the various performance (CPU usage, Transaction per second, IO, etc). This is an interactive application and I'd like to create the load of 5000 or
more users as possbile to simulate the testing. I understand that it depends on the specs on the server computer it runs on of course, but assuming
you buy the best server available for around $10K?
I'm tryng to simulate the user load testing for the following insert statement. The idea is running this in multiple sessions/threads and measuring
the various performance (CPU usage, Transaction per second, IO, etc). This is an interactive application and I'd like to create the load of 5000 or
more users as possbile to simulate the testing. I understand that it depends on the specs on the server computer it runs on of course, but assuming
you buy the best server available for around $10K?
DECLARE @row INT;
DECLARE @string VARCHAR(50), @length INT, @code INT;
SET @row = 0;
WHILE @row < 100000 BEGIN
SET @row = @row + 1;
-- Build the random string
SET @length = ROUND(80*RAND(),0);
SET @string = '';
WHILE @length > 0 BEGIN
SET @length = @length - 1;
SET @code = ROUND(32*RAND(),0) - 6;
IF @code BETWEEN 1 AND 26
SET @string = @string + CHAR(ASCII('a')+@code-1);
ELSE
SET @string = @string + ' ';
END
-- Ready for the record
SET NOCOUNT ON;
INSERT INTO [SP].[SMSG].[TMSG VALUES (
-- @row,
@string,
ROUND(2000000*RAND()-1000000,9),
ROUND(2000000*RAND()-1000000,9),
GETDATE(),
CONVERT(DATETIME, ROUND(60000*RAND()-30000,9)),
null,
null,
@string,
@string,
null,
null )
END
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Could you restate your question? I'm unable to understand what you are looking for from the experts.
ASKER
Sure.
I Would like to measure the performance metrics during the maximum load of a certain table. To keep it simple just run the same insert stmt again and again (using various threads/users/agents) to the same table till I get 100% CPU usage. What is the maximum capacity the system can handle for just doing a multiple insert to the same table(Daily Partitioned) with clustered index on it?
This is a messaging application and this table is going to grow with the messages. I'm doing the capacity planning.
Thanks,
~sve.
I Would like to measure the performance metrics during the maximum load of a certain table. To keep it simple just run the same insert stmt again and again (using various threads/users/agents) to the same table till I get 100% CPU usage. What is the maximum capacity the system can handle for just doing a multiple insert to the same table(Daily Partitioned) with clustered index on it?
This is a messaging application and this table is going to grow with the messages. I'm doing the capacity planning.
Thanks,
~sve.
ASKER
Thanks for the help.