On 11/08/2012 05:40 PM, Mrad Chems Eddine wrote:
> Is there any benchmarks or any comparison cases between Sp derMonkey
> and the PH7 Embedded PHP Engine (http://ph7.symisc.net
) which compiles
> PHP scripts to bytecodes programs before execution.
If it only compiles to bytecode, then I would guess it's substantially
slower than SpiderMonkey or any of the other main JS engines. All the JS
engines use a JIT and varying levels of optimization. SpiderMonkey
compiles to bytecode for its "fast compile, slow execution" interpreter
and only JITs stuff that executes frequently; other engines go straight
to JITted code of some sort (using different optimization settings to
control startup speed vs execution speed.)
> I need an embeddable scripting engine to add a dynamic web interfaces
> (SpiderMonkey) and PHP (PH7 Engine).
I'm not sure what "dynamic web interfaces" means. Embedding a scripting
language engine like SpiderMonkey doesn't give you much web stuff.
I would guess that PH7 would be easier to embed than SpiderMonkey, but
SpiderMonkey would be faster. Honestly, V8 might be your best option --
basically the same speed as SpiderMonkey, but easier to embed. How its
embeddability compares to PH7, I've no clue.