Skip to content

Instantly share code, notes, and snippets.

@struberg
Created March 21, 2018 08:37
Show Gist options
  • Save struberg/90213b6615d14e44f9a3d43f4596cbf3 to your computer and use it in GitHub Desktop.
Save struberg/90213b6615d14e44f9a3d43f4596cbf3 to your computer and use it in GitHub Desktop.
BeanValidation Performance

Wer mist mist mist…​

I did not change much from our previous test. Just updated to

  • Apache BVal 1.1.2

  • Hibernate Validator 5.4.2.Final

$> svn co https://svn.apache.org/repos/asf/bval/sandbox/jsr303-impl-bench
$> mvn clean install
HIBERNATE
  Raw validation time:        1039ms {12331}
  Raw parsing time:           2151ms {2000}
  First parse and validate:   2012ms {11210}
  Multithreaded validation:    747ms
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.007 sec - in org.apache.bval.bench.HibernateTest
Running org.apache.bval.bench.ApacheTest
APACHE
  Raw validation time:         546ms {12331}
  Raw parsing time:           1328ms {2000}
  First parse and validate:   1370ms {11210}
  Multithreaded validation:    815ms
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.599 sec - in org.apache.bval.bench.ApacheTest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment