Re: speed test

2009-12-04 Thread Rene Schickbauer
Xiao Lan (小兰) wrote: Hi! Also, with both languages, you will have an IO bottleneck. Yes IO is really the bottleneck I have seen that. You can greatly reduce IO wait if you write the data to a different disk than you read from. Speed up things even more, consider using a hardware RAID

Re: speed test

2009-12-04 Thread Teo
Dear Matt, On Dec 2, 5:29 pm, matthew.leonha...@gmail.com (Matt) wrote: Maybe it's not so suitable to ask this here. But is there a good way (code sample?) to implement a speed test between Perl and C? For a project which handles lots of data we want to know how slower perl is than C

Re: speed test

2009-12-04 Thread matt
On Dec 3, 6:56 am, shlo...@iglu.org.il (Shlomi Fish) wrote: Hi matt! On Wednesday 02 Dec 2009 18:29:53 matt wrote: On Dec 1, 8:58 pm, practicalp...@gmail.com wrote: Hello, Maybe it's not so suitable to ask this here. But is there a good way (code sample?) to implement a speed

Re: speed test

2009-12-04 Thread Uri Guttman
m == matt matthew.leonha...@gmail.com writes: One should note that there's also the overhead of the bash loop here. m Valid, but I considered it to be irrelevant as both executables were m subjected to the same loop. did you read my comments on your 'benchmark'? the fork/exec overhead

Re: speed test

2009-12-04 Thread Jenda Krynicky
From: Rob Coops rco...@gmail.com A daily job that by the sound of it will not be changing a whole lot, jut get executed pretty much till the end of times... C is your friend. Perl would certainly get the job done and on time without to much problems, but if you are worried there isn't much

Re: speed test

2009-12-04 Thread Dave Tang
On Sat, 05 Dec 2009 10:07:34 +1000, Jenda Krynicky je...@krynicky.cz wrote: what was the name of that law? Something that said that the speed of computers doubles every ??? years. Were you referring to this? http://en.wikipedia.org/wiki/Moore's_law Dave -- Using Opera's revolutionary

Re: speed test

2009-12-03 Thread matt
On Dec 1, 8:58 pm, practicalp...@gmail.com wrote: Hello, Maybe it's not so suitable to ask this here. But is there a good way (code sample?) to implement a speed test between Perl and C? For a project which handles lots of data we want to know how slower perl is than C. Thanks

Re: speed test

2009-12-03 Thread Uri Guttman
m == matt matthew.leonha...@gmail.com writes: m To perform the test, I'd just use 'time': that is a very poor way to compare speed. it doesn't account for perl's startup time vs running time. m test.cc: m int main() m { m int a = 1 + 1; m } m test.pl: m #!/sw/bin/perl

Re: speed test

2009-12-03 Thread Shlomi Fish
Hi matt! On Wednesday 02 Dec 2009 18:29:53 matt wrote: On Dec 1, 8:58 pm, practicalp...@gmail.com wrote: Hello, Maybe it's not so suitable to ask this here. But is there a good way (code sample?) to implement a speed test between Perl and C? For a project which handles lots of data

Re: speed test

2009-12-03 Thread 兰花仙子
Thanks all. How about the files parsing with huge size (about 1T of each day)? The basic logic is: reach each line of every file (many files, each is gziped) look for special info (like IP, request url, session_id, datetime etc). count for them and write the result into a database generate the

Re: speed test

2009-12-03 Thread Rob Coops
On Thu, Dec 3, 2009 at 1:19 PM, Orchid Fairy (兰花仙子) practicalp...@gmail.com wrote: Thanks all. How about the files parsing with huge size (about 1T of each day)? The basic logic is: reach each line of every file (many files, each is gziped) look for special info (like IP, request url,

Re: speed test

2009-12-03 Thread Shlomi Fish
Hi Xiao! On Thursday 03 Dec 2009 14:19:10 Orchid Fairy (兰花仙子) wrote: Thanks all. How about the files parsing with huge size (about 1T of each day)? The basic logic is: reach each line of every file (many files, each is gziped) look for special info (like IP, request url, session_id,

Re: speed test

2009-12-03 Thread Raymond Wan
Hi Xiao, Orchid Fairy (兰花仙子) wrote: reach each line of every file (many files, each is gziped) look for special info (like IP, request url, session_id, datetime etc). count for them and write the result into a database generate the daily report and monthly report I'm afraid perl can't finish

Re: speed test

2009-12-03 Thread Uri Guttman
UG == Uri Guttman u...@stemsystems.com writes: m == matt matthew.leonha...@gmail.com writes: m So...I've proved that in my specific environment, C is (~3x) faster m than Perl at adding 1+1...Now as far as what tests you want to m implement, that's up to you and your specific needs.

Re: speed test

2009-12-03 Thread 小兰
On Thu, Dec 3, 2009 at 11:41 PM, Raymond Wan r@aist.go.jp wrote: Hi Xiao, Hi Raymond, Thanks for the info. Again, my name is Xiaolan Foo, xiao means small, lan means orchid. So the union of xiaolan is my first name, and foo is my last name.:-) Also, with both languages, you will have

Re: speed test

2009-12-02 Thread Raymond Wan
Hi, Jim Gibson wrote: At 9:58 AM +0800 12/2/09, =?GB2312?B?T3JjaGlkIEZhaXJ5ICjAvLuoz8nX0yk=?= wrote: You should also consider the speed of the programmer. I can write a Perl program in less than half the time it would take me to write the same program in C, C++, or Java. You will have to

speed test

2009-12-01 Thread 兰花仙子
Hello, Maybe it's not so suitable to ask this here. But is there a good way (code sample?) to implement a speed test between Perl and C? For a project which handles lots of data we want to know how slower perl is than C. Thanks. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org

Re: speed test

2009-12-01 Thread 张冬
Are you chinese? Are you cuers. 发件人: Orchid Fairy (兰花仙子) 发送时间: 2009-12-02 09:58:55 收件人: Perl Beginners 抄送: 主题: speed test Hello, Maybe it's not so suitable to ask this here. But is there a good way (code sample?) to implement a speed test between Perl and C? For a project which

Re: speed test

2009-12-01 Thread Jim Gibson
At 9:58 AM +0800 12/2/09, =?GB2312?B?T3JjaGlkIEZhaXJ5ICjAvLuoz8nX0yk=?= wrote: Hello, Maybe it's not so suitable to ask this here. But is there a good way (code sample?) to implement a speed test between Perl and C? For a project which handles lots of data we want to know how slower perl