Pablo Fischer wrote at Sun, 24 Aug 2003 01:45:42 +0000:

> This maybe its not a Perl question.

I guess it ain't really not one.

> I have a system (with 3 classes), that works in this order:
> 
> 
> * Check in FTP for new files

Time depends on the time to connect to FTP.
However, the time is always independent of the programming language,
thus neglioabable to your problem.

> * Download new Files

Again independent of the programming language.

> * Unzip those files (.zip files)

Mostly independent of the programming language,
however you can always use the zip and unzip programs if a solution in a
specific language, e.g. a pure Perl solution might be slower.

So the time depends only on the size of files.

> * Each file has 3000 lines, and there are like 10 files (30,000 lines), So I 
> need to parse the 30,000 lines and order them

Do you need to parse them or do you need to sort them?
However, parsing is something Perl is very good in.
Thus you can simply obtain, a Perlish solution is the quickest way,
so you also don't need to know how quick Perl is.

Sorting is something different as there might be very quick c solution
specialised to sorting on hard disks.

But that depends also on the size of the files.
I assume simply 30_000 lines of 100 columns each
=> 3_000_000 bytes = 3 MB.
3 MB would be nowadays so less that it Perl's memory wasting wouldn't
create problems.
Unless memory problems, common sort routines are very quick in all
languages, also to Perl.

> * Parse File by File, and save the parssed file in a DB (MySql)

Depends on the time of the database.

> * Check to see if I need a backup of the Zip File

Depends on the check routine, but I assume it is also language independent.

> * Finish
> 
> How good its to do this in 10 seconds?

It's always possible, you'll only need a computer that is expensive
enough. However, if my guess of 3 MB is right, it should be easy with
nowadays desktop pcs in every language.

> Exists a website with benckmark running times in Perl?

http://www.google.com/search?q=benchmark+perl+programming+languages


Greetings,
Janek

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to