Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6197031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:44:57+00:00 2026-05-24T03:44:57+00:00

I figure by the use cases node is designed for that it would have

  • 0

I figure by the use cases node is designed for that it would have much less overhead than python would when starting up. But can anyone confirm this by way of experience or benchmarks.

The reason I ask is I’m working on a project in which we are starting many, ~20, python scripts every minute. In these processes we are doing tons of IO with databases and the network. This is a place node would shine, so I want to explore the benefits of possibly using node over python here. I know I could use twisted here to do my i/o asynchronously, but I still need to start these processes up every minute.

Edit:

I know that its not always seen as ideal to start processes like described here. But in this architecture for this system this is the ideal solution. This is why I consider node. Because V8 is event driven only, calling “node myscript.js” at a rate of 20/min shouldn’t matter. Calling myscript.js IS the event. Its just not in the browser anymore. [edit] Totally Wrong

After driving to work and thinking about this, I guess my question should have been about how best to benchmark code. From there I could profile both designs.

Update:

brandizzi showed me my err. Doing ‘node myscript.js’ is NOT the event. And in the end, the node interpreter does take a little longer to start than python. However, that amount is pretty much nothing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T03:45:00+00:00Added an answer on May 24, 2026 at 3:45 am

    Your question is too vague IMHO. Anyway, if you want to compare the startup time, why not just time? Look at some examples of it (the files null.* are empty since we are trying to measure the boot time only):

    $ i=0
    $ time while [ $((i++)) -lt 1000 ] ; do python null.py ; done
    
    real    0m55.777s
    user    0m30.154s
    sys 0m13.910s
    
    $ i=0
    $ time while [ $((i++)) -lt 1000 ] ; do node null.js ; done
    
    real    1m37.618s
    user    0m59.578s
    sys 0m18.038s
    

    These preliminary results indicate that node is somewhat slower to boot up. (Your statement that “Calling myscript.js IS the event” does not look true to me and my suspicion seems confirmed. myscript.js invocation is an event – but calling it with node myscript.js loads an entire process to just treat this event.)

    To be honest, however, the vagueness of your question makes me wonder if you are not trying some time of premature optimization – in other words, it looks like you not even has a problem to be solved yet! I can be wrong, of course, but maybe you do not need to worry about this question for now (even because I started one thousand processes of each interpreter in more or less one minute – if you will start just twenty the start up of the interpreter may be no problem.)

    Anyway, my pythonista side would make some suggestions. For example: how much time the processes take to finish? If it is a short time, you really can think about using the Poll of the multiprocessing module, which would create a poll of processes for managing your requirements. Even you you want to invoke your scripts through some kind of shell script (because there is no much difference between in invoking them through a Bash script or the multiprocessing module anyway), I bet Python has the advantage of generating a bytecode .pyc file. Does V8 do it too?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a quick question that I could not figure out in the docs
I have a very basic regular expression that I just can't figure out why
Probably a stupid question but so far I can't figure this out... I have
If I have a project that contains similar classes and some may use the
I can't figure out a use case for being able to annotate interfaces in
I can't figure out the use for this code . Of what use is
I've looked around on google and I cannot figure out to use for instance
I can use stat() to figure out what permissions the owner, group, or others
I am struggling to figure out how to use the scipy.distributions package and wondered
I'm trying to figure out how to use Emacs Code Browser (ECB) and one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.