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

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

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

            long initTime = System.nanoTime();
            for (Object o : holder.beans) {
                fpavErrors += validator.validate(o).size();
            }

            fpavTime += System.nanoTime() - initTime;

        }

    }
/**
     * Tests the speed of parsing and doing one validation of all the beans.
     */
Tests the speed of parsing and doing one validation of all the beans.
Tests the speed of parsing and doing one validation of all the beans .
@Test
    public void checkFirstParseAndValidateSpeed() {
        for (int i = 0; i < Config.CFG.numTestRepetitions(); ++i) {
            Validator validator = getValidatorFactory().getValidator();
            long initTime = System.nanoTime();
            for (Object o : holder.beans) {
                fpavErrors += validator.validate(o).size();
            }
            fpavTime += System.nanoTime() - initTime;
        }
    }
@ Test public void checkFirstParseAndValidateSpeed ( ) { for ( int i = 0 ; i < Config . CFG . numTestRepetitions ( ) ; ++ i ) { Validator validator = getValidatorFactory ( ) . getValidator ( ) ; long initTime = System . nanoTime ( ) ; for ( Object o : holder . beans ) { fpavErrors += validator . validate ( o ) . size ( ) ; } fpavTime += System . nanoTime ( ) - initTime ; } }
Tests the speed of parsing and doing one validation of all the beans.
Tests the speed of parsing and doing one validation of all the beans .
// Validator in new factory