One of the things that kept me on Perl was its great performance.
http://benchmarksgame.alioth.debian.org/u64q/perl.php
I'd like to go for the win, win. Is that 'FTWW?'
One of the things that kept me on Perl was its great performance.
http://benchmarksgame.alioth.debian.org/u64q/perl.php
I'd like to go for the win, win. Is that 'FTWW?'
http://benchmarksgame.alioth.debian.org/u64q/benchmark.php?t...
So CPython is about the same speed as Perl. PyPy's speed comparison suggests that PyPy is 2-20x faster than CPython. What else do you want to know?
Perl, btw, is not noted for its "great performance" in any context I've ever heard of.
http://stackoverflow.com/questions/12793562/text-processing-...
These days, however, it appears that Python has really come into its own. I started using Sublime Text so that got me into trying out Python.
Of all the common scripting languages I think TCL uses a different algorithm for regex matching and is considerably faster than Perl, especially on longer strings. Let me find some corroborating docs.
Ok this has some info http://swtch.com/~rsc/regexp/regexp1.html
I love vim, but jesus I can never remember which vim regex metacharacters need escaping to get their meta-meaning, and which need escaping to get their non-meta meaning.
I dunno, I haven't used it in the past, because...
1) "It is recommended to always keep the 'magic' option at the default setting, which is 'magic'. This avoids portability problems."
2) Nor do I want to type two extra characters in every damn regex!
So, it only occurs to me right now, the right thing to do for me is this: the first instant I'm confused about whether \( means grouping or literal paren, I should immediately start my pattern with \v or \V. No unportability of plugins, no marginal cost on regexes that don't care, marginal benefit when it does matter.
1. web frameworks performance: http://mindref.blogspot.com/2012/09/python-fastest-web-frame... 2. template engine performance: http://mindref.blogspot.com/2012/07/python-fastest-template....
It would be interesting to see how PyPy 1.9 compares to 2.0 in those benchmarks.
http://tratt.net/laurie/research/pubs/files/metatracing_vms/
Cross-langauge benchmarks are inevitably synthetic, and synthetic benchmarks can only tell you so much. It's important not to over-interpret them. But they can give you a rough idea of what's going on, at least in some circumstances. If someone wanted to add Perl to the experiment set, I'd gladly accept a patch to the benchmarking suite.