Welcome Developers!

in

Welcome!

in

makeRequest() Performance Issues

Last post 04-30-2008 3:03 PM by Seize The Media. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 04-28-2008 11:44 AM

    • Egg
    • Top 50 Contributor
    • Joined on 02-05-2008
    • Posts 73

    makeRequest() Performance Issues

    I've been doing some informal testing of MakeRequest and it appears that sometimes responses are very slow (as much as 10 seconds according to FireBug. My application returns fairly small JSON objects to which I've included a execution time parameter, which I calculate by using the elapsed time to generate the file I send. I'm noticing some  very long latency as a result from what I can only assume is coming from MySpace's proxy. In the three examples below, you'll see 2 are fast, but one is VERY slow. It also appears to get worse later in the day, perhaps corresponding to load?

    Examples:

    Signed post request using makeRequest()
    Returns: 104 bytes of JSON encoded data. Execution time at my server <1s
    Firebug response time: 9,553ms (very bad!)

    Signed post request using makeRequest()
    Returns: 1,990 bytes of JSON encoded data. Execution time at my server <1s
    Firebug reponse time: 807ms

    Signed post request using makeRequest()
    Returns: 2901 bytes of JSON encoded data. Execution tim at my server <2s
    Firebug response time: 1,549ms

    How I calculate elapsed time:

    <?php

    $s = microtime(true);

    // do my work

    $elapsed = number_format(microtime(true)-$s)/100) . "ms";

    // echo || print the response 

    ?>

    Filed under: ,
  • 04-28-2008 2:28 PM In reply to

    • Chak
    • Top 50 Contributor
    • Joined on 01-14-2008
    • Posts 73

    Re: makeRequest() Performance Issues

     Hi,

     For comparision/debugging purposes do you mind providing the numbers you're seeing for UNSIGNED requests?

     Thanks
    Chak


     

  • 04-29-2008 11:40 AM In reply to

    • Egg
    • Top 50 Contributor
    • Joined on 02-05-2008
    • Posts 73

    Re: makeRequest() Performance Issues

    Chak:

     Hi,

     For comparision/debugging purposes do you mind providing the numbers you're seeing for UNSIGNED requests?

     Thanks
    Chak

     

    We're not doing unsigned requests at this time - I need to be able to trust the owner/viewer values. 

  • 04-30-2008 3:03 PM In reply to

    Re: makeRequest() Performance Issues

    We're noticing significantly slower responses when using makeRequest from FF, and also a high incidence of xmlHttp related errors. Our calls are currently unsigned.

     We can run some tests, but we'd need to estabish a new app for this purpose - it would be difficult to isolate the factors affecting connection latency within our production app.

     Would these tests still be useful? - is there some known resource that we could hit ( i.e. one that you can monitor on the server side)

Page 1 of 1 (4 items)