[124857] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

Re: Books for the NOC guys...

daemon@ATHENA.MIT.EDU (Michael Thomas)
Tue Apr 6 14:16:24 2010

Date: Tue, 06 Apr 2010 11:15:48 -0700
From: Michael Thomas <mike@mtcc.com>
To: Marty Anstey <marty.anstey@sunwave.net>
In-Reply-To: <4BBB77E7.2010202@sunwave.net>
Cc: nanog@nanog.org
Errors-To: nanog-bounces+nanog.discuss=bloom-picayune.mit.edu@nanog.org

On 04/06/2010 11:05 AM, Marty Anstey wrote:
>> that said, php is awesome otherwise, been using it for last 2 years
>> strictly in 'enterprise' deployment..
>> id just say perl is faster and more efficient for batch scripts.
>
> I can't speak specifically to the performance differences for comparible
> operations in PHP and PERL as I have never done a side-by-side
> comparison myself. But FWIW, I have parsed multi-gigabyte files with PHP
> on the command line and it's never been markedly "slow". Sure, it's not
> pure C but it's never been so slow that i've thought - "heck, this would
> be a lot faster with PERL"...

One data point that I can speak to is the difference in parsing XML using
the expat library between python and PHP for very large files. Python was
quite a bit faster than PHP, but I can't recall the exact magnitude (2x? 10x?
it's been too long but it was pretty significant).

That said, performance is only one reason to use a language over others.
PHP programmers are probably 10x more plentiful than python programmers,
as another metric. So it very much depends on the larger picture.

Mike, who hasn't found the CLI interface to PHP particularly better or worse than others


home help back first fref pref prev next nref lref last post