Gossamer Forum
Home : General : Perl Programming :

Benchmarking?

Quote Reply
Benchmarking?
Anyone got any ideas on how I would be able to do benchmarking on a script im working on? It uses MySQL to hold the email addresses/names,so I'm expecting 1,000,000 email addresses to be a nice figure.

Obviously I dont want to send out 1million emails to myself to see if they all get here. Is there any way to run the script, maybe send the emails somewhere, and see what success rate there was?

Thanks for any help you can provide.

BTW, this is in PHP.

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] Benchmarking? In reply to
Um... probably pretty inaccurate, but how about:

1,000,000(TimeToProcessSingleRecord + TimeToProcessSingleEmail)

--Philip
Links 2.0 moderator
Quote Reply
Re: [King Junko II] Benchmarking? In reply to
Good idea. Problem is how would I work out the time to process/send a single email Wink

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] Benchmarking? In reply to
hm... since you insist on using PHP there's nothing most of us tell you.

--Philip
Links 2.0 moderator
Quote Reply
Re: [King Junko II] Benchmarking? In reply to
Ok, how would you do it in Perl? Maybe add a time stamp before the process starts, and a time stamp after, and then take the first away from the last?

Thanks

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] Benchmarking? In reply to
In Perl you would

use Benchmark;

And then use the timethese() function.

- wil
Quote Reply
Re: [Wil] Benchmarking? In reply to
Ah, maybe there is a similar method in PHP. I'll have a look. Thanks Smile

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] Benchmarking? In reply to
Try benchmarking Apache instead of putting code in your script. This would give you the same information.

http://perl.apache.org/...nce.html#ApacheBench

- wil
Quote Reply
Re: [Wil] Benchmarking? In reply to
Or maybe this will help you?

- wil
Quote Reply
Re: [Wil] Benchmarking? In reply to
Cool. thanks. That gave me a rough idea of what do do...now I just gotta complete the script I want to test Tongue

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!