in reply to What can affect perl startup time?

If I understand you correctly you are suggesting a load/execute time of the order of 5ms. That is comparable with hard drive (spinning rust version) seek times. So what you are measuring is simply the OS's overhead for loading and executing Perl and Perl's overhead for loading, compiling and executing your script. Given your script is essentially a no-op, you are asking us to guess why your OS and hardware are performing differently than some other past combination you had. We are supposed to do that how? And it matters why?

If you are running a web server and that represents overhead in page fetches there are ways to mitigate the problem. Is that the question you should be asking?

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond

Replies are listed 'Best First'.
Re^2: What can effect perl startup time?
by nysus (Parson) on Mar 23, 2022 at 02:11 UTC

    Some of it is out of curiosity and some of it is is I have a shell function wrapping a perl script which does tab completion and I wanted to get a baseline.

    My m1 mac is almost 100% faster: 0.21s user 0.13s system 85% cpu 0.399 total

    Given the non-difference between my 2020 imac and 2014 imac, I'm wondering if I might have something configured in a way that is slowing things down. Both are running SSD drives but the 2020 machine has a very beefy processor. So that leads me to believe there is some kind of bottleneck on the newer mac. Maybe it's the OS version (Big Sur vs. Monterey). But the m1 and the 2020 imac are running the same OS version and there is a huge difference.

    So I'm very curious to know what might explain the similar times between the older mac and the newer one.

    $PM = "Perl Monk's";
    $MC = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar Parson";
    $nysus = $PM . ' ' . $MC;
    Click here if you love Perl Monks