Time to start of execution

24 views
Skip to first unread message

Daniel Sundström

unread,
Aug 25, 2015, 8:37:42 PM8/25/15
to BeagleBoard
Hi, 

This might be a very stupid question, in which case I apologise - but I've read through all the source code
I can find without understanding why. 

So, when using the pre-installed image on a Rev C BBB and running one of the examples - say "demo_blinkled", the 
board responds more or less immediately. But, when running the exact same program "manually" from the CLI over SSH, 
it takes at least 3-5 seconds before the board reacts. 

My conclusion is that this time is basically the board loading the node-environment on script start when running from the CLI, but
that the page presenting demos on the pre-installed image are already running within this environment and thus, of course
doesn't need to start it. 

Is it this simple or is there some kind of optimisation I just can't find in source code anywhere? 

Many thanks, 
Daniel

William Hermans

unread,
Aug 25, 2015, 8:43:34 PM8/25/15
to beagl...@googlegroups.com
I'm assuming you're referring to a bonescript running through Nodejs ?

So, I can not tell you why, but I had my own custom image for which I built my own version of Nodejs from sources. I experienced the exact same thing. Nodejs apps took like you say around 3+ seconds to start up, but seem reasonably responsive afterwords.

Anyway, that, and a couple other reasons is why I recently chose to use C with libmongoose for web server / websocket duties.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel Sundström

unread,
Aug 26, 2015, 6:36:33 AM8/26/15
to beagl...@googlegroups.com
Yes, sorry for being unclear - I'm indeed referring to a bonescript through Nodejs.

That's interesting - that would seem to support my guess - many thanks!

Cheers,
Daniel
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/-CM-lUJNpT4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages