Load Testing Script

Does anyone have such a beast for Oracle? I am trying to eliminate the
Perl/DBD::Oracle side of the equation for some problems in our app. I
did a looping select 20,000 times and the same for an insert.

I thought that someone might have a better script...

Robert
sigzero [ Di, 07 August 2007 16:51 ] [ ID #1789141 ]

RE: Load Testing Script

Hey Robert,

Are you going from Oracle to Oracle?

Peter

-----Original Message-----
From: Robert Hicks [mailto:sigzero [at] gmail.com]
Sent: Tuesday, August 07, 2007 7:52 AM
To: dbi-users [at] perl.org
Subject: Load Testing Script

Does anyone have such a beast for Oracle? I am trying to eliminate the
Perl/DBD::Oracle side of the equation for some problems in our app. I
did a looping select 20,000 times and the same for an insert.

I thought that someone might have a better script...

Robert


This E-mail message is for the sole use of the intended recipient(s) and
may contain confidential and privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If you are not
the intended recipient, please contact the sender by reply E-mail, and
destroy all copies of the original message.
Peter.Loo [ Di, 07 August 2007 17:07 ] [ ID #1789142 ]

Re: Load Testing Script

Loo, Peter # PHX wrote:
> Hey Robert,
>
> Are you going from Oracle to Oracle?
>
> Peter

Yup...I am basically wanting to test against 1 particular Oracle db.

Robert
sigzero [ Di, 07 August 2007 18:47 ] [ ID #1789143 ]

RE: Load Testing Script

From a flat file?

Peter

-----Original Message-----
From: Robert Hicks [mailto:sigzero [at] gmail.com]
Sent: Tuesday, August 07, 2007 9:47 AM
To: dbi-users [at] perl.org
Subject: Re: Load Testing Script

Loo, Peter # PHX wrote:
> Hey Robert,
>
> Are you going from Oracle to Oracle?
>
> Peter

Yup...I am basically wanting to test against 1 particular Oracle db.

Robert


This E-mail message is for the sole use of the intended recipient(s) and
may contain confidential and privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If you are not
the intended recipient, please contact the sender by reply E-mail, and
destroy all copies of the original message.
Peter.Loo [ Di, 07 August 2007 18:48 ] [ ID #1789144 ]

RE: Load Testing Script

Robert Hicks wrote:
> Does anyone have such a beast for Oracle? I am trying to eliminate the
> Perl/DBD::Oracle side of the equation for some problems in our app. I
> did a looping select 20,000 times and the same for an insert.
>
> I thought that someone might have a better script...


Have you tried the Benchmark module? It's in the Perl core.

- Philip
Philip.Garrett [ Di, 07 August 2007 19:03 ] [ ID #1789145 ]

Re: Load Testing Script

It probably doesn't matter. Right now I just have a script that does
inserts and selects. I control the database so I can do pretty much what
I need to do.

Loo, Peter # PHX wrote:
> From a flat file?
>
> Peter
>
> -----Original Message-----
> From: Robert Hicks [mailto:sigzero [at] gmail.com]
> Sent: Tuesday, August 07, 2007 9:47 AM
> To: dbi-users [at] perl.org
> Subject: Re: Load Testing Script
>
> Loo, Peter # PHX wrote:
>> Hey Robert,
>>
>> Are you going from Oracle to Oracle?
>>
>> Peter
>
> Yup...I am basically wanting to test against 1 particular Oracle db.
>
> Robert
>
>
> This E-mail message is for the sole use of the intended recipient(s) and
> may contain confidential and privileged information. Any unauthorized
> review, use, disclosure or distribution is prohibited. If you are not
> the intended recipient, please contact the sender by reply E-mail, and
> destroy all copies of the original message.
sigzero [ Di, 07 August 2007 19:08 ] [ ID #1789146 ]

Re: Load Testing Script

Garrett, Philip (MAN-Corporate) wrote:
> Robert Hicks wrote:
>> Does anyone have such a beast for Oracle? I am trying to eliminate the
>> Perl/DBD::Oracle side of the equation for some problems in our app. I
>> did a looping select 20,000 times and the same for an insert.
>>
>> I thought that someone might have a better script...
>
>
> Have you tried the Benchmark module? It's in the Perl core.
>
> - Philip

That really doesn't load test but yes I am using it in my script. I get
something like:

50000 inserts in: 39 wallclock secs ( 8.60 usr + 1.23 sys = 9.83 CPU)
50000 selects in: 76 wallclock secs (48.34 usr + 8.08 sys = 56.42 CPU)

Robert
sigzero [ Di, 07 August 2007 20:30 ] [ ID #1789147 ]

Re: Load Testing Script

--0-1285111499-1186674335=:52221
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

have you looked into sqlldr

Robert Hicks <sigzero [at] gmail.com> wrote: Garrett, Philip (MAN-Corporate) wrote:
> Robert Hicks wrote:
>> Does anyone have such a beast for Oracle? I am trying to eliminate the
>> Perl/DBD::Oracle side of the equation for some problems in our app. I
>> did a looping select 20,000 times and the same for an insert.
>>
>> I thought that someone might have a better script...
>
>
> Have you tried the Benchmark module? It's in the Perl core.
>
> - Philip

That really doesn't load test but yes I am using it in my script. I get
something like:

50000 inserts in: 39 wallclock secs ( 8.60 usr + 1.23 sys = 9.83 CPU)
50000 selects in: 76 wallclock secs (48.34 usr + 8.08 sys = 56.42 CPU)

Robert


--0-1285111499-1186674335=:52221--
axs [ Do, 09 August 2007 17:45 ] [ ID #1791132 ]

RE: Load Testing Script

Robert Hicks wrote:
> Garrett, Philip (MAN-Corporate) wrote:
>> Robert Hicks wrote:
>>> Does anyone have such a beast for Oracle? I am trying to eliminate
>>> the Perl/DBD::Oracle side of the equation for some problems in our
>>> app. I did a looping select 20,000 times and the same for an insert.
>>>
>>> I thought that someone might have a better script...
>>
>> Have you tried the Benchmark module? It's in the Perl core.
>
> That really doesn't load test but yes I am using it in my script. I
> get something like:
>
> 50000 inserts in: 39 wallclock secs ( 8.60 usr + 1.23 sys =3D 9.83
> CPU) 50000 selects in: 76 wallclock secs (48.34 usr + 8.08 sys =3D
> 56.42 CPU)

If you're looking to really load test your database, you can use (gasp!)
JMeter's jdbc sampler. Of course that means you can't use your Perl
modules...

- Philip
Philip.Garrett [ Do, 09 August 2007 18:44 ] [ ID #1791136 ]
Perl » perl.dbi.users » Load Testing Script

Vorheriges Thema: Using an existing JDBC Connection
Nächstes Thema: DBD::Oracle in 64 bit Linux