Once more talking about performance:
What's better?
Javascript Plugin that runs all the time, updating a variable every time?Or a Parallel Process that does the same?
Depends on how the JS is written. Either way, ultimately it is JS being run for the events too. I'd be willing to bet that the JS method would be slightly faster as that would be one less layer of abstraction to go through.
If i do something like adding a wait of 5 frames to the parallel process, would that improve performance?
Would it update once 5 frames, instead of every time?
Yes, it would. Adding a wait to a parallel process that does not need to check conditions 60 times every second is a smart thing to do.
In answer to the original question, a plugin, if written well, will always outperform the same thing done in event commands, because every single event command is executed by a series of JS commands - get the command, get the parameters, call the function for the command, do the actual command, tell the caller that we were successful - vs do the actual command in JS.
In a way, that question is like asking "what is better, eating an apple or listening to music?"
Both have their purposes, and it depends on what you want to do to determine which is better.
Yes, theoretically JavaScript is faster because it has one level less of interpreting the commands. But it is also more complex and more prone to errors - the events are better able to prevent breaking the engine.
There are some things I would never do in JavaScript, because that would risk compatibility for little gain. And other game mechanics would become extremely cumbersome and tedious if tried as an event, because events are more limited.