Каталог статей
Меню сайта


Форма входа


Категории раздела
WebLogic administration and programming [7]
JSF and Primefaces [1]
Java general programming [12]
Other Java problems [11]
JPA and Hibernate [2]
Spring [2]
Spring


Поиск


Друзья сайта
  • Официальный блог
  • Сообщество uCoz
  • FAQ по системе
  • Инструкции для uCoz


  • Статистика

    Онлайн всего: 1
    Гостей: 1
    Пользователей: 0


    Приветствую Вас, Гость · RSS 19.05.2024, 20:49
    Главная » Статьи » Java » Other Java problems

    Validation JSR-303 benchmarking

    http://carinae.net/2010/06/benchmarking-hibernate-validator-and-apache-beanvalidation-the-two-jsr-303-implementations/

    Apache BeanValidation

    Formerly Agimatec Validation, since March 2010 it has migrated to Apache where it is currently under incubation. One of its most useful extra features is the ability to perform method validation using the same kind of JSR-303 annotations.
    The benchmarked version is: 0.1-incubating.

    Hibernate Validator

    The reference implementation of the standard, coming from the JBoss people. Amongst other extra features, its 4.1.0 release will allow modifications to the constraints definitions in runtime via its programmatic constraint configuration API.
    The benchmarked version is: 4.1.0.CR1.

    Conclusion

    Several conclusions can be extracted from the results:

    • Apache implementation is around 50% faster when validating under these scenarios, and so, it is likely that using it will improve your application’s performance compared to using Hibernate’s Validator.
    • Both implementations performance scales equally from 1 thread to a multi-threaded scenario with 4 threads.
    • Parsing time is roughly equivalent, but this shouldn’t affect your application performance as much as validating performance.
    • The relation between the performance of the two implementations doesn’t change while going from a simple scenario to a more complex one.

     

    Категория: Other Java problems | Добавил: basil (21.09.2015)
    Просмотров: 372 | Рейтинг: 0.0/0
    Всего комментариев: 0
    Имя *:
    Email *:
    Код *:
    Бесплатный конструктор сайтов - uCoz