Stephen Some time ago, I ran some tests to measure the comparative startup times of PHP, LiveCode and HTML on On-rev. The two scripts are simple:
Livecode <html><head></head><body><?php echo "<p>I've started</p>" ?></body></html> PHP <html><head></head><body><?php echo "<p>I've started</p>" ?></body></html> HTML <html><head></head><body><p>I've started</p></body></html> Trying these simple pages should give a good indication if the startup time of LiveCode is the problem on Dreamhost. Regards Peter PS I used a ruby script running on the server to access the three pages to reduce the effect of network delays on the response times. > On 24 Nov 2014, at 11:55, stephen barncard <stephenrevoluti...@barncard.com> > wrote: > > would you consider this script to be comparative to the "complexity" of > phpInfo() ? > > anyway I don't think the slowdown I'm seeing at Dreamhost would be caught > in this benchmark. Once LC is loaded, it <is> quite speedy. But on the > server it has to restart for every page load. > > my livecode test script was basically the same as yours....except I use the > .irev suffix on the file. > > <?lc > -- NEW UNIVERSAL VERSION 20111114 > > put $_SERVER[SERVER_NAME] into sSiteName > put $_SERVER[SERVER_ADDR] into sSiteADDR > put $_SERVER[REMOTE_ADDR] into sRemoteADDR > put \ > "<h1>" && sSiteName && "</h1>" && \ > "<h2>" && sSiteADDR && \ > " " && "<span style='color:#7FFFD4;'>(your IP:" && sRemoteADDR && > ")</span>" &\ > "</h2>" && \ > "<h4>" &\ > "SERVER TEST | " && \ > "server: Livecode" && "|" && \ > "OS:" && the platform && "|" && \ > "Engine:" && the version && "</h4>" into sComposedTitle > ?> > > <html> > <head> > <style> > body { > background-color:#F9E8D2; > color:#333333; > font-family: "Lucida Grande", Lucida, Verdana, sans-serif; > } > fieldset { > background-color:#333333; > color:black; > text-align:center; > } > h1 { > color:#FDD017; > } > h2 { > color:#C79F8A; > } > h3 { > color:orange; > } > h4 { > color:#EEEEEE; > } > </style> > <title><?lc put "LIVECODE SERVER TEST @" & sSiteName ?></title> > </head> > > <body> > <?rev > command outputRow pLabel, pValue > ?> > <tr> > <td> > <b> > <?rev put pLabel ?> > </b> > </td> > <td> > <?rev put pValue ?> > </td> > </tr> > <?rev > end outputRow > ?> > > <fieldset> > <?rev > put sComposedTitle ?> > </fieldset> > > <h2 style="color:black;">Server Globals</h2> > <hr> > > <table> > <?rev > repeat for each key tKey in $_SERVER > outputRow tKey, $_SERVER[tKey] > end repeat > ?> > </table> > </body> > </html> > > *--* > *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words* > > On Sat, Nov 22, 2014 at 11:32 PM, Phil Davis <rev...@pdslabs.net> wrote: > >> >> On 11/22/14 10:23 AM, Warren Samples wrote: >> >>> On 11/21/2014 01:56 PM, Phil Davis wrote: >>> >>>> I'm glad it isn't just me: >>>> http://quality.runrev.com/show_bug.cgi?id=13983 >>>> >>>> Phil Davis >>>> >>> >>> >>> Phil, >>> >>> Your desktop utility shows a difference of about 8 to 10 times using your >>> URLs and about 4 times using mine when run under 6.6.2. Opening the URLs in >>> a browser continues to show a significant difference, but it's hard to >>> quantify. Could you put a timer in the scripts themselves? >>> >> >> New URLs: >> http://ctrainweb.com/test3.lc >> http://support.nweta.com/test3.lc >> >> Very interesting! The scripts run quite speedily on both servers. >> >> Also, it seems probable from how they display in the utility and the >>> browser that the scripts are not quite identical, with the one at < >>> http://ctrainweb.com/test2.lc> not converting 'CR' to '<br>' as does >>> (apparently) the other one. However doubtful it might be that this has >>> serious impact, it would be best ensure they are identical. >>> >> >> Done. Here is the 'test3.lc' script: >> --- start --- >> <?lc >> put the long seconds into tStart >> put tStart into tStart2 >> put "LC version" && the version & CR & "SYSTEM VERSION" && the >> systemVersion & CR & the time & CR after tOutput >> repeat with x = 1 to 3 >> put x & CR after tOutput >> end repeat >> put CR >> put the keys of $_SERVER into tList >> sort lines of tList >> repeat for each line tKey in tList >> if $_SERVER[tKey] is an array >> then put "[" & tKey & "]" & CR after tOutput >> else put tKey && "=" && $_SERVER[tKey] & CR after tOutput >> end repeat >> replace CR with "<BR>" in tOutput >> put the long seconds - tStart && "secs<BR>" >> put tOutput >> put the long seconds - tStart2 && "secs<BR>" >> ?> >> --- end --- >> >> Phil >> >> >>> Warren >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode@lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >> -- >> Phil Davis >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode