public long runLoop() throws SAXException, IOException {
        long times = 0;
        while (System.currentTimeMillis() < endTime) {
            InputSource inputSource = new InputSource(new CharArrayReader(
                    testData));
            inputSource.setEncoding("utf-8");
            reader.parse(inputSource);
            times++;
        }
        return times;
    }
@param endTime
@param reader
@param testFile
@throws IOException
resources/examples/research-src/nu/validator/perftest/ParserPerfHarness.java