TraceMonkey vs. V8 JavaScript Engine

Discuss about Group-Office development here

Moderator: Developers

User avatar
Mr.Magoo
Posts: 38
Joined: Thu May 14, 2009 5:45 pm

TraceMonkey vs. V8 JavaScript Engine

Postby Mr.Magoo » Mon Jul 06, 2009 9:52 am

Does anyone have any particular experiences with running GO3 under TraceMonkey
(as implemented in the new Firef0x 3.5 release) vs. running GO3 under V8 JavaScript
Engine (as implemented in Google's Chrome)?

As GO3 is a nearly all-JavaScript-app, it should benefit tremendously from the increased
execution speed brought on by the just-in-time native code compilation.

If you decide to give Firefox 3.5 a try, then don't forget to enable Just-In-Time compilation
as follows:
-1- open a new tab with Ctrl/T
-2- type about:config
-3- confirm that you will be carefull ;-)
-4- in the filterbox, type "jit"
-5- enable at least setting: "javascript.options.script.content" by right clicking it and selecting Toggle until column value shows "true"
If you feel adventurous, then also enable setting: "javascript.options.script.chrome".

Read about TraceMonkey here: https://wiki.mozilla.org/JavaScript:TraceMonkey
Read about V8 JavaScript Engine here: http://code.google.com/p/v8/

Mr.Magoo
"People, let's do it to them, before they do it to us!”
...Hillstreet Blues
mschering
Site Admin
Site Admin
Posts: 8292
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: TraceMonkey vs. V8 JavaScript Engine

Postby mschering » Mon Jul 06, 2009 10:04 am

I haven't tried it yet. I'm still on firefox 3.0.11 and it runs fine with that too.
Best regards,

Merijn Schering
Intermesh
User avatar
Mr.Magoo
Posts: 38
Joined: Thu May 14, 2009 5:45 pm

Re: TraceMonkey vs. V8 JavaScript Engine

Postby Mr.Magoo » Mon Jul 06, 2009 12:03 pm

You're running GO3 on last centuries' SpiderMonkey engine.
In case you should decide to give Firefox 3.5 a try, one word of advice:
fasten your seatbelts and remain seated at all times :shock:
"People, let's do it to them, before they do it to us!”
...Hillstreet Blues
mschering
Site Admin
Site Admin
Posts: 8292
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: TraceMonkey vs. V8 JavaScript Engine

Postby mschering » Mon Jul 06, 2009 12:37 pm

Yes I know it will be much faster. But the ubuntu team did not package 3.5 yet unfortunately. We all use Ubuntu here.
Best regards,

Merijn Schering
Intermesh
mschering
Site Admin
Site Admin
Posts: 8292
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: TraceMonkey vs. V8 JavaScript Engine

Postby mschering » Mon Jul 06, 2009 12:43 pm

I've just found a way to easily install 3.5 next to 3.0.11 and I'm happy to see it is way faster!!!
Best regards,

Merijn Schering
Intermesh
User avatar
Mr.Magoo
Posts: 38
Joined: Thu May 14, 2009 5:45 pm

Re: TraceMonkey vs. V8 JavaScript Engine

Postby Mr.Magoo » Mon Jul 06, 2009 1:12 pm

What you're experiencing now, is only the beginning.
TraceMonkey's implementation of trace-based compilation (spanning multiple methods) into native
code focusses mainly on monitoring bytecodes in loops and recursive functions, but will expand to
the DOM model later on.
Be prepared for more drastic speed improvements the coming period. These are exciting times.

Mr.Magoo
"People, let's do it to them, before they do it to us!”
...Hillstreet Blues
User avatar
Mr.Magoo
Posts: 38
Joined: Thu May 14, 2009 5:45 pm

Re: TraceMonkey vs. V8 JavaScript Engine

Postby Mr.Magoo » Thu Aug 06, 2009 9:33 am

Although completely off-topic, I'll give you a hint.
Press Alt+F11 or select Tools->Macro->Visual Basic Editor. And there you have it.
If you want to include scripts, you're options are:
-1- Visual Basic Script (VBA), which is the official Microsoft Office scripting language,
-2- and JScript, which is NOT JavaScript, but more a VBA with C-like syntax, and also
officialy endorsed by Microsoft. Hell, it is Microsoft for all I know.

Good Luck,
Mr.Magoo
"People, let's do it to them, before they do it to us!”
...Hillstreet Blues

Who is online

Users browsing this forum: No registered users and 2 guests

cron