src/test/java/org/apache/bval/bench/AbstractBenchTest.java
@Test
    public void checkRawParsingSpeed() {

        for (int i = 0; i < Config.CFG.numTestRepetitions(); ++i) {

            // Validator in new factory
            Validator validator = getValidatorFactory().getValidator();

            // Validate all the classes in the holder
            long initTime = System.nanoTime();

            for (Object o : holder.beans) {
                rpDescs += (validator.getConstraintsForClass(o.getClass()).isBeanConstrained()) ? 1 : 0;
            }

            rpTime += System.nanoTime() - initTime;
        }

    }
/**
     * Tests the speed of parsing beans without performing any validation.
     */
Tests the speed of parsing beans without performing any validation.
Tests the speed of parsing beans without performing any validation .
@Test
    public void checkRawParsingSpeed() {
        for (int i = 0; i < Config.CFG.numTestRepetitions(); ++i) {
            Validator validator = getValidatorFactory().getValidator();
            long initTime = System.nanoTime();
            for (Object o : holder.beans) {
                rpDescs += (validator.getConstraintsForClass(o.getClass()).isBeanConstrained()) ? 1 : 0;
            }
            rpTime += System.nanoTime() - initTime;
        }
    }
@ Test public void checkRawParsingSpeed ( ) { for ( int i = 0 ; i < Config . CFG . numTestRepetitions ( ) ; ++ i ) { Validator validator = getValidatorFactory ( ) . getValidator ( ) ; long initTime = System . nanoTime ( ) ; for ( Object o : holder . beans ) { rpDescs += ( validator . getConstraintsForClass ( o . getClass ( ) ) . isBeanConstrained ( ) ) ? 1 : 0 ; } rpTime += System . nanoTime ( ) - initTime ; } }
Tests the speed of parsing beans without performing any validation.
Tests the speed of parsing beans without performing any validation .
// Validator in new factory // Validate all the classes in the holder