<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">If we think the wire size is comparable to zip compressed size, I guess we could do that.<br><div><br><div><div>On Dec 10, 2008, at 7:10 PM, P T Withington wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Can you remind me why we have to actually fetch the applications via the server, vs. just lzc-ing them (possibly zipping them) and then comparing their size?<br><br>On 2008-12-10, at 16:16EST, Donald Anderson wrote:<br><br><blockquote type="cite">Change 20081210-dda-Q by <a href="mailto:dda@lester.local">dda@lester.local</a> on 2008-12-10 15:00:18 EST<br></blockquote><blockquote type="cite"> in /Users/dda/laszlo/src/svn/openlaszlo/trunk-h<br></blockquote><blockquote type="cite"> for <a href="http://svn.openlaszlo.org/openlaszlo/trunk">http://svn.openlaszlo.org/openlaszlo/trunk</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Summary: Force megatest to fail if application sizes changes by more than a configurable amount<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">New Features:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Bugs Fixed: LPP-6892 (Generated File Sizes baseline complete; Performance Tuning ongoing)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Technical Reviewer: ptw (pending)<br></blockquote><blockquote type="cite">QA Reviewer: (pending)<br></blockquote><blockquote type="cite">Doc Reviewer: (pending)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Documentation:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Release Notes:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Details:<br></blockquote><blockquote type="cite"> Enhanced the 'Netsize' program that calculates the size of urls retrieved and<br></blockquote><blockquote type="cite"> compares this to a previously stored version. Now, if the percentage change is<br></blockquote><blockquote type="cite"> out of the acceptable bounds, the program will report a failure.<br></blockquote><blockquote type="cite"> This program is run by doing 'ant appsize' at the top level.<br></blockquote><blockquote type="cite"> It is also triggered by a run of megatest.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Two values can be set, and are preconfigured in the top level build.xml:<br></blockquote><blockquote type="cite"> -- an overall acceptable size change percentage, currently set at 5%<br></blockquote><blockquote type="cite"> -- a default size change percentage enforced per url and per application, currently set at 20%<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> An 'application' is defined by this program as a set of URLs listed and grouped by name<br></blockquote><blockquote type="cite"> in the input configuration file (test/appsize/appsize-input.txt).<br></blockquote><blockquote type="cite"> The change percentage is based on the byte count values previously recorded,<br></blockquote><blockquote type="cite"> also in the same input file.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Each run of 'ant appsize' produces a file test/appsize/appsize-output.txt that represents<br></blockquote><blockquote type="cite"> a new baseline and can be used as a new input file (appsize-output.txt is NOT in svn).<br></blockquote><blockquote type="cite"> It is expected that at each release (or when appsize begins to fail regularly<br></blockquote><blockquote type="cite"> for a good, known reason), appsize-output.txt can be committed to appsize-input.txt<br></blockquote><blockquote type="cite"> to thereby reset the baseline.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> There is general information in test/appsize/readme.txt (which has also been updated).<br></blockquote><blockquote type="cite"> That file is referenced by the build.xml comments.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> NOTE!! this change includes a reversion of test/appsize/appsize-input.txt to a previous state<br></blockquote><blockquote type="cite"> r11108 | dda | 2008-09-19 14:43:42 -0400 (Fri, 19 Sep 2008)<br></blockquote><blockquote type="cite"> Using the latest version of this file makes it appear (to me) that the application has reduced substantially<br></blockquote><blockquote type="cite"> in size, and that is certainly not the case. I suspect that later versions were generated<br></blockquote><blockquote type="cite"> by running against a server that does not have compression turned on? This does mean<br></blockquote><blockquote type="cite"> that megatest will fail until the server is fixed.<br></blockquote><blockquote type="cite"> Notes for configurating compression are in test/appsize/readme.txt<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Tests:<br></blockquote><blockquote type="cite"> ant megatest<br></blockquote><blockquote type="cite"> changed values in test/appsize/appsize-input.txt to simulate failures<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> nightly build (pending)<br></blockquote><blockquote type="cite"> !!!! This will FAIL until compression is turned on for the build server. See NOTE above.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Files:<br></blockquote><blockquote type="cite">M test/appsize/appsize-input.txt<br></blockquote><blockquote type="cite">M test/appsize/readme.txt<br></blockquote><blockquote type="cite">M WEB-INF/lps/server/src/org/openlaszlo/test/netsize/UrlSizer.java<br></blockquote><blockquote type="cite">M WEB-INF/lps/server/src/org/openlaszlo/test/netsize/TotalSizer.java<br></blockquote><blockquote type="cite">M WEB-INF/lps/server/src/org/openlaszlo/test/netsize/Netsize.java<br></blockquote><blockquote type="cite">A WEB-INF/lps/server/src/org/openlaszlo/test/netsize/SizeProperties.java<br></blockquote><blockquote type="cite">M WEB-INF/lps/server/src/org/openlaszlo/test/netsize/Sizer.java<br></blockquote><blockquote type="cite">M WEB-INF/lps/server/src/org/openlaszlo/test/netsize/AppSizer.java<br></blockquote><blockquote type="cite">M build.xml<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Changeset: <a href="http://svn.openlaszlo.org/openlaszlo/patches/20081210-dda-Q.tar">http://svn.openlaszlo.org/openlaszlo/patches/20081210-dda-Q.tar</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Don Anderson<br></blockquote><blockquote type="cite">Java/C/C++, Berkeley DB, systems consultant<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">voice: 617-306-2057<br></blockquote><blockquote type="cite">email: <a href="mailto:dda@ddanderson.com">dda@ddanderson.com</a><br></blockquote><blockquote type="cite">www: <a href="http://www.ddanderson.com">http://www.ddanderson.com</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><br></div></blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br class="Apple-interchange-newline">--</div><div><br>Don Anderson<br>Java/C/C++, Berkeley DB, systems consultant<br><br>voice: 617-306-2057<br>email: <a href="mailto:dda@ddanderson.com">dda@ddanderson.com</a><br>www: <a href="http://www.ddanderson.com/">http://www.ddanderson.com</a><br></div></div></span></span><br class="Apple-interchange-newline"></div></span></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br></div></body></html>