This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 22322 - Measure performance impact of using JAR files
Summary: Measure performance impact of using JAR files
Status: RESOLVED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords: PERFORMANCE
Depends on: 30971
Blocks: 17722 21675
  Show dependency tree
 
Reported: 2002-04-11 15:23 UTC by Jesse Glick
Modified: 2008-12-22 09:52 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2002-04-11 15:23:33 UTC
As part of issue #17722, we should try to figure
out exactly how much time is spent opening JAR
files, so we know whether and how it is worth
optimizing. Petr N. sent me some informal summary,
but I can't find the message now.
Comment 1 Jesse Glick 2002-04-11 15:26:13 UTC
Suggest e.g. a class
performance/test/perf/src/org/netbeans/performance/jars/JarTest.java
with contents something like this:

public class JarTest extends Benchmark {
    public static void main(String[] args) {
        simpleRun(JarTest.class);
    }
    public JarTest(String name) {
        super(name, new int[][] {
            // {numberOfJars, numberOfFilesPerJar}
            new int[] {5, 5},
            new int[] {100, 5},
            new int[] {5, 100},
            new int[] {100, 100},
        });
    }
    protected void setUp() throws Exception {
        int[] arg = (int[])getArgument();
        int numberOfJars = arg[0];
        int filesPerJar = arg[1];
        // XXX
    }
    protected void tearDown() throws Exception {
        // XXX
    }
    public void testXXX() throws Exception {
        int count = getIterationCount();
        int[] arg = (int[])getArgument();
        int numberOfJars = arg[0];
        int filesPerJar = arg[1];
        for (int i = 0; i < count; i++) {
            // XXX do something
        }
    }
}
Comment 2 Petr Nejedly 2002-06-19 15:30:49 UTC
I've somehow measured the performance of module system using a lot
of jars (1000), it covers opening 2xmodulecount jar files.
See the comments by the issue 21675.
Comment 3 Marek Grummich 2002-07-22 08:35:45 UTC
Target milestone was changed from '3.4' to TBD.
Comment 4 Marek Grummich 2002-07-22 08:52:00 UTC
Target milestone was changed from '3.4' to TBD.
Comment 5 David Simonek 2002-12-06 15:05:13 UTC
passing to Petr for further measurements, as Jesse suggested.
Marking as STARTED because we have something already.
Comment 6 Jesse Glick 2002-12-06 17:28:00 UTC
Reassigning changes STARTED to NEW.
Comment 7 Petr Nejedly 2004-08-25 12:10:48 UTC
Charter of the general performance team, I think...
Comment 8 _ rkubacki 2007-08-28 10:07:03 UTC
Petr can have more uptodate data now as he is rewriting our classloading to better handle opening of JAR files.
Comment 9 Jesse Glick 2008-07-07 15:17:57 UTC
Probably now obsolete.