| 1 | <html> |
| 2 | <head> |
| 3 | <title>FindBugs Performance Improvements and Regressions</title> |
| 4 | <link rel="stylesheet" type="text/css" href="findbugs.css"> |
| 5 | @GOOGLE_ANALYTICS@ |
| 6 | </head> |
| 7 | <body> |
| 8 | |
| 9 | <table width="100%"> |
| 10 | <tr> |
| 11 | |
| 12 | @HTML_SIDEBAR@ |
| 13 | |
| 14 | <td align="left" valign="top"> |
| 15 | |
| 16 | <h1>FindBugs Performance Improvements and Regressions</h1> I did a performance check against 179 |
| 17 | benchmarks applications I regularly test against. Overall (total the total time to analyze all 179 |
| 18 | benchmarks), FindBugs 2.0 gives a 9% performance improvement over 1.3.9. 154 of the 179 benchmarks saw |
| 19 | performance improvements; 24 saw regressions. All of the benchmarks that saw regressions of more than |
| 20 | 10% were small benchmarks (analyzed in less than 60 seconds), which makes consistent benchmarking |
| 21 | particularly difficult. I'm working to repeat the benchmarks, see if the results are consistent. I took |
| 22 | a look, and couldn't find anything that stood out as being a performance glitch in FindBugs. I haven't |
| 23 | yet done benchmarking with constrained memory. It is possible that you may need to increase the heap |
| 24 | size for FindBugs 2.0. |
| 25 | |
| 26 | <h2>Important Request</h2> |
| 27 | <p> If you are seeing any significant performance regressions in FindBugs 2.0, |
| 28 | I very much need your help. Please either email <a href="mailto:[email protected]">[email protected]</a> |
| 29 | or file <a href="http://sourceforge.net/p/findbugs/_list/tickets?source=navbar">a |
| 30 | bug report</a>. with the following information from the xml file for your project (from both the |
| 31 | 1.3.9 and 2.0.0 version if possible). Sending me your code or pointing me to a open source repository |
| 32 | would be great, but I know that isn't feasible for a lot of projects. The information I'm requesting |
| 33 | doesn't include any information about the code being analyzed other than the total size of the code |
| 34 | being analyzed and the total number of issues found at the different confidence levels. The |
| 35 | <FindBugsSummary ... > start tag. For example: <quote> <pre> |
| 36 | <FindBugsSummary timestamp="Tue, 30 Dec 2008 21:29:52 -0500" |
| 37 | total_classes="206" referenced_classes="325" total_bugs="72" total_size="7654" num_packages="21" |
| 38 | vm_version="20.4-b02-402" cpu_seconds="62.52" clock_seconds="22.01" |
| 39 | peak_mbytes="112.21" alloc_mbytes="1683.38" gc_seconds="1.19" |
| 40 | priority_3="56" priority_2="14" priority_1="2"> |
| 41 | </pre> </quote> The <FindBugsProfile>...</FindBugsProfile> element. For example: <quote> |
| 42 | <pre> |
| 43 | <FindBugsProfile> |
| 44 | <ClassProfile name="edu.umd.cs.findbugs.detect.IncompatMask" totalMilliseconds="11" |
| 45 | invocations="206" avgMicrosecondsPerInvocation="55" maxMicrosecondsPerInvocation="475" |
| 46 | standardDeviationMircosecondsPerInvocation="75"/> |
| 47 | <ClassProfile name="edu.umd.cs.findbugs.detect.FindFinalizeInvocations" totalMilliseconds="11" |
| 48 | invocations="206" avgMicrosecondsPerInvocation="55" maxMicrosecondsPerInvocation="402" |
| 49 | standardDeviationMircosecondsPerInvocation="69"/> |
| 50 | <ClassProfile name="edu.umd.cs.findbugs.classfile.engine.bcel.LockDataflowFactory" totalMilliseconds="11" |
| 51 | invocations="23" avgMicrosecondsPerInvocation="515" maxMicrosecondsPerInvocation="2637" |
| 52 | standardDeviationMircosecondsPerInvocation="639"/> |
| 53 | ... |
| 54 | </FindBugsProfile> |
| 55 | </pre> </quote> @HTML_FOOTER@ |
| 56 | |
| 57 | </td> |
| 58 | |
| 59 | </tr> |
| 60 | </table> |
| 61 | |
| 62 | </body> |
| 63 | </html> |