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
Performance of Loading a Guest Page
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
  4 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
 
Jamey Wood  
View profile  
 More options Nov 8 2012, 11:52 am
From: Jamey Wood <jamey.w...@gmail.com>
Date: Thu, 8 Nov 2012 08:52:11 -0800 (PST)
Local: Thurs, Nov 8 2012 11:52 am
Subject: Performance of Loading a Guest Page

Is there any guidance on minimizing the time is takes a load a caja guest
page?  The attached files demonstrate a little test case I'm using to
measure the time it takes to load and run a trivial caja guest page.
 Please let me know if there are any major issues with this methodology.

Here are samples of its output across three different browsers (all on a
2.2 GHz i7 MacBook Pro with 8GB of RAM):

  Chrome 23.0.1271.64:
    Total Time: 964ms (cold start in a new browser)
    Total Time: 740ms (after a few reloads in the same browser tab)

  Firefox 16.0.2:
    Total Time: 740ms (cold start in a new browser)
    Total Time: 762ms (after a few reloads in the same browser tab)

  Safari 6.0.2:
    Total Time: 502ms (cold start in a new browser)
    Total Time: 443ms (after a few reloads in the same browser tab)

I certainly wouldn't claim that this a valid full-blown benchmark.  But it
does seem to give a general indication of the startup overhead for a caja
guest on various browsers.

Are there any general practices that can be used to minimize this overhead?
 Has anyone done more extensive tests along these lines?  And if so, did
those tests produce similar results (such as the significantly better guest
page load times on Safari versus Chrome or Firefox)?

Thanks,
Jamey

  container.html
< 1K Download

  guest.html
< 1K Download

 
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.
Kevin Reid  
View profile  
 More options Nov 8 2012, 12:16 pm
From: Kevin Reid <kpr...@google.com>
Date: Thu, 8 Nov 2012 09:16:00 -0800
Subject: Re: [Caja] Performance of Loading a Guest Page

On Thu, Nov 8, 2012 at 8:52 AM, Jamey Wood <jamey.w...@gmail.com> wrote:
> Is there any guidance on minimizing the time is takes a load a caja guest
> page?  The attached files demonstrate a little test case I'm using to
> measure the time it takes to load and run a trivial caja guest page.
>  Please let me know if there are any major issues with this methodology.

[...]

> Are there any general practices that can be used to minimize this overhead?

Practices? Stop using {forceES5Mode: false}. ES5 mode is the future and if
it isn't significantly faster (on supported browsers), we want to know.

(Note that forceES5Mode is intended for debugging/testing purposes only and
if set to true may cause insecurity. You should never use it in a public
application. Its relative "es5Mode" is safer, if you must have a flag.)


 
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.
Jamey Wood  
View profile  
 More options Nov 8 2012, 2:14 pm
From: Jamey Wood <jamey.w...@gmail.com>
Date: Thu, 8 Nov 2012 11:14:02 -0800 (PST)
Local: Thurs, Nov 8 2012 2:14 pm
Subject: Re: [Caja] Performance of Loading a Guest Page

Thanks, Kevin.

The reason I did that is that I'm not clear on how functional and
production-ready ES5 mode really is.  When will it no longer be label as
Experimental?

As one specific example, does it support external javascript library
references?  When I change the little test case to use jquery (per the
attached files), it stops working in Safari 6.  Is that expected at this
point?

Thanks,
Jamey

  container_jquery.html
< 1K Download

  guest_jquery.html
< 1K Download

 
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.
๏̯͡๏ Jasvir Nagra  
View profile  
 More options Nov 12 2012, 2:43 pm
From: ๏̯͡๏ Jasvir Nagra <jas...@google.com>
Date: Mon, 12 Nov 2012 11:43:16 -0800
Local: Mon, Nov 12 2012 2:43 pm
Subject: Re: [Caja] Performance of Loading a Guest Page

On Thu, Nov 8, 2012 at 11:14 AM, Jamey Wood <jamey.w...@gmail.com> wrote:
> Thanks, Kevin.

> The reason I did that is that I'm not clear on how functional and
> production-ready ES5 mode really is.  When will it no longer be label as
> Experimental?

ES5 mode is very functional and we're continuing to mark it as experimental
till we've closed a few more semantic differences between ES5/3 and ES5
modes that allows legacy code to work more similarly on browsers that run
ES5 mode vs browsers that only support ES5/3.  Our plan is to turn off the
experimental flag before the end of year.

As one specific example, does it support external javascript library

> references?  When I change the little test case to use jquery (per the
> attached files), it stops working in Safari 6.  Is that expected at this
> point?

Your container code is explicitly forbidding the loading of external
resources.  Specifically the second argument to caja.load() is a callback
that specifies what URLs you want to allow -- see
https://developers.google.com/caja/docs/controllingnetwork/.

If that was just an error in copy and paste, what error message do you get
when you run the code on Safari?

jas


 
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 »