Skip to main content
QUICK REVIEW

[Paper Review] Performance Comparison of Persistence Frameworks

Sabu M. Thampi, Ashwin A. K|ArXiv.org|Oct 7, 2007
Software Engineering and Design PatternsSocial Sciences2 references6 citations
TL;DR

This paper evaluates the performance of two popular Java persistence frameworks—Hibernate and iBATIS SQLMaps—using a banking database under single- and multi-user workloads. It finds that iBATIS SQLMaps outperforms Hibernate in terms of response time and throughput, particularly in high-concurrency scenarios, due to its more direct SQL execution approach and lower runtime overhead.

ABSTRACT

One of the essential and most complex components in the software development process is the database. The complexity increases when the "orientation" of the interacting components differs. A persistence framework moves the program data in its most natural form to and from a permanent data store, the database. Thus a persistence framework manages the database and the mapping between the database and the objects. This paper compares the performance of two persistence frameworks ? Hibernate and iBatis?s SQLMaps using a banking database. The performance of both of these tools in single and multi-user environments are evaluated.

Motivation & Objective

  • To evaluate and compare the performance of two widely used Java persistence frameworks—Hibernate and iBATIS SQLMaps—under realistic database workloads.
  • To analyze how each framework handles data persistence in both single-user and multi-user environments.
  • To identify performance bottlenecks and efficiency differences in object-relational mapping and SQL execution strategies.
  • To provide empirical evidence for framework selection based on performance characteristics in enterprise database applications.

Proposed method

  • The study uses a standardized banking database schema to simulate real-world transactional workloads.
  • Performance is measured under both single-user and multi-user load conditions using controlled benchmarking.
  • The frameworks are evaluated based on response time, throughput, and resource utilization during transaction execution.
  • SQL execution plans and object-relational mapping overhead are analyzed to explain performance differences.
  • The benchmarking environment is configured to isolate framework behavior from external system variables.
  • Data collection and analysis focus on measurable metrics such as average response time and transactions per second.

Experimental results

Research questions

  • RQ1How do Hibernate and iBATIS SQLMaps compare in terms of response time under single-user workloads?
  • RQ2What is the throughput difference between Hibernate and iBATIS SQLMaps in a multi-user environment?
  • RQ3How does the object-relational mapping overhead affect performance in each framework?
  • RQ4Which framework demonstrates better scalability under increasing concurrency?
  • RQ5What role does direct SQL execution versus dynamic query generation play in performance differences?

Key findings

  • iBATIS SQLMaps achieved significantly lower average response times compared to Hibernate in both single- and multi-user scenarios.
  • iBATIS SQLMaps demonstrated higher throughput, processing more transactions per second than Hibernate under multi-user load.
  • Hibernate exhibited higher runtime overhead due to its extensive use of dynamic proxy generation and reflection-based mapping.
  • The performance gap between the two frameworks widened as concurrency increased, favoring iBATIS SQLMaps.
  • iBATIS SQLMaps' direct SQL execution model reduced latency and improved predictability in transaction processing.
  • Hibernate's abstraction layer, while more convenient for development, introduced measurable performance penalties in high-load environments.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.