<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"> &nbsp;&nbsp;in /Users/dda/laszlo/src/svn/openlaszlo/trunk-h<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;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"> &nbsp;&nbsp;Enhanced the 'Netsize' program that calculates the size of urls retrieved and<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;compares this to a previously stored version. &nbsp;Now, if the percentage change is<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;out of the acceptable bounds, the program will report a failure.<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;This program is run by doing 'ant appsize' at the top level.<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;It is also triggered by a run of megatest.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;Two values can be set, and are preconfigured in the top level build.xml:<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- an overall acceptable size change percentage, currently set at 5%<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- 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"> &nbsp;&nbsp;An 'application' is defined by this program as a set of URLs listed and grouped by name<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;in the input configuration file (test/appsize/appsize-input.txt).<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;The change percentage is based on the byte count values previously recorded,<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;also in the same input file.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;Each run of 'ant appsize' produces a file test/appsize/appsize-output.txt that represents<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;a new baseline and can be used as a new input file (appsize-output.txt is NOT in svn).<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;It is expected that at each release (or when appsize begins to fail regularly<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;for a good, known reason), appsize-output.txt can be committed to appsize-input.txt<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;to thereby reset the baseline.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;There is general information in test/appsize/readme.txt (which has also been updated).<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;That file is referenced by the build.xml comments.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;NOTE!! &nbsp;this change includes a reversion of test/appsize/appsize-input.txt to a previous state<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;r11108 | dda | 2008-09-19 14:43:42 -0400 (Fri, 19 Sep 2008)<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;Using the latest version of this file makes it appear (to me) that the application has reduced substantially<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;in size, and that is certainly not the case. &nbsp;I suspect that later versions were generated<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;by running against a server that does not have compression turned on? &nbsp;This does mean<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;that megatest will fail until the server is fixed.<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;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"> &nbsp;&nbsp;ant megatest<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;changed values in test/appsize/appsize-input.txt to simulate failures<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;nightly build (pending)<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;!!!! This will FAIL until compression is turned on for the build server. &nbsp;See NOTE above.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Files:<br></blockquote><blockquote type="cite">M &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;test/appsize/appsize-input.txt<br></blockquote><blockquote type="cite">M &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;test/appsize/readme.txt<br></blockquote><blockquote type="cite">M &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WEB-INF/lps/server/src/org/openlaszlo/test/netsize/UrlSizer.java<br></blockquote><blockquote type="cite">M &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WEB-INF/lps/server/src/org/openlaszlo/test/netsize/TotalSizer.java<br></blockquote><blockquote type="cite">M &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WEB-INF/lps/server/src/org/openlaszlo/test/netsize/Netsize.java<br></blockquote><blockquote type="cite">A &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WEB-INF/lps/server/src/org/openlaszlo/test/netsize/SizeProperties.java<br></blockquote><blockquote type="cite">M &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WEB-INF/lps/server/src/org/openlaszlo/test/netsize/Sizer.java<br></blockquote><blockquote type="cite">M &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WEB-INF/lps/server/src/org/openlaszlo/test/netsize/AppSizer.java<br></blockquote><blockquote type="cite">M &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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:&nbsp;<a href="mailto:dda@ddanderson.com">dda@ddanderson.com</a><br>www:&nbsp;<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>