3 ms·
Yes, so that means Python is slower to start on your system too. Not sure what you mean by "Javascript"... what program are you running?
by mehrdadn 7y ago
Yes, so that means Python is slower to start on your system too. Not sure what you mean by "Javascript"... what program are you running?
- earenndil 7y agoJavascriptcore; jsc. It's part of webkit (comes from the webkit2gtk package on my system).
- mehrdadn 7y agoOh I see. Cool. Now compare with Lua: $ python3 -c "import sys, timeit; n = 10; print('%.2f ms/spawn' % (1000 * timeit.timeit('subprocess.call([%r, %r], stdin=subprocess.DEVNULL, stdout=subprocess.DEVNULL)' % ('lua', '-'), 'import subprocess', number=n) / n))" 1.09 ms/spawn NewLisp: $ python3 -c "import sys, timeit; n = 10; print('%.2f ms/spawn' % (1000 * timeit.timeit('subprocess.call([%r, %r], stdin=subprocess.DEVNULL, stdout=subprocess.DEVNULL)' % ('newlisp', '-'), 'import subprocess', number=n) / n))" 1.25 ms/spawn