in reply to Python regex faster than Perl?

In the past whenever I benchmarked perl against python in practical applications that I cared about, perl would win. However, python has been on a major performance binge for the past several years,

I've since stopped benchmarking perl vs python (I've picked up rust which I use when I care about performance), but I imagine that python has sped up relative to perl and is likely faster in more situations that it once was (depending, of course, on exactly what you are doing and how you code your algorithms).

Good Day,
    Dean

Replies are listed 'Best First'.
Re^2: Python regex faster than Perl?
by Fletch (Bishop) on Mar 27, 2025 at 16:21 UTC

    There's been a decision at $WORK to move things to python so I've been (reluctantly) picking the minimal amount I know back up and there are some "nice" things in their ecosystem. I've never really used PDL but pandas is pretty handy for CSV/spreadsheet-y stuff, not to mention polars which peps things up with rust under the hood while being mostly interoperable where not a direct drop-in replacement. The language is still bletcherous, but thanks to hylang you can write in a lisp and hide some of the warts. We're stuck at 3.9 for $REASONS but I'm interested what things look like when we eventually catch up to 3.13.

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.