Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Comparison between SpiderMonkey and the PH7 Embedded PHP Engine
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mrad Chems Eddine  
View profile  
 More options Nov 8 2012, 8:40 pm
Newsgroups: mozilla.dev.tech.js-engine
From: Mrad Chems Eddine <james.m...@gmail.com>
Date: Fri, 9 Nov 2012 02:40:02 +0100
Local: Thurs, Nov 8 2012 8:40 pm
Subject: Comparison between SpiderMonkey and the PH7 Embedded PHP Engine
Hello,
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.
I need an embeddable scripting engine to add a dynamic web interfaces
to my C/C++ application and I hesitate between JavaScript
(SpiderMonkey) and PHP (PH7 Engine).
Thanks.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave Mandelin  
View profile  
 More options Nov 12 2012, 8:40 pm
Newsgroups: mozilla.dev.tech.js-engine
From: Dave Mandelin <dmande...@gmail.com>
Date: Mon, 12 Nov 2012 17:40:51 -0800 (PST)
Local: Mon, Nov 12 2012 8:40 pm
Subject: Re: Comparison between SpiderMonkey and the PH7 Embedded PHP Engine
I don't know of anything, but it wouldn't be too hard to take a few SunSpider benchmarks, port them to PHP, and see what happens.

Dave


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nicolas B. Pierron  
View profile  
 More options Nov 12 2012, 9:10 pm
Newsgroups: mozilla.dev.tech.js-engine
From: "Nicolas B. Pierron" <nicolas.b.pier...@mozilla.com>
Date: Mon, 12 Nov 2012 18:10:12 -0800
Local: Mon, Nov 12 2012 9:10 pm
Subject: Re: Comparison between SpiderMonkey and the PH7 Embedded PHP Engine
Hi,

On 11/08/2012 05:40 PM, Mrad Chems Eddine wrote:

> I need an embeddable scripting engine to add a dynamic web interfaces
> to my C/C++ application and I hesitate between JavaScript
> (SpiderMonkey) and PHP (PH7 Engine).

I don't know if this [1] website which is comparing *programing language*
might help you find what you are looking for.  Be aware that submitted tests
might not be optimal in all represented aspect.  This website deals with one
implementation of a JS engine and one implementation on PHP because they are
comparing engines and not implementations.

I hope this link might help you.  If you want, you can get the benchmark for
each language by clicking on language links of section 3.

[1]
http://shootout.alioth.debian.org/u32/benchmark.php?test=all&lang=v8&...

--
Nicolas B. Pierron


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Fink  
View profile  
 More options Nov 13 2012, 7:12 pm
Newsgroups: mozilla.dev.tech.js-engine
From: Steve Fink <sf...@mozilla.com>
Date: Tue, 13 Nov 2012 16:12:43 -0800
Local: Tues, Nov 13 2012 7:12 pm
Subject: Re: Comparison between SpiderMonkey and the PH7 Embedded PHP Engine
On 11/08/2012 05:40 PM, Mrad Chems Eddine wrote:

> Hello,
> 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
> to my C/C++ application and I hesitate between JavaScript
> (SpiderMonkey) and PHP (PH7 Engine).
> Thanks.

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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Fink  
View profile  
 More options Nov 13 2012, 7:12 pm
Newsgroups: mozilla.dev.tech.js-engine
From: Steve Fink <sf...@mozilla.com>
Date: Tue, 13 Nov 2012 16:12:43 -0800
Local: Tues, Nov 13 2012 7:12 pm
Subject: Re: Comparison between SpiderMonkey and the PH7 Embedded PHP Engine
On 11/08/2012 05:40 PM, Mrad Chems Eddine wrote:

> Hello,
> 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
> to my C/C++ application and I hesitate between JavaScript
> (SpiderMonkey) and PHP (PH7 Engine).
> Thanks.

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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
anand...@gmail.com  
View profile  
 More options Mar 26, 9:13 pm
Newsgroups: mozilla.dev.tech.js-engine
From: anand...@gmail.com
Date: Tue, 26 Mar 2013 18:13:40 -0700 (PDT)
Local: Tues, Mar 26 2013 9:13 pm
Subject: Re: Comparison between SpiderMonkey and the PH7 Embedded PHP Engine
I have wriiten a c++ wrapper which "

http://code.google.com/p/libjspp/

libjspp allows easy interfacing & interacting of C++ with javascript spidermonkey
Non intrusive to C++ & javascript world at same time.
Useful for applications which want to Embed & Extend Javascript in object oriented manner.
Very thin interface virtually no overhead by using C++ templates.
App can create multiple javascript engines per process or per thread and export native functions , class, variables to selected engines
Multi threaded – support for engine per thread.
dynamically define cached & non cached property.
Caching of properties defined in native & anonymous object allow direct local access without need of conversions between javascript & native.
Caching of strings avoids trivial & frequents memory allocations.
Memory allocation are extern to javascript smartly managed by library
Javascript world is agnoustic to the fact that javascript class / object was by created and managed via C++
Exported C++ class objects are agnoustic to fact that they are proxy to Javascript class / object.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »