Package org.python.pydev.core.performanceeval

Examples of org.python.pydev.core.performanceeval.Timer


    public void testOnWxPython() throws Throwable {
        if (TestDependent.PYTHON_WXPYTHON_PACKAGES != null) {
            boolean recursive = STRESS_TEST;
            File file = new File(TestDependent.PYTHON_WXPYTHON_PACKAGES, "wxPython");
            Timer timer = new Timer();

            parseFilesInDir(file, recursive, false); //Don't generate ast
            timer.printDiff("Time to generate without AST");

            parseFilesInDir(file, recursive, true);
            timer.printDiff("Time to generate with AST");

            file = new File(TestDependent.PYTHON_WXPYTHON_PACKAGES, "wx");
            parseFilesInDir(file, recursive, false); //Don't generate ast
            timer.printDiff("Time to generate without AST");

            parseFilesInDir(file, recursive, true);
            timer.printDiff("Time to generate with AST");
        }
    }
View Full Code Here


    }

    public void testOnCompleteLib() throws Throwable {
        File file = new File(TestDependent.PYTHON_LIB);
        boolean recursive = STRESS_TEST;
        Timer timer = new Timer();
        parseFilesInDir(file, recursive);
        timer.printDiff("Time to generate with AST");

        parseFilesInDir(file, recursive, false); //Don't generate ast
        timer.printDiff("Time to generate without AST");
    }
View Full Code Here

        };
        SimpleNode node = parseLegalDocStr(s);
        String expected = printNode(node);

        int expectedCalls = 70;
        Timer timer = new Timer();
        for (int j = 0; j < expectedCalls; j++) {
            startParseThread(s, callback, expected);
        }

        while (calls[0] < expectedCalls) {
            synchronized (this) {
                wait(5);
            }
        }
        timer.printDiff();
        assertTrue(!failedComparisson[0]);
    }
View Full Code Here

TOP

Related Classes of org.python.pydev.core.performanceeval.Timer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.