how to measure hibernate performance?

kandarp picture kandarp · May 3, 2010 · Viewed 12.8k times · Source

how to measure performance in hibernate? I want to know that how much time hibernate takes to execute a query?

Answer

Ingo Kegel picture Ingo Kegel · Jan 27, 2012

JProfiler 7.1 has a JPA/Hibernate probe:

http://www.ej-technologies.com/products/jprofiler/whatsnew71.html

Here's a screen cast that shows how it works:

http://blog.ej-technologies.com/2012/01/profiling-jpahibernate.html

The hot spots view looks like this:

enter image description here

Disclaimer: My company develops JProfiler