Re: [dev] startup time of some interpreters

2020-02-20 Thread sylvain . bertrand
Hi, Out of the blue: I recently did switch from the "compiled" version of youtube-dl to the use of it's raw code straight from the git repository, because it felt starting significantly faster. (nobody should have to use youtube-dl to get the video/dash url) -- Sylvain

Re: [dev] startup time of some interpreters

2020-02-20 Thread Hadrien Lacour
On Thu, Feb 20, 2020 at 02:24:22PM -0500, Greg Reagle wrote: > On Thu, Feb 20, 2020, at 13:07, Hadrien Lacour wrote: > > A much more accurate mesure of disgust is the number of syscall made for > > such a > > simple task: > > That's very interesting, thank you. Do you know how to write a similar

Re: [dev] startup time of some interpreters

2020-02-20 Thread Greg Reagle
On Thu, Feb 20, 2020, at 12:48, Eric Pruitt wrote: > One problem I see with these benchmarks is that it's not an entirely > fair comparison. For example, in Python, you're only printing some text, > but you aren't importing any modules. That's true, but I was just comparing the overhead of the int

Re: [dev] startup time of some interpreters

2020-02-20 Thread Greg Reagle
On Thu, Feb 20, 2020, at 13:07, Hadrien Lacour wrote: > Why would it be "defective" other than sh or I/O adding time noise? Because I am a flawed and imperfect person who makes mistakes, and while I consider myself a competent programmer, I know that there are people here on suckless who are exp

Re: [dev] startup time of some interpreters

2020-02-20 Thread Hadrien Lacour
On Thu, Feb 20, 2020 at 12:22:53PM -0500, Greg Reagle wrote: > Hello. I am amazed at how fast Lua is to start up and shut down. Is my > benchmark defective in any way? Lua seems to start up and exit faster than > bash, python, rc, and ksh. Dash and mksh are faster. These interpreters are > all p

Re: [dev] startup time of some interpreters

2020-02-20 Thread Eric Pruitt
On Thu, Feb 20, 2020 at 12:22:53PM -0500, Greg Reagle wrote: > Hello. I am amazed at how fast Lua is to start up and shut down. Is my > benchmark defective in any way? Lua seems to start up and exit faster > than bash, python, rc, and ksh. Dash and mksh are faster. These > interpreters are all pack

[dev] startup time of some interpreters

2020-02-20 Thread Greg Reagle
Hello. I am amazed at how fast Lua is to start up and shut down. Is my benchmark defective in any way? Lua seems to start up and exit faster than bash, python, rc, and ksh. Dash and mksh are faster. These interpreters are all packages from Debian Stable 10 "Buster". /usr/bin/time sh -c 'for i i