All runs · Data model and datasets

jpa-bench: MacBook Pro, Apple M5 Max, 2026-11-15 08:26 UTC

JPA providers on identical schema, data and settings. Run 2026-11-15-macbook-pro-m5-max-rzo1. Scores are JMH scores (mean ± 99.9% confidence half-width); statement metrics are per operation.

Run
2026-11-15 08:26 UTC (10 h 38 min) full
Contributor
rzo1
Machine
MacBook Pro, Apple M5 Max
Apple MacBook Pro (Mac17,7), 18 cores (6 Super + 12 Performance), 128 GiB
OS
macOS 27.2.1 (26B131), kernel Darwin 27.2.0, arm64
Power
AC Power, battery 100%; charged, Low Power Mode off
JDK
21.0.13+9-LTS (Eclipse Adoptium)
Databases
H2 2.5.252 in-memory
PostgreSQL: postgres:18.1@sha256:1090bc3a8ccfb0b55f78a494d76f8d603434f7e4553543d6e807bc7bd6bbd17f, 2 CPUs, 2048 MB, fsync=off, autovacuum=off
jpa-bench commit
5ea7b48f47d5
JMH
forks 2, warmup 5 × 2s, measurement 5 × 3s; bootstrap 5 + 20 shots per fork, cold start 10 JVMs
Datasets
S: 17f556d4e3d90c3d reference data
Verification
all providers return the same results
jobs: 96 ok of 96

Providers

RunnerProviderVersionEnhancementSnapshot buildRevision
runner-openjpa-4.1Apache OpenJPA4.1.1build-time (openjpa-maven-plugin)
runner-openjpa-4.2Apache OpenJPA4.2.0-SNAPSHOTbuild-time (openjpa-maven-plugin)4.2.0-20261114.035154-5550897c9
runner-openjpa-4.1-agentApache OpenJPA4.1.1runtime (-javaagent, PCEnhancerAgent)
runner-openjpa-4.2-agentApache OpenJPA4.2.0-SNAPSHOTruntime (-javaagent, PCEnhancerAgent)4.2.0-20261114.035154-5550897c9
runner-hibernate-6.6Hibernate ORM6.6.59.Finalnone
runner-hibernate-7Hibernate ORM7.4.15.Finalnone
runner-hibernate-6.6-enhancedHibernate ORM6.6.59.Finalbuild-time (lazy initialization, dirty tracking)
runner-hibernate-7-enhancedHibernate ORM7.4.15.Finalbuild-time (lazy initialization, dirty tracking)
runner-eclipselink-4EclipseLink4.0.10none
runner-eclipselink-5EclipseLink5.0.2none
runner-eclipselink-4-wovenEclipseLink4.0.10static weaving (build time)
runner-eclipselink-5-wovenEclipseLink5.0.2static weaving (build time)

Settings

Docker
29.9.3
Statement metering
separate metered run (1 fork, 1 + 2 × 2s); times are unmetered
Order
interleave
Build profiles
none
Benchmarks
ReadBenchmarks|WriteBenchmarks
Data seed
20260101
Settings of Apache OpenJPA 4.1.1 (enhanced)
jakarta.persistence.providerorg.apache.openjpa.persistence.PersistenceProviderImpl
jakarta.persistence.schema-generation.database.actionnone
jakarta.persistence.schema-generation.scripts.actionnone
jakarta.persistence.sharedCache.modeNONE
jakarta.persistence.transactionTypeRESOURCE_LOCAL
jakarta.persistence.validation.modeNONE
openjpa.ConnectionFactoryPropertiesPrintParameters=false
openjpa.DataCachefalse
openjpa.DynamicEnhancementAgentfalse
openjpa.jdbc.DBDictionarybatchLimit=50
openjpa.jdbc.MappingDefaultsForeignKeyDeleteAction=restrict, JoinForeignKeyDeleteAction=restrict
openjpa.LogDefaultLevel=WARN, Runtime=WARN, Tool=WARN, SQL=WARN, JDBC=WARN, Schema=WARN, MetaData=WARN, Enhance=WARN, Query=WARN
openjpa.QueryCachefalse
openjpa.RuntimeUnenhancedClassesunsupported
bench.datasource.keysopenjpa.ConnectionFactory
bench.jdbc.batchSize50
bench.pool.autoCommitfalse
bench.pool.isolationTRANSACTION_READ_COMMITTED
bench.pool.size4
bench.postgres.imagepostgres:18.1@sha256:1090bc3a8ccfb0b55f78a494d76f8d603434f7e4553543d6e807bc7bd6bbd17f
bench.provider.enhancementbuild-time (openjpa-maven-plugin)
bench.provider.nameApache OpenJPA
bench.provider.version4.1.1
bench.runnerrunner-openjpa-4.1
bench.version.datasource-proxy1.11.1
bench.version.h22.5.252
bench.version.hikaricp7.1.0
bench.version.jmh1.37
bench.version.postgresql42.7.14
bench.version.testcontainers2.0.5
Settings of Apache OpenJPA 4.2.0-SNAPSHOT (enhanced)
jakarta.persistence.providerorg.apache.openjpa.persistence.PersistenceProviderImpl
jakarta.persistence.schema-generation.database.actionnone
jakarta.persistence.schema-generation.scripts.actionnone
jakarta.persistence.sharedCache.modeNONE
jakarta.persistence.transactionTypeRESOURCE_LOCAL
jakarta.persistence.validation.modeNONE
openjpa.ConnectionFactoryPropertiesPrintParameters=false
openjpa.DataCachefalse
openjpa.DynamicEnhancementAgentfalse
openjpa.jdbc.DBDictionarybatchLimit=50
openjpa.jdbc.MappingDefaultsForeignKeyDeleteAction=restrict, JoinForeignKeyDeleteAction=restrict
openjpa.LogDefaultLevel=WARN, Runtime=WARN, Tool=WARN, SQL=WARN, JDBC=WARN, Schema=WARN, MetaData=WARN, Enhance=WARN, Query=WARN
openjpa.QueryCachefalse
openjpa.RuntimeUnenhancedClassesunsupported
bench.datasource.keysopenjpa.ConnectionFactory
bench.jdbc.batchSize50
bench.pool.autoCommitfalse
bench.pool.isolationTRANSACTION_READ_COMMITTED
bench.pool.size4
bench.postgres.imagepostgres:18.1@sha256:1090bc3a8ccfb0b55f78a494d76f8d603434f7e4553543d6e807bc7bd6bbd17f
bench.provider.build4.2.0-20261114.035154-55
bench.provider.enhancementbuild-time (openjpa-maven-plugin)
bench.provider.nameApache OpenJPA
bench.provider.revision50897c9
bench.provider.version4.2.0-SNAPSHOT
bench.runnerrunner-openjpa-4.2
bench.version.datasource-proxy1.11.1
bench.version.h22.5.252
bench.version.hikaricp7.1.0
bench.version.jmh1.37
bench.version.postgresql42.7.14
bench.version.testcontainers2.0.5
Settings of Apache OpenJPA 4.1.1 (runtime enhanced)
jakarta.persistence.providerorg.apache.openjpa.persistence.PersistenceProviderImpl
jakarta.persistence.schema-generation.database.actionnone
jakarta.persistence.schema-generation.scripts.actionnone
jakarta.persistence.sharedCache.modeNONE
jakarta.persistence.transactionTypeRESOURCE_LOCAL
jakarta.persistence.validation.modeNONE
openjpa.ConnectionFactoryPropertiesPrintParameters=false
openjpa.DataCachefalse
openjpa.DynamicEnhancementAgentfalse
openjpa.jdbc.DBDictionarybatchLimit=50
openjpa.jdbc.MappingDefaultsForeignKeyDeleteAction=restrict, JoinForeignKeyDeleteAction=restrict
openjpa.LogDefaultLevel=WARN, Runtime=WARN, Tool=WARN, SQL=WARN, JDBC=WARN, Schema=WARN, MetaData=WARN, Enhance=WARN, Query=WARN
openjpa.QueryCachefalse
openjpa.RuntimeUnenhancedClassesunsupported
bench.datasource.keysopenjpa.ConnectionFactory
bench.jdbc.batchSize50
bench.pool.autoCommitfalse
bench.pool.isolationTRANSACTION_READ_COMMITTED
bench.pool.size4
bench.postgres.imagepostgres:18.1@sha256:1090bc3a8ccfb0b55f78a494d76f8d603434f7e4553543d6e807bc7bd6bbd17f
bench.provider.enhancementruntime (-javaagent, PCEnhancerAgent)
bench.provider.nameApache OpenJPA
bench.provider.version4.1.1
bench.runnerrunner-openjpa-4.1-agent
bench.version.datasource-proxy1.11.1
bench.version.h22.5.252
bench.version.hikaricp7.1.0
bench.version.jmh1.37
bench.version.postgresql42.7.14
bench.version.testcontainers2.0.5
Settings of Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)
jakarta.persistence.providerorg.apache.openjpa.persistence.PersistenceProviderImpl
jakarta.persistence.schema-generation.database.actionnone
jakarta.persistence.schema-generation.scripts.actionnone
jakarta.persistence.sharedCache.modeNONE
jakarta.persistence.transactionTypeRESOURCE_LOCAL
jakarta.persistence.validation.modeNONE
openjpa.ConnectionFactoryPropertiesPrintParameters=false
openjpa.DataCachefalse
openjpa.DynamicEnhancementAgentfalse
openjpa.jdbc.DBDictionarybatchLimit=50
openjpa.jdbc.MappingDefaultsForeignKeyDeleteAction=restrict, JoinForeignKeyDeleteAction=restrict
openjpa.LogDefaultLevel=WARN, Runtime=WARN, Tool=WARN, SQL=WARN, JDBC=WARN, Schema=WARN, MetaData=WARN, Enhance=WARN, Query=WARN
openjpa.QueryCachefalse
openjpa.RuntimeUnenhancedClassesunsupported
bench.datasource.keysopenjpa.ConnectionFactory
bench.jdbc.batchSize50
bench.pool.autoCommitfalse
bench.pool.isolationTRANSACTION_READ_COMMITTED
bench.pool.size4
bench.postgres.imagepostgres:18.1@sha256:1090bc3a8ccfb0b55f78a494d76f8d603434f7e4553543d6e807bc7bd6bbd17f
bench.provider.build4.2.0-20261114.035154-55
bench.provider.enhancementruntime (-javaagent, PCEnhancerAgent)
bench.provider.nameApache OpenJPA
bench.provider.revision50897c9
bench.provider.version4.2.0-SNAPSHOT
bench.runnerrunner-openjpa-4.2-agent
bench.version.datasource-proxy1.11.1
bench.version.h22.5.252
bench.version.hikaricp7.1.0
bench.version.jmh1.37
bench.version.postgresql42.7.14
bench.version.testcontainers2.0.5
Settings of Hibernate ORM 6.6.59.Final (not enhanced)
hibernate.archive.scannerorg.hibernate.boot.archive.scan.internal.DisabledScanner
hibernate.cache.use_query_cachefalse
hibernate.cache.use_second_level_cachefalse
hibernate.connection.provider_disables_autocommittrue
hibernate.format_sqlfalse
hibernate.generate_statisticsfalse
hibernate.hbm2ddl.autonone
hibernate.jdbc.batch_size50
hibernate.jdbc.batch_versioned_datatrue
hibernate.order_insertstrue
hibernate.order_updatestrue
hibernate.query.mutation_strategy.global_temporary.create_tablesfalse
hibernate.query.mutation_strategy.global_temporary.drop_tablesfalse
hibernate.show_sqlfalse
hibernate.use_sql_commentsfalse
jakarta.persistence.providerorg.hibernate.jpa.HibernatePersistenceProvider
jakarta.persistence.schema-generation.database.actionnone
jakarta.persistence.schema-generation.scripts.actionnone
jakarta.persistence.sharedCache.modeNONE
jakarta.persistence.transactionTypeRESOURCE_LOCAL
jakarta.persistence.validation.modeNONE
bench.datasource.keysjakarta.persistence.nonJtaDataSource
bench.jdbc.batchSize50
bench.pool.autoCommitfalse
bench.pool.isolationTRANSACTION_READ_COMMITTED
bench.pool.size4
bench.postgres.imagepostgres:18.1@sha256:1090bc3a8ccfb0b55f78a494d76f8d603434f7e4553543d6e807bc7bd6bbd17f
bench.provider.enhancementnone
bench.provider.nameHibernate ORM
bench.provider.version6.6.59.Final
bench.runnerrunner-hibernate-6.6
bench.version.datasource-proxy1.11.1
bench.version.h22.5.252
bench.version.hikaricp7.1.0
bench.version.jmh1.37
bench.version.postgresql42.7.14
bench.version.testcontainers2.0.5
Settings of Hibernate ORM 7.4.15.Final (not enhanced)
hibernate.cache.use_query_cachefalse
hibernate.cache.use_second_level_cachefalse
hibernate.connection.provider_disables_autocommittrue
hibernate.format_sqlfalse
hibernate.generate_statisticsfalse
hibernate.hbm2ddl.autonone
hibernate.jdbc.batch_size50
hibernate.jdbc.batch_versioned_datatrue
hibernate.order_insertstrue
hibernate.order_updatestrue
hibernate.query.mutation_strategy.global_temporary.create_tablesfalse
hibernate.query.mutation_strategy.global_temporary.drop_tablesfalse
hibernate.show_sqlfalse
hibernate.use_sql_commentsfalse
jakarta.persistence.providerorg.hibernate.jpa.HibernatePersistenceProvider
jakarta.persistence.schema-generation.database.actionnone
jakarta.persistence.schema-generation.scripts.actionnone
jakarta.persistence.sharedCache.modeNONE
jakarta.persistence.transactionTypeRESOURCE_LOCAL
jakarta.persistence.validation.modeNONE
bench.datasource.keysjakarta.persistence.nonJtaDataSource
bench.jdbc.batchSize50
bench.pool.autoCommitfalse
bench.pool.isolationTRANSACTION_READ_COMMITTED
bench.pool.size4
bench.postgres.imagepostgres:18.1@sha256:1090bc3a8ccfb0b55f78a494d76f8d603434f7e4553543d6e807bc7bd6bbd17f
bench.provider.enhancementnone
bench.provider.nameHibernate ORM
bench.provider.version7.4.15.Final
bench.runnerrunner-hibernate-7
bench.version.datasource-proxy1.11.1
bench.version.h22.5.252
bench.version.hikaricp7.1.0
bench.version.jmh1.37
bench.version.postgresql42.7.14
bench.version.testcontainers2.0.5
Settings of Hibernate ORM 6.6.59.Final (enhanced)
hibernate.archive.scannerorg.hibernate.boot.archive.scan.internal.DisabledScanner
hibernate.cache.use_query_cachefalse
hibernate.cache.use_second_level_cachefalse
hibernate.connection.provider_disables_autocommittrue
hibernate.format_sqlfalse
hibernate.generate_statisticsfalse
hibernate.hbm2ddl.autonone
hibernate.jdbc.batch_size50
hibernate.jdbc.batch_versioned_datatrue
hibernate.order_insertstrue
hibernate.order_updatestrue
hibernate.query.mutation_strategy.global_temporary.create_tablesfalse
hibernate.query.mutation_strategy.global_temporary.drop_tablesfalse
hibernate.show_sqlfalse
hibernate.use_sql_commentsfalse
jakarta.persistence.providerorg.hibernate.jpa.HibernatePersistenceProvider
jakarta.persistence.schema-generation.database.actionnone
jakarta.persistence.schema-generation.scripts.actionnone
jakarta.persistence.sharedCache.modeNONE
jakarta.persistence.transactionTypeRESOURCE_LOCAL
jakarta.persistence.validation.modeNONE
bench.datasource.keysjakarta.persistence.nonJtaDataSource
bench.jdbc.batchSize50
bench.pool.autoCommitfalse
bench.pool.isolationTRANSACTION_READ_COMMITTED
bench.pool.size4
bench.postgres.imagepostgres:18.1@sha256:1090bc3a8ccfb0b55f78a494d76f8d603434f7e4553543d6e807bc7bd6bbd17f
bench.provider.enhancementbuild-time (lazy initialization, dirty tracking)
bench.provider.nameHibernate ORM
bench.provider.version6.6.59.Final
bench.runnerrunner-hibernate-6.6-enhanced
bench.version.datasource-proxy1.11.1
bench.version.h22.5.252
bench.version.hikaricp7.1.0
bench.version.jmh1.37
bench.version.postgresql42.7.14
bench.version.testcontainers2.0.5
Settings of Hibernate ORM 7.4.15.Final (enhanced)
hibernate.cache.use_query_cachefalse
hibernate.cache.use_second_level_cachefalse
hibernate.connection.provider_disables_autocommittrue
hibernate.format_sqlfalse
hibernate.generate_statisticsfalse
hibernate.hbm2ddl.autonone
hibernate.jdbc.batch_size50
hibernate.jdbc.batch_versioned_datatrue
hibernate.order_insertstrue
hibernate.order_updatestrue
hibernate.query.mutation_strategy.global_temporary.create_tablesfalse
hibernate.query.mutation_strategy.global_temporary.drop_tablesfalse
hibernate.show_sqlfalse
hibernate.use_sql_commentsfalse
jakarta.persistence.providerorg.hibernate.jpa.HibernatePersistenceProvider
jakarta.persistence.schema-generation.database.actionnone
jakarta.persistence.schema-generation.scripts.actionnone
jakarta.persistence.sharedCache.modeNONE
jakarta.persistence.transactionTypeRESOURCE_LOCAL
jakarta.persistence.validation.modeNONE
bench.datasource.keysjakarta.persistence.nonJtaDataSource
bench.jdbc.batchSize50
bench.pool.autoCommitfalse
bench.pool.isolationTRANSACTION_READ_COMMITTED
bench.pool.size4
bench.postgres.imagepostgres:18.1@sha256:1090bc3a8ccfb0b55f78a494d76f8d603434f7e4553543d6e807bc7bd6bbd17f
bench.provider.enhancementbuild-time (lazy initialization, dirty tracking)
bench.provider.nameHibernate ORM
bench.provider.version7.4.15.Final
bench.runnerrunner-hibernate-7-enhanced
bench.version.datasource-proxy1.11.1
bench.version.h22.5.252
bench.version.hikaricp7.1.0
bench.version.jmh1.37
bench.version.postgresql42.7.14
bench.version.testcontainers2.0.5
Settings of EclipseLink 4.0.10 (not woven)
eclipselink.cache.query-resultsfalse
eclipselink.cache.shared.defaultfalse
eclipselink.ddl-generationnone
eclipselink.deploy-on-startuptrue
eclipselink.jdbc.batch-writingJDBC
eclipselink.jdbc.batch-writing.size50
eclipselink.jdbc.cache-statementsfalse
eclipselink.logging.levelWARNING
eclipselink.logging.level.sqlOFF
eclipselink.logging.parametersfalse
eclipselink.order-updatestrue
eclipselink.persistence-context.commit-orderID
eclipselink.transaction.join-existingtrue
eclipselink.weavingfalse
jakarta.persistence.providerorg.eclipse.persistence.jpa.PersistenceProvider
jakarta.persistence.schema-generation.database.actionnone
jakarta.persistence.schema-generation.scripts.actionnone
jakarta.persistence.sharedCache.modeNONE
jakarta.persistence.transactionTypeRESOURCE_LOCAL
jakarta.persistence.validation.modeNONE
bench.datasource.keysjakarta.persistence.nonJtaDataSource
bench.jdbc.batchSize50
bench.pool.autoCommitfalse
bench.pool.isolationTRANSACTION_READ_COMMITTED
bench.pool.size4
bench.postgres.imagepostgres:18.1@sha256:1090bc3a8ccfb0b55f78a494d76f8d603434f7e4553543d6e807bc7bd6bbd17f
bench.provider.enhancementnone
bench.provider.nameEclipseLink
bench.provider.version4.0.10
bench.runnerrunner-eclipselink-4
bench.version.datasource-proxy1.11.1
bench.version.h22.5.252
bench.version.hikaricp7.1.0
bench.version.jmh1.37
bench.version.postgresql42.7.14
bench.version.testcontainers2.0.5
Settings of EclipseLink 5.0.2 (not woven)
eclipselink.cache.query-resultsfalse
eclipselink.cache.shared.defaultfalse
eclipselink.ddl-generationnone
eclipselink.deploy-on-startuptrue
eclipselink.jdbc.batch-writingJDBC
eclipselink.jdbc.batch-writing.size50
eclipselink.jdbc.cache-statementsfalse
eclipselink.logging.levelWARNING
eclipselink.logging.level.sqlOFF
eclipselink.logging.parametersfalse
eclipselink.order-updatestrue
eclipselink.persistence-context.commit-orderID
eclipselink.transaction.join-existingtrue
eclipselink.weavingfalse
jakarta.persistence.providerorg.eclipse.persistence.jpa.PersistenceProvider
jakarta.persistence.schema-generation.database.actionnone
jakarta.persistence.schema-generation.scripts.actionnone
jakarta.persistence.sharedCache.modeNONE
jakarta.persistence.transactionTypeRESOURCE_LOCAL
jakarta.persistence.validation.modeNONE
bench.datasource.keysjakarta.persistence.nonJtaDataSource
bench.jdbc.batchSize50
bench.pool.autoCommitfalse
bench.pool.isolationTRANSACTION_READ_COMMITTED
bench.pool.size4
bench.postgres.imagepostgres:18.1@sha256:1090bc3a8ccfb0b55f78a494d76f8d603434f7e4553543d6e807bc7bd6bbd17f
bench.provider.enhancementnone
bench.provider.nameEclipseLink
bench.provider.version5.0.2
bench.runnerrunner-eclipselink-5
bench.version.datasource-proxy1.11.1
bench.version.h22.5.252
bench.version.hikaricp7.1.0
bench.version.jmh1.37
bench.version.postgresql42.7.14
bench.version.testcontainers2.0.5
Settings of EclipseLink 4.0.10 (woven)
eclipselink.cache.query-resultsfalse
eclipselink.cache.shared.defaultfalse
eclipselink.ddl-generationnone
eclipselink.deploy-on-startuptrue
eclipselink.jdbc.batch-writingJDBC
eclipselink.jdbc.batch-writing.size50
eclipselink.jdbc.cache-statementsfalse
eclipselink.logging.levelWARNING
eclipselink.logging.level.sqlOFF
eclipselink.logging.parametersfalse
eclipselink.order-updatestrue
eclipselink.persistence-context.commit-orderID
eclipselink.transaction.join-existingtrue
eclipselink.weavingstatic
jakarta.persistence.providerorg.eclipse.persistence.jpa.PersistenceProvider
jakarta.persistence.schema-generation.database.actionnone
jakarta.persistence.schema-generation.scripts.actionnone
jakarta.persistence.sharedCache.modeNONE
jakarta.persistence.transactionTypeRESOURCE_LOCAL
jakarta.persistence.validation.modeNONE
bench.datasource.keysjakarta.persistence.nonJtaDataSource
bench.jdbc.batchSize50
bench.pool.autoCommitfalse
bench.pool.isolationTRANSACTION_READ_COMMITTED
bench.pool.size4
bench.postgres.imagepostgres:18.1@sha256:1090bc3a8ccfb0b55f78a494d76f8d603434f7e4553543d6e807bc7bd6bbd17f
bench.provider.enhancementstatic weaving (build time)
bench.provider.nameEclipseLink
bench.provider.version4.0.10
bench.runnerrunner-eclipselink-4-woven
bench.version.datasource-proxy1.11.1
bench.version.h22.5.252
bench.version.hikaricp7.1.0
bench.version.jmh1.37
bench.version.postgresql42.7.14
bench.version.testcontainers2.0.5
Settings of EclipseLink 5.0.2 (woven)
eclipselink.cache.query-resultsfalse
eclipselink.cache.shared.defaultfalse
eclipselink.ddl-generationnone
eclipselink.deploy-on-startuptrue
eclipselink.jdbc.batch-writingJDBC
eclipselink.jdbc.batch-writing.size50
eclipselink.jdbc.cache-statementsfalse
eclipselink.logging.levelWARNING
eclipselink.logging.level.sqlOFF
eclipselink.logging.parametersfalse
eclipselink.order-updatestrue
eclipselink.persistence-context.commit-orderID
eclipselink.transaction.join-existingtrue
eclipselink.weavingstatic
jakarta.persistence.providerorg.eclipse.persistence.jpa.PersistenceProvider
jakarta.persistence.schema-generation.database.actionnone
jakarta.persistence.schema-generation.scripts.actionnone
jakarta.persistence.sharedCache.modeNONE
jakarta.persistence.transactionTypeRESOURCE_LOCAL
jakarta.persistence.validation.modeNONE
bench.datasource.keysjakarta.persistence.nonJtaDataSource
bench.jdbc.batchSize50
bench.pool.autoCommitfalse
bench.pool.isolationTRANSACTION_READ_COMMITTED
bench.pool.size4
bench.postgres.imagepostgres:18.1@sha256:1090bc3a8ccfb0b55f78a494d76f8d603434f7e4553543d6e807bc7bd6bbd17f
bench.provider.enhancementstatic weaving (build time)
bench.provider.nameEclipseLink
bench.provider.version5.0.2
bench.runnerrunner-eclipselink-5-woven
bench.version.datasource-proxy1.11.1
bench.version.h22.5.252
bench.version.hikaricp7.1.0
bench.version.jmh1.37
bench.version.postgresql42.7.14
bench.version.testcontainers2.0.5

Result verification

Every read operation returned the same result checksum for every provider (fixed inputs, run once per trial before measuring).

Checksums per operation
Database, datasetOperationApache OpenJPA 4.1.1 (enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (enhanced)Apache OpenJPA 4.1.1 (runtime enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)Hibernate ORM 6.6.59.Final (not enhanced)Hibernate ORM 7.4.15.Final (not enhanced)Hibernate ORM 6.6.59.Final (enhanced)Hibernate ORM 7.4.15.Final (enhanced)EclipseLink 4.0.10 (not woven)EclipseLink 5.0.2 (not woven)EclipseLink 4.0.10 (woven)EclipseLink 5.0.2 (woven)
H2 (in-memory), dataset SaggregationGroupByf6800d1d893ce7dcf6800d1d893ce7dcf6800d1d893ce7dcf6800d1d893ce7dcf6800d1d893ce7dcf6800d1d893ce7dcf6800d1d893ce7dcf6800d1d893ce7dcf6800d1d893ce7dcf6800d1d893ce7dcf6800d1d893ce7dcf6800d1d893ce7dc
H2 (in-memory), dataset ScriteriaQueryec0d175e840e1598ec0d175e840e1598ec0d175e840e1598ec0d175e840e1598ec0d175e840e1598ec0d175e840e1598ec0d175e840e1598ec0d175e840e1598ec0d175e840e1598ec0d175e840e1598ec0d175e840e1598ec0d175e840e1598
H2 (in-memory), dataset SdtoProjectionefb6bda9e33d102aefb6bda9e33d102aefb6bda9e33d102aefb6bda9e33d102aefb6bda9e33d102aefb6bda9e33d102aefb6bda9e33d102aefb6bda9e33d102aefb6bda9e33d102aefb6bda9e33d102aefb6bda9e33d102aefb6bda9e33d102a
H2 (in-memory), dataset SfindByIdebecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8d
H2 (in-memory), dataset SinheritanceJoinedQuery175ba77317d2c895175ba77317d2c895175ba77317d2c895175ba77317d2c895175ba77317d2c895175ba77317d2c895175ba77317d2c895175ba77317d2c895175ba77317d2c895175ba77317d2c895175ba77317d2c895175ba77317d2c895
H2 (in-memory), dataset SinheritanceSingleTableQuery1617abda121e16c21617abda121e16c21617abda121e16c21617abda121e16c21617abda121e16c21617abda121e16c21617abda121e16c21617abda121e16c21617abda121e16c21617abda121e16c21617abda121e16c21617abda121e16c2
H2 (in-memory), dataset SjoinFetchec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdb
H2 (in-memory), dataset SjpqlByIndexedAttributeebecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8d
H2 (in-memory), dataset SlazyNavigationNPlusOneec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdb
H2 (in-memory), dataset SmanyToManyAndElementCollectionebee680331178e1febee680331178e1febee680331178e1febee680331178e1febee680331178e1febee680331178e1febee680331178e1febee680331178e1febee680331178e1febee680331178e1febee680331178e1febee680331178e1f
H2 (in-memory), dataset Spaginationedd3376cc093018dedd3376cc093018dedd3376cc093018dedd3376cc093018dedd3376cc093018dedd3376cc093018dedd3376cc093018dedd3376cc093018dedd3376cc093018dedd3376cc093018dedd3376cc093018dedd3376cc093018d
H2 (in-memory), dataset SresultStream79647c9e0fe9e88579647c9e0fe9e88579647c9e0fe9e88579647c9e0fe9e88579647c9e0fe9e88579647c9e0fe9e88579647c9e0fe9e88579647c9e0fe9e88579647c9e0fe9e88579647c9e0fe9e88579647c9e0fe9e88579647c9e0fe9e885
PostgreSQL, dataset SaggregationGroupByf6800d1d893ce7dcf6800d1d893ce7dcf6800d1d893ce7dcf6800d1d893ce7dcf6800d1d893ce7dcf6800d1d893ce7dcf6800d1d893ce7dcf6800d1d893ce7dcf6800d1d893ce7dcf6800d1d893ce7dcf6800d1d893ce7dcf6800d1d893ce7dc
PostgreSQL, dataset ScriteriaQueryec0d175e840e1598ec0d175e840e1598ec0d175e840e1598ec0d175e840e1598ec0d175e840e1598ec0d175e840e1598ec0d175e840e1598ec0d175e840e1598ec0d175e840e1598ec0d175e840e1598ec0d175e840e1598ec0d175e840e1598
PostgreSQL, dataset SdtoProjectionefb6bda9e33d102aefb6bda9e33d102aefb6bda9e33d102aefb6bda9e33d102aefb6bda9e33d102aefb6bda9e33d102aefb6bda9e33d102aefb6bda9e33d102aefb6bda9e33d102aefb6bda9e33d102aefb6bda9e33d102aefb6bda9e33d102a
PostgreSQL, dataset SfindByIdebecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8d
PostgreSQL, dataset SinheritanceJoinedQuery175ba77317d2c895175ba77317d2c895175ba77317d2c895175ba77317d2c895175ba77317d2c895175ba77317d2c895175ba77317d2c895175ba77317d2c895175ba77317d2c895175ba77317d2c895175ba77317d2c895175ba77317d2c895
PostgreSQL, dataset SinheritanceSingleTableQuery1617abda121e16c21617abda121e16c21617abda121e16c21617abda121e16c21617abda121e16c21617abda121e16c21617abda121e16c21617abda121e16c21617abda121e16c21617abda121e16c21617abda121e16c21617abda121e16c2
PostgreSQL, dataset SjoinFetchec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdb
PostgreSQL, dataset SjpqlByIndexedAttributeebecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8debecd176b7c0fa8d
PostgreSQL, dataset SlazyNavigationNPlusOneec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdbec1eb4b9851b9bdb
PostgreSQL, dataset SmanyToManyAndElementCollectionebee680331178e1febee680331178e1febee680331178e1febee680331178e1febee680331178e1febee680331178e1febee680331178e1febee680331178e1febee680331178e1febee680331178e1febee680331178e1febee680331178e1f
PostgreSQL, dataset Spaginationedd3376cc093018dedd3376cc093018dedd3376cc093018dedd3376cc093018dedd3376cc093018dedd3376cc093018dedd3376cc093018dedd3376cc093018dedd3376cc093018dedd3376cc093018dedd3376cc093018dedd3376cc093018d
PostgreSQL, dataset SresultStream79647c9e0fe9e88579647c9e0fe9e88579647c9e0fe9e88579647c9e0fe9e88579647c9e0fe9e88579647c9e0fe9e88579647c9e0fe9e88579647c9e0fe9e88579647c9e0fe9e88579647c9e0fe9e88579647c9e0fe9e88579647c9e0fe9e885

H2 (in-memory), dataset S

Throughput: factor to the fastest (ops/ms, higher is better)

1.00 = fastest (bold frame); ≈ and thin frame: score ± error overlaps the fastest; colour steps at 0.95, 0.8, 0.6, 0.4 and 0.2.

BenchmarkApache OpenJPA 4.1.1 (enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (enhanced)Apache OpenJPA 4.1.1 (runtime enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)Hibernate ORM 6.6.59.Final (not enhanced)Hibernate ORM 7.4.15.Final (not enhanced)Hibernate ORM 6.6.59.Final (enhanced)Hibernate ORM 7.4.15.Final (enhanced)EclipseLink 4.0.10 (not woven)EclipseLink 5.0.2 (not woven)EclipseLink 4.0.10 (woven)EclipseLink 5.0.2 (woven)
aggregationGroupBy 0.74 0.72 0.74 0.74 0.99 1.00 0.97 ≈ 0.99 0.97 0.97 ≈ 0.98 0.98
criteriaQuery 0.52 0.50 0.52 0.50 0.53 0.54 0.53 0.55 0.64 0.65 0.97 1.00
dtoProjection 0.49 0.47 0.49 0.47 ≈ 0.99 ≈ 0.98 ≈ 0.99 1.00 0.84 0.86 0.84 0.85
findById 0.34 0.33 0.34 0.33 0.74 0.69 0.71 0.72 0.76 0.72 1.00 0.93
inheritanceJoinedQuery 0.75 0.75 0.75 0.75 0.94 0.99 0.90 1.00 0.73 0.73 ≈ 1.00 ≈ 0.98
inheritanceSingleTableQuery 0.70 0.70 0.69 0.70 0.89 ≈ 0.96 0.81 ≈ 0.97 0.65 0.67 1.00 ≈ 0.99
joinFetch 0.60 0.53 0.61 0.53 0.77 0.79 0.67 0.69 0.40 0.41 ≈ 0.99 1.00
jpqlByIndexedAttribute 0.31 0.30 0.31 0.30 0.69 0.70 0.69 0.70 0.77 0.79 ≈ 1.00 1.00
lazyNavigationNPlusOne 0.29 0.27 0.28 0.27 0.55 0.58 0.50 0.54 0.39 0.40 ≈ 0.99 1.00
manyToManyAndElementCollection 0.23 0.23 0.24 0.23 0.63 0.69 0.60 0.66 0.76 0.78 ≈ 1.00 1.00
pagination 0.73 0.75 0.75 0.75 1.00 ≈ 0.99 ≈ 1.00 ≈ 0.97 0.87 0.89 ≈ 0.99 ≈ 0.97
resultStream 0.91 0.90 0.90 0.90 0.50 0.50 0.46 0.50 0.26 0.26 0.96 1.00

Average time: factor to the fastest (ms/op, lower is better)

1.00 = fastest (bold frame); ≈ and thin frame: score ± error overlaps the fastest; colour steps at 0.95, 0.8, 0.6, 0.4 and 0.2.

BenchmarkApache OpenJPA 4.1.1 (enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (enhanced)Apache OpenJPA 4.1.1 (runtime enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)Hibernate ORM 6.6.59.Final (not enhanced)Hibernate ORM 7.4.15.Final (not enhanced)Hibernate ORM 6.6.59.Final (enhanced)Hibernate ORM 7.4.15.Final (enhanced)EclipseLink 4.0.10 (not woven)EclipseLink 5.0.2 (not woven)EclipseLink 4.0.10 (woven)EclipseLink 5.0.2 (woven)
aggregationGroupBy 0.74 0.73 0.74 0.73 0.97 ≈ 0.99 ≈ 1.00 1.00 0.97 0.98 ≈ 0.98 0.98
criteriaQuery 0.53 0.50 0.52 0.50 0.54 0.54 0.54 0.55 0.65 0.65 0.98 1.00
dtoProjection 0.48 0.46 0.49 0.47 0.98 1.00 0.98 ≈ 0.98 0.84 0.83 0.84 0.84
findById 0.33 0.33 0.33 0.32 0.72 0.71 0.70 0.71 0.76 0.72 1.00 0.92
inheritanceJoinedQuery 0.75 0.75 0.75 0.75 0.93 ≈ 0.98 0.88 1.00 0.72 0.73 0.96 ≈ 0.97
inheritanceSingleTableQuery 0.69 0.68 0.69 0.67 0.87 0.94 0.82 ≈ 0.97 0.65 0.67 1.00 ≈ 0.98
joinFetch 0.61 0.54 0.62 0.54 0.80 0.79 0.68 0.70 0.40 0.42 1.00 ≈ 0.99
jpqlByIndexedAttribute 0.32 0.31 0.31 0.31 0.70 0.70 0.70 0.70 0.78 0.79 1.00 ≈ 0.99
lazyNavigationNPlusOne 0.29 0.27 0.28 0.27 0.55 0.59 0.51 0.52 0.40 0.40 0.98 1.00
manyToManyAndElementCollection 0.24 0.23 0.23 0.23 0.64 0.72 0.58 0.68 0.77 0.78 ≈ 0.99 1.00
pagination 0.75 0.75 0.75 0.75 1.00 0.99 0.97 ≈ 0.99 0.88 0.89 ≈ 1.00 ≈ 0.99
resultStream 0.91 0.91 0.90 0.91 0.50 0.51 0.46 0.50 0.26 0.27 0.96 1.00

Single shot time: factor to the fastest (ms/op, lower is better)

1.00 = fastest (bold frame); ≈ and thin frame: score ± error overlaps the fastest; colour steps at 0.95, 0.8, 0.6, 0.4 and 0.2.

BenchmarkApache OpenJPA 4.1.1 (enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (enhanced)Apache OpenJPA 4.1.1 (runtime enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)Hibernate ORM 6.6.59.Final (not enhanced)Hibernate ORM 7.4.15.Final (not enhanced)Hibernate ORM 6.6.59.Final (enhanced)Hibernate ORM 7.4.15.Final (enhanced)EclipseLink 4.0.10 (not woven)EclipseLink 5.0.2 (not woven)EclipseLink 4.0.10 (woven)EclipseLink 5.0.2 (woven)
bulkDelete ≈ 0.95 ≈ 0.97 1.00 ≈ 0.99 ≈ 0.99 ≈ 0.98 ≈ 1.00 ≈ 0.99 0.16 0.16 0.16 0.16
bulkUpdate ≈ 0.87 ≈ 0.89 ≈ 0.85 ≈ 0.85 1.00 ≈ 1.00 ≈ 0.96 ≈ 0.97 ≈ 0.92 ≈ 0.99 ≈ 0.94 ≈ 0.97
persistBatch 0.89 0.90 0.88 0.89 1.00 ≈ 0.98 0.95 0.93 0.72 0.72 0.93 0.93
removeBatch 0.40 0.39 0.40 0.39 0.93 0.93 0.89 0.90 0.66 0.66 ≈ 1.00 1.00
updateDirtyChecking 0.79 0.79 0.81 0.81 0.69 0.69 0.74 0.72 0.52 0.57 1.00 ≈ 0.90
Scores (Throughput, Average time, Single shot time)

Throughput (ops/ms, higher is better)

Score ± error, factor to the fastest below. Bold frame: fastest; thin frame and ≈: within error of the fastest.

BenchmarkApache OpenJPA 4.1.1 (enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (enhanced)Apache OpenJPA 4.1.1 (runtime enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)Hibernate ORM 6.6.59.Final (not enhanced)Hibernate ORM 7.4.15.Final (not enhanced)Hibernate ORM 6.6.59.Final (enhanced)Hibernate ORM 7.4.15.Final (enhanced)EclipseLink 4.0.10 (not woven)EclipseLink 5.0.2 (not woven)EclipseLink 4.0.10 (woven)EclipseLink 5.0.2 (woven)
aggregationGroupBy 8.54 ± 0.12
0.74
8.32 ± 0.145
0.72
8.45 ± 0.0828
0.74
8.44 ± 0.212
0.74
11.32 ± 0.047
0.99
11.48 ± 0.084
1.00
11.10 ± 0.131
0.97
11.36 ± 0.149
≈ 0.99
11.15 ± 0.0468
0.97
11.11 ± 0.0399
0.97
11.26 ± 0.468
≈ 0.98
11.22 ± 0.127
0.98
criteriaQuery 33.01 ± 0.227
0.52
31.46 ± 0.181
0.50
32.62 ± 0.176
0.52
31.38 ± 0.138
0.50
33.65 ± 0.709
0.53
33.89 ± 0.137
0.54
33.20 ± 0.141
0.53
34.81 ± 0.443
0.55
40.25 ± 0.45
0.64
40.75 ± 0.0912
0.65
61.23 ± 0.371
0.97
62.96 ± 0.213
1.00
dtoProjection 18.66 ± 0.17
0.49
17.97 ± 0.166
0.47
18.81 ± 0.15
0.49
17.98 ± 0.0278
0.47
37.90 ± 1.21
≈ 0.99
37.59 ± 0.166
≈ 0.98
38.13 ± 1.40
≈ 0.99
38.34 ± 0.7
1.00
32.32 ± 1
0.84
33.09 ± 0.578
0.86
32.17 ± 0.209
0.84
32.67 ± 0.86
0.85
findById 156.6 ± 4.20
0.34
151.1 ± 1.21
0.33
153.2 ± 2.70
0.34
150.0 ± 1.81
0.33
335.5 ± 5.17
0.74
315.6 ± 2.63
0.69
323.9 ± 15.99
0.71
329.3 ± 4.18
0.72
344.6 ± 10.52
0.76
330.0 ± 0.443
0.72
456.1 ± 0.767
1.00
426.0 ± 4.18
0.93
inheritanceJoinedQuery 21.19 ± 0.0486
0.75
21.09 ± 0.0682
0.75
21.03 ± 0.0636
0.75
21.07 ± 0.16
0.75
26.39 ± 0.331
0.94
27.87 ± 0.184
0.99
25.17 ± 0.159
0.90
28.12 ± 0.0695
1.00
20.48 ± 0.451
0.73
20.45 ± 0.317
0.73
27.98 ± 0.242
≈ 1.00
27.44 ± 0.664
≈ 0.98
inheritanceSingleTableQuery 28.38 ± 0.0656
0.70
28.36 ± 0.421
0.70
28.32 ± 0.236
0.69
28.36 ± 0.22
0.70
36.34 ± 0.22
0.89
39.28 ± 0.505
≈ 0.96
33.00 ± 0.0815
0.81
39.67 ± 0.0906
≈ 0.97
26.68 ± 1.64
0.65
27.31 ± 0.35
0.67
40.80 ± 1.15
1.00
40.44 ± 1.18
≈ 0.99
joinFetch 5.99 ± 0.0638
0.60
5.27 ± 0.0586
0.53
6.11 ± 0.0466
0.61
5.25 ± 0.0224
0.53
7.70 ± 0.0935
0.77
7.89 ± 0.214
0.79
6.69 ± 0.0324
0.67
6.83 ± 0.115
0.69
3.97 ± 0.0187
0.40
4.07 ± 0.0329
0.41
9.85 ± 0.0177
≈ 0.99
9.96 ± 0.103
1.00
jpqlByIndexedAttribute 117.9 ± 1.41
0.31
113.2 ± 1.18
0.30
117.3 ± 1.91
0.31
115.0 ± 1.78
0.30
259.7 ± 0.67
0.69
263.8 ± 5.68
0.70
261.8 ± 8.23
0.69
264.2 ± 9.67
0.70
291.5 ± 0.666
0.77
298.1 ± 1.13
0.79
377.2 ± 1.09
≈ 1.00
378.0 ± 16.45
1.00
lazyNavigationNPlusOne 3.02 ± 0.0151
0.29
2.86 ± 0.0829
0.27
2.99 ± 0.00846
0.28
2.82 ± 0.0114
0.27
5.76 ± 0.122
0.55
6.10 ± 0.0226
0.58
5.23 ± 0.121
0.50
5.72 ± 0.0146
0.54
4.10 ± 0.0676
0.39
4.19 ± 0.0151
0.40
10.42 ± 0.0907
≈ 0.99
10.51 ± 0.219
1.00
manyToManyAndElementCollection 6.96 ± 0.281
0.23
6.89 ± 0.0168
0.23
7.07 ± 0.0519
0.24
6.81 ± 0.0119
0.23
18.82 ± 0.144
0.63
20.59 ± 0.0327
0.69
18.00 ± 0.0712
0.60
19.72 ± 0.217
0.66
22.63 ± 0.157
0.76
23.20 ± 0.0331
0.78
29.74 ± 0.22
≈ 1.00
29.88 ± 0.34
1.00
pagination 1.64 ± 0.036
0.73
1.69 ± 0.0128
0.75
1.68 ± 0.0187
0.75
1.68 ± 0.0121
0.75
2.24 ± 0.0758
1.00
2.23 ± 0.0381
≈ 0.99
2.24 ± 0.0503
≈ 1.00
2.16 ± 0.0181
≈ 0.97
1.96 ± 0.0146
0.87
1.99 ± 0.00975
0.89
2.22 ± 0.0207
≈ 0.99
2.17 ± 0.129
≈ 0.97
resultStream 0.927 ± 0.00664
0.91
0.921 ± 0.00299
0.90
0.92 ± 0.00916
0.90
0.925 ± 0.00355
0.90
0.51 ± 0.00603
0.50
0.511 ± 0.00984
0.50
0.468 ± 0.00582
0.46
0.508 ± 0.0124
0.50
0.262 ± 0.000684
0.26
0.267 ± 0.00514
0.26
0.981 ± 0.000593
0.96
1.02 ± 0.00962
1.00

Average time (ms/op, lower is better)

Score ± error, factor to the fastest below. Bold frame: fastest; thin frame and ≈: within error of the fastest.

BenchmarkApache OpenJPA 4.1.1 (enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (enhanced)Apache OpenJPA 4.1.1 (runtime enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)Hibernate ORM 6.6.59.Final (not enhanced)Hibernate ORM 7.4.15.Final (not enhanced)Hibernate ORM 6.6.59.Final (enhanced)Hibernate ORM 7.4.15.Final (enhanced)EclipseLink 4.0.10 (not woven)EclipseLink 5.0.2 (not woven)EclipseLink 4.0.10 (woven)EclipseLink 5.0.2 (woven)
aggregationGroupBy 0.117 ± 0.000286
0.74
0.119 ± 0.000983
0.73
0.118 ± 0.000332
0.74
0.119 ± 0.000754
0.73
0.0893 ± 0.00124
0.97
0.0881 ± 0.000611
≈ 0.99
0.0873 ± 0.00226
≈ 1.00
0.0871 ± 0.000709
1.00
0.0898 ± 0.000806
0.97
0.0888 ± 0.000897
0.98
0.089 ± 0.00127
≈ 0.98
0.0888 ± 0.000531
0.98
criteriaQuery 0.0303 ± 7.07e-05
0.53
0.0319 ± 0.000253
0.50
0.0306 ± 8.14e-05
0.52
0.0316 ± 0.000294
0.50
0.0295 ± 0.000138
0.54
0.0295 ± 0.00013
0.54
0.0297 ± 0.000228
0.54
0.0288 ± 0.00017
0.55
0.0245 ± 9.77e-05
0.65
0.0245 ± 4.17e-05
0.65
0.0163 ± 6.57e-05
0.98
0.016 ± 0.000221
1.00
dtoProjection 0.0535 ± 0.00103
0.48
0.0559 ± 0.000574
0.46
0.053 ± 0.00013
0.49
0.0552 ± 0.000473
0.47
0.0264 ± 0.000132
0.98
0.0258 ± 0.000235
1.00
0.0263 ± 0.000171
0.98
0.0263 ± 0.00061
≈ 0.98
0.0306 ± 3.24e-05
0.84
0.0312 ± 0.000395
0.83
0.0306 ± 0.000352
0.84
0.0308 ± 0.000594
0.84
findById 0.00654 ± 0.000162
0.33
0.00658 ± 4.81e-05
0.33
0.00661 ± 5.48e-05
0.33
0.00671 ± 0.00012
0.32
0.00299 ± 1.83e-05
0.72
0.00303 ± 7.66e-05
0.71
0.0031 ± 6.81e-05
0.70
0.00304 ± 3.93e-05
0.71
0.00286 ± 4.47e-05
0.76
0.00303 ± 4.86e-05
0.72
0.00217 ± 2.12e-05
1.00
0.00236 ± 1.25e-05
0.92
inheritanceJoinedQuery 0.0475 ± 8.6e-05
0.75
0.0474 ± 0.000656
0.75
0.047 ± 0.00015
0.75
0.0473 ± 0.000359
0.75
0.0379 ± 0.000181
0.93
0.0359 ± 0.00044
≈ 0.98
0.0403 ± 0.000184
0.88
0.0354 ± 0.000517
1.00
0.0493 ± 0.000337
0.72
0.0482 ± 0.000263
0.73
0.0367 ± 0.000197
0.96
0.0366 ± 0.00119
≈ 0.97
inheritanceSingleTableQuery 0.035 ± 0.000158
0.69
0.036 ± 0.000225
0.68
0.0352 ± 0.00189
0.69
0.0362 ± 0.00061
0.67
0.0278 ± 5.95e-05
0.87
0.0257 ± 0.000228
0.94
0.0297 ± 0.000574
0.82
0.025 ± 6.46e-05
≈ 0.97
0.0375 ± 0.000135
0.65
0.0364 ± 0.000181
0.67
0.0243 ± 0.000984
1.00
0.0248 ± 0.000334
≈ 0.98
joinFetch 0.167 ± 0.00312
0.61
0.189 ± 0.00385
0.54
0.165 ± 0.00197
0.62
0.19 ± 0.00178
0.54
0.128 ± 0.00211
0.80
0.128 ± 0.00177
0.79
0.149 ± 0.00309
0.68
0.146 ± 0.00294
0.70
0.253 ± 0.000861
0.40
0.245 ± 0.000588
0.42
0.102 ± 0.00265
1.00
0.103 ± 0.000453
≈ 0.99
jpqlByIndexedAttribute 0.00843 ± 8.33e-05
0.32
0.00862 ± 8.56e-05
0.31
0.00867 ± 0.000154
0.31
0.00868 ± 0.000116
0.31
0.00382 ± 0.000173
0.70
0.00381 ± 5.08e-05
0.70
0.00378 ± 0.000156
0.70
0.00378 ± 2.36e-05
0.70
0.00343 ± 4.93e-05
0.78
0.00336 ± 8.11e-05
0.79
0.00266 ± 2.44e-05
1.00
0.00268 ± 8.14e-06
≈ 0.99
lazyNavigationNPlusOne 0.334 ± 0.00249
0.29
0.353 ± 0.00253
0.27
0.335 ± 0.00141
0.28
0.348 ± 0.00293
0.27
0.172 ± 0.00427
0.55
0.162 ± 0.000442
0.59
0.187 ± 0.00135
0.51
0.182 ± 0.00407
0.52
0.239 ± 0.00182
0.40
0.239 ± 0.00142
0.40
0.0973 ± 0.000456
0.98
0.0952 ± 0.000686
1.00
manyToManyAndElementCollection 0.142 ± 0.00217
0.24
0.145 ± 0.000477
0.23
0.144 ± 0.00208
0.23
0.146 ± 0.000828
0.23
0.0527 ± 0.00114
0.64
0.0472 ± 0.000504
0.72
0.0583 ± 0.000728
0.58
0.0496 ± 0.000127
0.68
0.044 ± 0.000135
0.77
0.0434 ± 0.000442
0.78
0.0341 ± 0.000179
≈ 0.99
0.0338 ± 0.000269
1.00
pagination 0.593 ± 0.00188
0.75
0.593 ± 0.00123
0.75
0.595 ± 0.0111
0.75
0.599 ± 0.0149
0.75
0.447 ± 0.00193
1.00
0.453 ± 0.00248
0.99
0.461 ± 0.0114
0.97
0.451 ± 0.00683
≈ 0.99
0.507 ± 0.00398
0.88
0.504 ± 0.00215
0.89
0.449 ± 0.00386
≈ 1.00
0.453 ± 0.0187
≈ 0.99
resultStream 1.09 ± 0.0133
0.91
1.08 ± 0.00164
0.91
1.09 ± 0.0146
0.90
1.09 ± 0.00312
0.91
1.98 ± 0.0243
0.50
1.93 ± 0.039
0.51
2.15 ± 0.0335
0.46
1.96 ± 0.0219
0.50
3.79 ± 0.0417
0.26
3.69 ± 0.00935
0.27
1.03 ± 0.00406
0.96
0.985 ± 0.00377
1.00

Single shot time (ms/op, lower is better)

Score ± error, factor to the fastest below. Bold frame: fastest; thin frame and ≈: within error of the fastest.

BenchmarkApache OpenJPA 4.1.1 (enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (enhanced)Apache OpenJPA 4.1.1 (runtime enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)Hibernate ORM 6.6.59.Final (not enhanced)Hibernate ORM 7.4.15.Final (not enhanced)Hibernate ORM 6.6.59.Final (enhanced)Hibernate ORM 7.4.15.Final (enhanced)EclipseLink 4.0.10 (not woven)EclipseLink 5.0.2 (not woven)EclipseLink 4.0.10 (woven)EclipseLink 5.0.2 (woven)
bulkDelete 0.537 ± 0.0202
≈ 0.95
0.524 ± 0.0257
≈ 0.97
0.51 ± 0.0204
1.00
0.517 ± 0.0257
≈ 0.99
0.517 ± 0.0197
≈ 0.99
0.522 ± 0.0145
≈ 0.98
0.513 ± 0.0158
≈ 1.00
0.515 ± 0.016
≈ 0.99
3.19 ± 0.0662
0.16
3.24 ± 0.0576
0.16
3.17 ± 0.0494
0.16
3.19 ± 0.0928
0.16
bulkUpdate 0.355 ± 0.0435
≈ 0.87
0.347 ± 0.0525
≈ 0.89
0.362 ± 0.0481
≈ 0.85
0.364 ± 0.0539
≈ 0.85
0.309 ± 0.0169
1.00
0.31 ± 0.0172
≈ 1.00
0.323 ± 0.0458
≈ 0.96
0.319 ± 0.0345
≈ 0.97
0.337 ± 0.0588
≈ 0.92
0.311 ± 0.0112
≈ 0.99
0.328 ± 0.0568
≈ 0.94
0.319 ± 0.0214
≈ 0.97
persistBatch 1.04 ± 0.0256
0.89
1.04 ± 0.0264
0.90
1.05 ± 0.018
0.88
1.04 ± 0.0295
0.89
0.932 ± 0.0192
1.00
0.95 ± 0.0168
≈ 0.98
0.984 ± 0.015
0.95
1.00 ± 0.0127
0.93
1.29 ± 0.0118
0.72
1.29 ± 0.0376
0.72
1.00 ± 0.021
0.93
0.998 ± 0.0183
0.93
removeBatch 2.17 ± 0.0182
0.40
2.23 ± 0.0181
0.39
2.16 ± 0.0196
0.40
2.22 ± 0.0227
0.39
0.946 ± 0.0113
0.93
0.939 ± 0.0115
0.93
0.987 ± 0.0197
0.89
0.976 ± 0.01
0.90
1.32 ± 0.0202
0.66
1.32 ± 0.0102
0.66
0.877 ± 0.0112
≈ 1.00
0.876 ± 0.0112
1.00
updateDirtyChecking 0.219 ± 0.0184
0.79
0.219 ± 0.0188
0.79
0.215 ± 0.0201
0.81
0.215 ± 0.0195
0.81
0.253 ± 0.00752
0.69
0.251 ± 0.0243
0.69
0.235 ± 0.036
0.74
0.241 ± 0.0311
0.72
0.332 ± 0.0471
0.52
0.306 ± 0.0405
0.57
0.174 ± 0.0193
1.00
0.193 ± 0.0221
≈ 0.90

Statements per operation

Stacked by kind: SELECT INSERT UPDATE DELETE other. Numbers: statements, JDBC executions, batches, SQL characters per operation.

aggregationGroupBy

Apache OpenJPA 4.1.1 (enhanced) 1 stmts
1 exec · 0 batches · 195 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 1 stmts
1 exec · 0 batches · 195 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 1 stmts
1 exec · 0 batches · 195 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 1 stmts
1 exec · 0 batches · 195 chars
Hibernate ORM 6.6.59.Final (not enhanced) 1 stmts
1 exec · 0 batches · 192 chars
Hibernate ORM 7.4.15.Final (not enhanced) 1 stmts
1 exec · 0 batches · 192 chars
Hibernate ORM 6.6.59.Final (enhanced) 1 stmts
1 exec · 0 batches · 192 chars
Hibernate ORM 7.4.15.Final (enhanced) 1 stmts
1 exec · 0 batches · 192 chars
EclipseLink 4.0.10 (not woven) 1 stmts
1 exec · 0 batches · 174 chars
EclipseLink 5.0.2 (not woven) 1 stmts
1 exec · 0 batches · 174 chars
EclipseLink 4.0.10 (woven) 1 stmts
1 exec · 0 batches · 174 chars
EclipseLink 5.0.2 (woven) 1 stmts
1 exec · 0 batches · 174 chars

bulkDelete

Apache OpenJPA 4.1.1 (enhanced) 2 stmts
2 exec · 0 batches · 126 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 2 stmts
2 exec · 0 batches · 126 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 2 stmts
2 exec · 0 batches · 126 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 2 stmts
2 exec · 0 batches · 126 chars
Hibernate ORM 6.6.59.Final (not enhanced) 2 stmts
2 exec · 0 batches · 120 chars
Hibernate ORM 7.4.15.Final (not enhanced) 2 stmts
2 exec · 0 batches · 120 chars
Hibernate ORM 6.6.59.Final (enhanced) 2 stmts
2 exec · 0 batches · 120 chars
Hibernate ORM 7.4.15.Final (enhanced) 2 stmts
2 exec · 0 batches · 120 chars
EclipseLink 4.0.10 (not woven) 2 stmts
2 exec · 0 batches · 208 chars
EclipseLink 5.0.2 (not woven) 2 stmts
2 exec · 0 batches · 208 chars
EclipseLink 4.0.10 (woven) 2 stmts
2 exec · 0 batches · 208 chars
EclipseLink 5.0.2 (woven) 2 stmts
2 exec · 0 batches · 208 chars

bulkUpdate

Apache OpenJPA 4.1.1 (enhanced) 1 stmts
1 exec · 0 batches · 91 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 1 stmts
1 exec · 0 batches · 91 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 1 stmts
1 exec · 0 batches · 91 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 1 stmts
1 exec · 0 batches · 91 chars
Hibernate ORM 6.6.59.Final (not enhanced) 1 stmts
1 exec · 0 batches · 63 chars
Hibernate ORM 7.4.15.Final (not enhanced) 1 stmts
1 exec · 0 batches · 63 chars
Hibernate ORM 6.6.59.Final (enhanced) 1 stmts
1 exec · 0 batches · 63 chars
Hibernate ORM 7.4.15.Final (enhanced) 1 stmts
1 exec · 0 batches · 63 chars
EclipseLink 4.0.10 (not woven) 1 stmts
1 exec · 0 batches · 92 chars
EclipseLink 5.0.2 (not woven) 1 stmts
1 exec · 0 batches · 92 chars
EclipseLink 4.0.10 (woven) 1 stmts
1 exec · 0 batches · 92 chars
EclipseLink 5.0.2 (woven) 1 stmts
1 exec · 0 batches · 92 chars

criteriaQuery

Apache OpenJPA 4.1.1 (enhanced) 1 stmts
1 exec · 0 batches · 211 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 1 stmts
1 exec · 0 batches · 211 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 1 stmts
1 exec · 0 batches · 211 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 1 stmts
1 exec · 0 batches · 211 chars
Hibernate ORM 6.6.59.Final (not enhanced) 1 stmts
1 exec · 0 batches · 232 chars
Hibernate ORM 7.4.15.Final (not enhanced) 1 stmts
1 exec · 0 batches · 232 chars
Hibernate ORM 6.6.59.Final (enhanced) 1 stmts
1 exec · 0 batches · 232 chars
Hibernate ORM 7.4.15.Final (enhanced) 1 stmts
1 exec · 0 batches · 232 chars
EclipseLink 4.0.10 (not woven) 1 stmts
1 exec · 0 batches · 236 chars
EclipseLink 5.0.2 (not woven) 1 stmts
1 exec · 0 batches · 236 chars
EclipseLink 4.0.10 (woven) 1 stmts
1 exec · 0 batches · 236 chars
EclipseLink 5.0.2 (woven) 1 stmts
1 exec · 0 batches · 236 chars

dtoProjection

Apache OpenJPA 4.1.1 (enhanced) 1 stmts
1 exec · 0 batches · 192 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 1 stmts
1 exec · 0 batches · 192 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 1 stmts
1 exec · 0 batches · 192 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 1 stmts
1 exec · 0 batches · 192 chars
Hibernate ORM 6.6.59.Final (not enhanced) 1 stmts
1 exec · 0 batches · 206 chars
Hibernate ORM 7.4.15.Final (not enhanced) 1 stmts
1 exec · 0 batches · 206 chars
Hibernate ORM 6.6.59.Final (enhanced) 1 stmts
1 exec · 0 batches · 206 chars
Hibernate ORM 7.4.15.Final (enhanced) 1 stmts
1 exec · 0 batches · 206 chars
EclipseLink 4.0.10 (not woven) 1 stmts
1 exec · 0 batches · 204 chars
EclipseLink 5.0.2 (not woven) 1 stmts
1 exec · 0 batches · 204 chars
EclipseLink 4.0.10 (woven) 1 stmts
1 exec · 0 batches · 204 chars
EclipseLink 5.0.2 (woven) 1 stmts
1 exec · 0 batches · 204 chars

findById

Apache OpenJPA 4.1.1 (enhanced) 1 stmts
1 exec · 0 batches · 139 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 1 stmts
1 exec · 0 batches · 139 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 1 stmts
1 exec · 0 batches · 139 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 1 stmts
1 exec · 0 batches · 139 chars
Hibernate ORM 6.6.59.Final (not enhanced) 1 stmts
1 exec · 0 batches · 151 chars
Hibernate ORM 7.4.15.Final (not enhanced) 1 stmts
1 exec · 0 batches · 151 chars
Hibernate ORM 6.6.59.Final (enhanced) 1 stmts
1 exec · 0 batches · 151 chars
Hibernate ORM 7.4.15.Final (enhanced) 1 stmts
1 exec · 0 batches · 151 chars
EclipseLink 4.0.10 (not woven) 1 stmts
1 exec · 0 batches · 108 chars
EclipseLink 5.0.2 (not woven) 1 stmts
1 exec · 0 batches · 108 chars
EclipseLink 4.0.10 (woven) 1 stmts
1 exec · 0 batches · 108 chars
EclipseLink 5.0.2 (woven) 1 stmts
1 exec · 0 batches · 108 chars

inheritanceJoinedQuery

Apache OpenJPA 4.1.1 (enhanced) 1 stmts
1 exec · 0 batches · 263 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 1 stmts
1 exec · 0 batches · 263 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 1 stmts
1 exec · 0 batches · 263 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 1 stmts
1 exec · 0 batches · 263 chars
Hibernate ORM 6.6.59.Final (not enhanced) 1 stmts
1 exec · 0 batches · 281 chars
Hibernate ORM 7.4.15.Final (not enhanced) 1 stmts
1 exec · 0 batches · 281 chars
Hibernate ORM 6.6.59.Final (enhanced) 1 stmts
1 exec · 0 batches · 281 chars
Hibernate ORM 7.4.15.Final (enhanced) 1 stmts
1 exec · 0 batches · 281 chars
EclipseLink 4.0.10 (not woven) 1 stmts
1 exec · 0 batches · 278 chars
EclipseLink 5.0.2 (not woven) 1 stmts
1 exec · 0 batches · 278 chars
EclipseLink 4.0.10 (woven) 1 stmts
1 exec · 0 batches · 278 chars
EclipseLink 5.0.2 (woven) 1 stmts
1 exec · 0 batches · 278 chars

inheritanceSingleTableQuery

Apache OpenJPA 4.1.1 (enhanced) 1 stmts
1 exec · 0 batches · 165 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 1 stmts
1 exec · 0 batches · 165 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 1 stmts
1 exec · 0 batches · 165 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 1 stmts
1 exec · 0 batches · 165 chars
Hibernate ORM 6.6.59.Final (not enhanced) 1 stmts
1 exec · 0 batches · 181 chars
Hibernate ORM 7.4.15.Final (not enhanced) 1 stmts
1 exec · 0 batches · 181 chars
Hibernate ORM 6.6.59.Final (enhanced) 1 stmts
1 exec · 0 batches · 181 chars
Hibernate ORM 7.4.15.Final (enhanced) 1 stmts
1 exec · 0 batches · 181 chars
EclipseLink 4.0.10 (not woven) 1 stmts
1 exec · 0 batches · 124 chars
EclipseLink 5.0.2 (not woven) 1 stmts
1 exec · 0 batches · 124 chars
EclipseLink 4.0.10 (woven) 1 stmts
1 exec · 0 batches · 124 chars
EclipseLink 5.0.2 (woven) 1 stmts
1 exec · 0 batches · 124 chars

joinFetch

Apache OpenJPA 4.1.1 (enhanced) 1 stmts
1 exec · 0 batches · 427 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 1 stmts
1 exec · 0 batches · 427 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 1 stmts
1 exec · 0 batches · 427 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 1 stmts
1 exec · 0 batches · 427 chars
Hibernate ORM 6.6.59.Final (not enhanced) 1 stmts
1 exec · 0 batches · 451 chars
Hibernate ORM 7.4.15.Final (not enhanced) 1 stmts
1 exec · 0 batches · 451 chars
Hibernate ORM 6.6.59.Final (enhanced) 1 stmts
1 exec · 0 batches · 451 chars
Hibernate ORM 7.4.15.Final (enhanced) 1 stmts
1 exec · 0 batches · 451 chars
EclipseLink 4.0.10 (not woven) 57.33 stmts
57.33 exec · 0 batches · 3,506 chars
EclipseLink 5.0.2 (not woven) 57.34 stmts
57.34 exec · 0 batches · 3,506 chars
EclipseLink 4.0.10 (woven) 1 stmts
1 exec · 0 batches · 408 chars
EclipseLink 5.0.2 (woven) 1 stmts
1 exec · 0 batches · 408 chars

jpqlByIndexedAttribute

Apache OpenJPA 4.1.1 (enhanced) 1 stmts
1 exec · 0 batches · 144 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 1 stmts
1 exec · 0 batches · 144 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 1 stmts
1 exec · 0 batches · 144 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 1 stmts
1 exec · 0 batches · 144 chars
Hibernate ORM 6.6.59.Final (not enhanced) 1 stmts
1 exec · 0 batches · 154 chars
Hibernate ORM 7.4.15.Final (not enhanced) 1 stmts
1 exec · 0 batches · 154 chars
Hibernate ORM 6.6.59.Final (enhanced) 1 stmts
1 exec · 0 batches · 154 chars
Hibernate ORM 7.4.15.Final (enhanced) 1 stmts
1 exec · 0 batches · 154 chars
EclipseLink 4.0.10 (not woven) 1 stmts
1 exec · 0 batches · 111 chars
EclipseLink 5.0.2 (not woven) 1 stmts
1 exec · 0 batches · 111 chars
EclipseLink 4.0.10 (woven) 1 stmts
1 exec · 0 batches · 111 chars
EclipseLink 5.0.2 (woven) 1 stmts
1 exec · 0 batches · 111 chars

lazyNavigationNPlusOne

Apache OpenJPA 4.1.1 (enhanced) 40.82 stmts
40.82 exec · 0 batches · 5,318 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 40.82 stmts
40.82 exec · 0 batches · 5,318 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 40.82 stmts
40.82 exec · 0 batches · 5,318 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 40.82 stmts
40.82 exec · 0 batches · 5,318 chars
Hibernate ORM 6.6.59.Final (not enhanced) 40.82 stmts
40.82 exec · 0 batches · 5,749 chars
Hibernate ORM 7.4.15.Final (not enhanced) 40.82 stmts
40.82 exec · 0 batches · 5,749 chars
Hibernate ORM 6.6.59.Final (enhanced) 40.82 stmts
40.82 exec · 0 batches · 5,749 chars
Hibernate ORM 7.4.15.Final (enhanced) 40.82 stmts
40.82 exec · 0 batches · 5,749 chars
EclipseLink 4.0.10 (not woven) 97.17 stmts
97.17 exec · 0 batches · 7,328 chars
EclipseLink 5.0.2 (not woven) 97.16 stmts
97.16 exec · 0 batches · 7,328 chars
EclipseLink 4.0.10 (woven) 40.82 stmts
40.82 exec · 0 batches · 4,229 chars
EclipseLink 5.0.2 (woven) 40.82 stmts
40.82 exec · 0 batches · 4,229 chars

manyToManyAndElementCollection

Apache OpenJPA 4.1.1 (enhanced) 21 stmts
21 exec · 0 batches · 1,868 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 21 stmts
21 exec · 0 batches · 1,868 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 21 stmts
21 exec · 0 batches · 1,868 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 21 stmts
21 exec · 0 batches · 1,868 chars
Hibernate ORM 6.6.59.Final (not enhanced) 21 stmts
21 exec · 0 batches · 2,259 chars
Hibernate ORM 7.4.15.Final (not enhanced) 21 stmts
21 exec · 0 batches · 2,259 chars
Hibernate ORM 6.6.59.Final (enhanced) 21 stmts
21 exec · 0 batches · 2,259 chars
Hibernate ORM 7.4.15.Final (enhanced) 21 stmts
21 exec · 0 batches · 2,259 chars
EclipseLink 4.0.10 (not woven) 21 stmts
21 exec · 0 batches · 1,829 chars
EclipseLink 5.0.2 (not woven) 21 stmts
21 exec · 0 batches · 1,829 chars
EclipseLink 4.0.10 (woven) 21 stmts
21 exec · 0 batches · 1,829 chars
EclipseLink 5.0.2 (woven) 21 stmts
21 exec · 0 batches · 1,829 chars

pagination

Apache OpenJPA 4.1.1 (enhanced) 2 stmts
2 exec · 0 batches · 225 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 2 stmts
2 exec · 0 batches · 225 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 2 stmts
2 exec · 0 batches · 225 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 2 stmts
2 exec · 0 batches · 225 chars
Hibernate ORM 6.6.59.Final (not enhanced) 2 stmts
2 exec · 0 batches · 272 chars
Hibernate ORM 7.4.15.Final (not enhanced) 2 stmts
2 exec · 0 batches · 272 chars
Hibernate ORM 6.6.59.Final (enhanced) 2 stmts
2 exec · 0 batches · 272 chars
Hibernate ORM 7.4.15.Final (enhanced) 2 stmts
2 exec · 0 batches · 272 chars
EclipseLink 4.0.10 (not woven) 21.91 stmts
21.91 exec · 0 batches · 2,372 chars
EclipseLink 5.0.2 (not woven) 21.9 stmts
21.9 exec · 0 batches · 2,372 chars
EclipseLink 4.0.10 (woven) 2 stmts
2 exec · 0 batches · 223 chars
EclipseLink 5.0.2 (woven) 2 stmts
2 exec · 0 batches · 223 chars

persistBatch

Apache OpenJPA 4.1.1 (enhanced) 200 stmts
4 exec · 4 batches · 416 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 200 stmts
4 exec · 4 batches · 416 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 200 stmts
4 exec · 4 batches · 416 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 200 stmts
4 exec · 4 batches · 416 chars
Hibernate ORM 6.6.59.Final (not enhanced) 200 stmts
4 exec · 4 batches · 376 chars
Hibernate ORM 7.4.15.Final (not enhanced) 200 stmts
4 exec · 4 batches · 376 chars
Hibernate ORM 6.6.59.Final (enhanced) 200 stmts
4 exec · 4 batches · 376 chars
Hibernate ORM 7.4.15.Final (enhanced) 200 stmts
4 exec · 4 batches · 376 chars
EclipseLink 4.0.10 (not woven) 378.82 stmts
182.82 exec · 4 batches · 12,843 chars
EclipseLink 5.0.2 (not woven) 378.82 stmts
182.82 exec · 4 batches · 12,843 chars
EclipseLink 4.0.10 (woven) 200 stmts
4 exec · 4 batches · 416 chars
EclipseLink 5.0.2 (woven) 200 stmts
4 exec · 4 batches · 416 chars

removeBatch

Apache OpenJPA 4.1.1 (enhanced) 429.19 stmts
233.19 exec · 4 batches · 21,394 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 429.19 stmts
233.19 exec · 4 batches · 21,394 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 429.19 stmts
233.19 exec · 4 batches · 21,394 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 429.19 stmts
233.19 exec · 4 batches · 21,394 chars
Hibernate ORM 6.6.59.Final (not enhanced) 251 stmts
151 exec · 100 batches · 10,438 chars
Hibernate ORM 7.4.15.Final (not enhanced) 251 stmts
151 exec · 100 batches · 10,438 chars
Hibernate ORM 6.6.59.Final (enhanced) 251 stmts
151 exec · 100 batches · 10,438 chars
Hibernate ORM 7.4.15.Final (enhanced) 251 stmts
151 exec · 100 batches · 10,438 chars
EclipseLink 4.0.10 (not woven) 429.19 stmts
233.19 exec · 4 batches · 17,600 chars
EclipseLink 5.0.2 (not woven) 429.19 stmts
233.19 exec · 4 batches · 17,600 chars
EclipseLink 4.0.10 (woven) 251 stmts
55 exec · 4 batches · 5,211 chars
EclipseLink 5.0.2 (woven) 251 stmts
55 exec · 4 batches · 5,211 chars

resultStream

Apache OpenJPA 4.1.1 (enhanced) 1 stmts
1 exec · 0 batches · 144 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 1 stmts
1 exec · 0 batches · 144 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 1 stmts
1 exec · 0 batches · 144 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 1 stmts
1 exec · 0 batches · 144 chars
Hibernate ORM 6.6.59.Final (not enhanced) 1 stmts
1 exec · 0 batches · 156 chars
Hibernate ORM 7.4.15.Final (not enhanced) 1 stmts
1 exec · 0 batches · 156 chars
Hibernate ORM 6.6.59.Final (enhanced) 1 stmts
1 exec · 0 batches · 156 chars
Hibernate ORM 7.4.15.Final (enhanced) 1 stmts
1 exec · 0 batches · 156 chars
EclipseLink 4.0.10 (not woven) 867.37 stmts
867.37 exec · 0 batches · 93,676 chars
EclipseLink 5.0.2 (not woven) 867.33 stmts
867.33 exec · 0 batches · 93,673 chars
EclipseLink 4.0.10 (woven) 1 stmts
1 exec · 0 batches · 109 chars
EclipseLink 5.0.2 (woven) 1 stmts
1 exec · 0 batches · 109 chars

updateDirtyChecking

Apache OpenJPA 4.1.1 (enhanced) 51 stmts
8.18 exec · 3.94 batches · 681 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 51 stmts
8.18 exec · 3.94 batches · 681 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 51 stmts
8.18 exec · 3.94 batches · 681 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 51 stmts
8.18 exec · 3.94 batches · 681 chars
Hibernate ORM 6.6.59.Final (not enhanced) 51 stmts
2 exec · 1 batches · 252 chars
Hibernate ORM 7.4.15.Final (not enhanced) 51 stmts
2 exec · 1 batches · 252 chars
Hibernate ORM 6.6.59.Final (enhanced) 51 stmts
2 exec · 1 batches · 252 chars
Hibernate ORM 7.4.15.Final (enhanced) 51 stmts
2 exec · 1 batches · 252 chars
EclipseLink 4.0.10 (not woven) 99.87 stmts
57.05 exec · 3.94 batches · 5,967 chars
EclipseLink 5.0.2 (not woven) 99.87 stmts
57.05 exec · 3.94 batches · 5,967 chars
EclipseLink 4.0.10 (woven) 51 stmts
8.18 exec · 3.94 batches · 689 chars
EclipseLink 5.0.2 (woven) 51 stmts
8.18 exec · 3.94 batches · 689 chars
Statement metrics table
BenchmarkProviderSELECTINSERTUPDATEDELETEotherstatementsstatement executionsJDBC batchesbatched rowsSQL charslongest SELECT (chars)joined tables in SELECTsconnections acquiredcommitsrollbacksConnection.set* callsstatements prepared
aggregationGroupByApache OpenJPA 4.1.1 (enhanced)1.0000001.001.0000195.0195.01.001.00001.001.00
aggregationGroupByApache OpenJPA 4.2.0-SNAPSHOT (enhanced)1.0000001.001.0000195.0195.01.001.00001.001.00
aggregationGroupByApache OpenJPA 4.1.1 (runtime enhanced)1.0000001.001.0000195.0195.01.001.00001.001.00
aggregationGroupByApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)1.0000001.001.0000195.0195.01.001.00001.001.00
aggregationGroupByHibernate ORM 6.6.59.Final (not enhanced)1.0000001.001.0000192.0192.01.001.001.00001.00
aggregationGroupByHibernate ORM 7.4.15.Final (not enhanced)1.0000001.001.0000192.0192.01.001.001.00001.00
aggregationGroupByHibernate ORM 6.6.59.Final (enhanced)1.0000001.001.0000192.0192.01.001.001.00001.00
aggregationGroupByHibernate ORM 7.4.15.Final (enhanced)1.0000001.001.0000192.0192.01.001.001.00001.00
aggregationGroupByEclipseLink 4.0.10 (not woven)1.0000001.001.0000174.0174.01.001.001.0002.001.00
aggregationGroupByEclipseLink 5.0.2 (not woven)1.0000001.001.0000174.0174.01.001.001.0002.001.00
aggregationGroupByEclipseLink 4.0.10 (woven)1.0000001.001.0000174.0174.01.001.001.0002.001.00
aggregationGroupByEclipseLink 5.0.2 (woven)1.0000001.001.0000174.0174.01.001.001.0002.001.00
bulkDeleteApache OpenJPA 4.1.1 (enhanced)0002.0002.002.0000126.0001.001.0003.002.00
bulkDeleteApache OpenJPA 4.2.0-SNAPSHOT (enhanced)0002.0002.002.0000126.0001.001.0003.002.00
bulkDeleteApache OpenJPA 4.1.1 (runtime enhanced)0002.0002.002.0000126.0001.001.0003.002.00
bulkDeleteApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)0002.0002.002.0000126.0001.001.0003.002.00
bulkDeleteHibernate ORM 6.6.59.Final (not enhanced)0002.0002.002.0000120.0001.001.00002.00
bulkDeleteHibernate ORM 7.4.15.Final (not enhanced)0002.0002.002.0000120.0001.001.00002.00
bulkDeleteHibernate ORM 6.6.59.Final (enhanced)0002.0002.002.0000120.0001.001.00002.00
bulkDeleteHibernate ORM 7.4.15.Final (enhanced)0002.0002.002.0000120.0001.001.00002.00
bulkDeleteEclipseLink 4.0.10 (not woven)0002.0002.002.0000208.0001.001.0002.002.00
bulkDeleteEclipseLink 5.0.2 (not woven)0002.0002.002.0000208.0001.001.0002.002.00
bulkDeleteEclipseLink 4.0.10 (woven)0002.0002.002.0000208.0001.001.0002.002.00
bulkDeleteEclipseLink 5.0.2 (woven)0002.0002.002.0000208.0001.001.0002.002.00
bulkUpdateApache OpenJPA 4.1.1 (enhanced)001.00001.001.000091.00001.001.0003.001.00
bulkUpdateApache OpenJPA 4.2.0-SNAPSHOT (enhanced)001.00001.001.000091.00001.001.0003.001.00
bulkUpdateApache OpenJPA 4.1.1 (runtime enhanced)001.00001.001.000091.00001.001.0003.001.00
bulkUpdateApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)001.00001.001.000091.00001.001.0003.001.00
bulkUpdateHibernate ORM 6.6.59.Final (not enhanced)001.00001.001.000063.00001.001.00001.00
bulkUpdateHibernate ORM 7.4.15.Final (not enhanced)001.00001.001.000063.00001.001.00001.00
bulkUpdateHibernate ORM 6.6.59.Final (enhanced)001.00001.001.000063.00001.001.00001.00
bulkUpdateHibernate ORM 7.4.15.Final (enhanced)001.00001.001.000063.00001.001.00001.00
bulkUpdateEclipseLink 4.0.10 (not woven)001.00001.001.000092.90001.001.0002.001.00
bulkUpdateEclipseLink 5.0.2 (not woven)001.00001.001.000092.90001.001.0002.001.00
bulkUpdateEclipseLink 4.0.10 (woven)001.00001.001.000092.90001.001.0002.001.00
bulkUpdateEclipseLink 5.0.2 (woven)001.00001.001.000092.90001.001.0002.001.00
criteriaQueryApache OpenJPA 4.1.1 (enhanced)1.0000001.001.0000211.0211.001.00001.001.00
criteriaQueryApache OpenJPA 4.2.0-SNAPSHOT (enhanced)1.0000001.001.0000211.0211.001.00001.001.00
criteriaQueryApache OpenJPA 4.1.1 (runtime enhanced)1.0000001.001.0000211.0211.001.00001.001.00
criteriaQueryApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)1.0000001.001.0000211.0211.001.00001.001.00
criteriaQueryHibernate ORM 6.6.59.Final (not enhanced)1.0000001.001.0000232.0232.001.001.00001.00
criteriaQueryHibernate ORM 7.4.15.Final (not enhanced)1.0000001.001.0000232.0232.001.001.00001.00
criteriaQueryHibernate ORM 6.6.59.Final (enhanced)1.0000001.001.0000232.0232.001.001.00001.00
criteriaQueryHibernate ORM 7.4.15.Final (enhanced)1.0000001.001.0000232.0232.001.001.00001.00
criteriaQueryEclipseLink 4.0.10 (not woven)1.0000001.001.0000236.0236.001.001.0002.001.00
criteriaQueryEclipseLink 5.0.2 (not woven)1.0000001.001.0000236.0236.001.001.0002.001.00
criteriaQueryEclipseLink 4.0.10 (woven)1.0000001.001.0000236.0236.001.001.0002.001.00
criteriaQueryEclipseLink 5.0.2 (woven)1.0000001.001.0000236.0236.001.001.0002.001.00
dtoProjectionApache OpenJPA 4.1.1 (enhanced)1.0000001.001.0000192.0192.01.001.00001.001.00
dtoProjectionApache OpenJPA 4.2.0-SNAPSHOT (enhanced)1.0000001.001.0000192.0192.01.001.00001.001.00
dtoProjectionApache OpenJPA 4.1.1 (runtime enhanced)1.0000001.001.0000192.0192.01.001.00001.001.00
dtoProjectionApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)1.0000001.001.0000192.0192.01.001.00001.001.00
dtoProjectionHibernate ORM 6.6.59.Final (not enhanced)1.0000001.001.0000206.0206.01.001.001.00001.00
dtoProjectionHibernate ORM 7.4.15.Final (not enhanced)1.0000001.001.0000206.0206.01.001.001.00001.00
dtoProjectionHibernate ORM 6.6.59.Final (enhanced)1.0000001.001.0000206.0206.01.001.001.00001.00
dtoProjectionHibernate ORM 7.4.15.Final (enhanced)1.0000001.001.0000206.0206.01.001.001.00001.00
dtoProjectionEclipseLink 4.0.10 (not woven)1.0000001.001.0000204.0204.01.001.001.0002.001.00
dtoProjectionEclipseLink 5.0.2 (not woven)1.0000001.001.0000204.0204.01.001.001.0002.001.00
dtoProjectionEclipseLink 4.0.10 (woven)1.0000001.001.0000204.0204.01.001.001.0002.001.00
dtoProjectionEclipseLink 5.0.2 (woven)1.0000001.001.0000204.0204.01.001.001.0002.001.00
findByIdApache OpenJPA 4.1.1 (enhanced)1.0000001.001.0000139.0139.001.00001.001.00
findByIdApache OpenJPA 4.2.0-SNAPSHOT (enhanced)1.0000001.001.0000139.0139.001.00001.001.00
findByIdApache OpenJPA 4.1.1 (runtime enhanced)1.0000001.001.0000139.0139.001.00001.001.00
findByIdApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)1.0000001.001.0000139.0139.001.00001.001.00
findByIdHibernate ORM 6.6.59.Final (not enhanced)1.0000001.001.0000151.0151.001.001.00001.00
findByIdHibernate ORM 7.4.15.Final (not enhanced)1.0000001.001.0000151.0151.001.001.00001.00
findByIdHibernate ORM 6.6.59.Final (enhanced)1.0000001.001.0000151.0151.001.001.00001.00
findByIdHibernate ORM 7.4.15.Final (enhanced)1.0000001.001.0000151.0151.001.001.00001.00
findByIdEclipseLink 4.0.10 (not woven)1.0000001.001.0000108.0108.001.001.0002.001.00
findByIdEclipseLink 5.0.2 (not woven)1.0000001.001.0000108.0108.001.001.0002.001.00
findByIdEclipseLink 4.0.10 (woven)1.0000001.001.0000108.0108.001.001.0002.001.00
findByIdEclipseLink 5.0.2 (woven)1.0000001.001.0000108.0108.001.001.0002.001.00
inheritanceJoinedQueryApache OpenJPA 4.1.1 (enhanced)1.0000001.001.0000263.0263.02.001.00001.001.00
inheritanceJoinedQueryApache OpenJPA 4.2.0-SNAPSHOT (enhanced)1.0000001.001.0000263.0263.02.001.00001.001.00
inheritanceJoinedQueryApache OpenJPA 4.1.1 (runtime enhanced)1.0000001.001.0000263.0263.02.001.00001.001.00
inheritanceJoinedQueryApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)1.0000001.001.0000263.0263.02.001.00001.001.00
inheritanceJoinedQueryHibernate ORM 6.6.59.Final (not enhanced)1.0000001.001.0000281.0281.02.001.001.00001.00
inheritanceJoinedQueryHibernate ORM 7.4.15.Final (not enhanced)1.0000001.001.0000281.0281.02.001.001.00001.00
inheritanceJoinedQueryHibernate ORM 6.6.59.Final (enhanced)1.0000001.001.0000281.0281.02.001.001.00001.00
inheritanceJoinedQueryHibernate ORM 7.4.15.Final (enhanced)1.0000001.001.0000281.0281.02.001.001.00001.00
inheritanceJoinedQueryEclipseLink 4.0.10 (not woven)1.0000001.001.0000278.0278.02.001.001.0002.001.00
inheritanceJoinedQueryEclipseLink 5.0.2 (not woven)1.0000001.001.0000278.0278.02.001.001.0002.001.00
inheritanceJoinedQueryEclipseLink 4.0.10 (woven)1.0000001.001.0000278.0278.02.001.001.0002.001.00
inheritanceJoinedQueryEclipseLink 5.0.2 (woven)1.0000001.001.0000278.0278.02.001.001.0002.001.00
inheritanceSingleTableQueryApache OpenJPA 4.1.1 (enhanced)1.0000001.001.0000165.0165.001.00001.001.00
inheritanceSingleTableQueryApache OpenJPA 4.2.0-SNAPSHOT (enhanced)1.0000001.001.0000165.0165.001.00001.001.00
inheritanceSingleTableQueryApache OpenJPA 4.1.1 (runtime enhanced)1.0000001.001.0000165.0165.001.00001.001.00
inheritanceSingleTableQueryApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)1.0000001.001.0000165.0165.001.00001.001.00
inheritanceSingleTableQueryHibernate ORM 6.6.59.Final (not enhanced)1.0000001.001.0000181.0181.001.001.00001.00
inheritanceSingleTableQueryHibernate ORM 7.4.15.Final (not enhanced)1.0000001.001.0000181.0181.001.001.00001.00
inheritanceSingleTableQueryHibernate ORM 6.6.59.Final (enhanced)1.0000001.001.0000181.0181.001.001.00001.00
inheritanceSingleTableQueryHibernate ORM 7.4.15.Final (enhanced)1.0000001.001.0000181.0181.001.001.00001.00
inheritanceSingleTableQueryEclipseLink 4.0.10 (not woven)1.0000001.001.0000124.0124.001.001.0002.001.00
inheritanceSingleTableQueryEclipseLink 5.0.2 (not woven)1.0000001.001.0000124.0124.001.001.0002.001.00
inheritanceSingleTableQueryEclipseLink 4.0.10 (woven)1.0000001.001.0000124.0124.001.001.0002.001.00
inheritanceSingleTableQueryEclipseLink 5.0.2 (woven)1.0000001.001.0000124.0124.001.001.0002.001.00
joinFetchApache OpenJPA 4.1.1 (enhanced)1.0000001.001.0000427.0427.02.001.00001.001.00
joinFetchApache OpenJPA 4.2.0-SNAPSHOT (enhanced)1.0000001.001.0000427.0427.02.001.00001.001.00
joinFetchApache OpenJPA 4.1.1 (runtime enhanced)1.0000001.001.0000427.0427.02.001.00001.001.00
joinFetchApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)1.0000001.001.0000427.0427.02.001.00001.001.00
joinFetchHibernate ORM 6.6.59.Final (not enhanced)1.0000001.001.0000451.0451.02.001.001.00001.00
joinFetchHibernate ORM 7.4.15.Final (not enhanced)1.0000001.001.0000451.0451.02.001.001.00001.00
joinFetchHibernate ORM 6.6.59.Final (enhanced)1.0000001.001.0000451.0451.02.001.001.00001.00
joinFetchHibernate ORM 7.4.15.Final (enhanced)1.0000001.001.0000451.0451.02.001.001.00001.00
joinFetchEclipseLink 4.0.10 (not woven)57.33000057.3357.33003,506408.02.001.001.0002.0057.33
joinFetchEclipseLink 5.0.2 (not woven)57.34000057.3457.34003,506408.02.001.001.0002.0057.34
joinFetchEclipseLink 4.0.10 (woven)1.0000001.001.0000408.0408.02.001.001.0002.001.00
joinFetchEclipseLink 5.0.2 (woven)1.0000001.001.0000408.0408.02.001.001.0002.001.00
jpqlByIndexedAttributeApache OpenJPA 4.1.1 (enhanced)1.0000001.001.0000144.0144.001.00001.001.00
jpqlByIndexedAttributeApache OpenJPA 4.2.0-SNAPSHOT (enhanced)1.0000001.001.0000144.0144.001.00001.001.00
jpqlByIndexedAttributeApache OpenJPA 4.1.1 (runtime enhanced)1.0000001.001.0000144.0144.001.00001.001.00
jpqlByIndexedAttributeApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)1.0000001.001.0000144.0144.001.00001.001.00
jpqlByIndexedAttributeHibernate ORM 6.6.59.Final (not enhanced)1.0000001.001.0000154.0154.001.001.00001.00
jpqlByIndexedAttributeHibernate ORM 7.4.15.Final (not enhanced)1.0000001.001.0000154.0154.001.001.00001.00
jpqlByIndexedAttributeHibernate ORM 6.6.59.Final (enhanced)1.0000001.001.0000154.0154.001.001.00001.00
jpqlByIndexedAttributeHibernate ORM 7.4.15.Final (enhanced)1.0000001.001.0000154.0154.001.001.00001.00
jpqlByIndexedAttributeEclipseLink 4.0.10 (not woven)1.0000001.001.0000111.0111.001.001.0002.001.00
jpqlByIndexedAttributeEclipseLink 5.0.2 (not woven)1.0000001.001.0000111.0111.001.001.0002.001.00
jpqlByIndexedAttributeEclipseLink 4.0.10 (woven)1.0000001.001.0000111.0111.001.001.0002.001.00
jpqlByIndexedAttributeEclipseLink 5.0.2 (woven)1.0000001.001.0000111.0111.001.001.0002.001.00
lazyNavigationNPlusOneApache OpenJPA 4.1.1 (enhanced)40.82000040.8240.82005,318144.0040.820040.8240.82
lazyNavigationNPlusOneApache OpenJPA 4.2.0-SNAPSHOT (enhanced)40.82000040.8240.82005,319144.0040.820040.8240.82
lazyNavigationNPlusOneApache OpenJPA 4.1.1 (runtime enhanced)40.82000040.8240.82005,319144.0040.820040.8240.82
lazyNavigationNPlusOneApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)40.82000040.8240.82005,318144.0040.820040.8240.82
lazyNavigationNPlusOneHibernate ORM 6.6.59.Final (not enhanced)40.82000040.8240.82005,749156.001.001.000040.82
lazyNavigationNPlusOneHibernate ORM 7.4.15.Final (not enhanced)40.82000040.8240.82005,749156.001.001.000040.82
lazyNavigationNPlusOneHibernate ORM 6.6.59.Final (enhanced)40.82000040.8240.82005,749156.001.001.000040.82
lazyNavigationNPlusOneHibernate ORM 7.4.15.Final (enhanced)40.82000040.8240.82005,749156.001.001.000040.82
lazyNavigationNPlusOneEclipseLink 4.0.10 (not woven)97.17000097.1797.17007,329109.001.001.0002.0097.17
lazyNavigationNPlusOneEclipseLink 5.0.2 (not woven)97.16000097.1697.16007,328109.001.001.0002.0097.16
lazyNavigationNPlusOneEclipseLink 4.0.10 (woven)40.82000040.8240.82004,229109.001.001.0002.0040.82
lazyNavigationNPlusOneEclipseLink 5.0.2 (woven)40.82000040.8240.82004,229109.001.001.0002.0040.82
manyToManyAndElementCollectionApache OpenJPA 4.1.1 (enhanced)21.00000021.0021.00001,868119.010.0021.000021.0021.00
manyToManyAndElementCollectionApache OpenJPA 4.2.0-SNAPSHOT (enhanced)21.00000021.0021.00001,868119.010.0021.000021.0021.00
manyToManyAndElementCollectionApache OpenJPA 4.1.1 (runtime enhanced)21.00000021.0021.00001,868119.010.0021.000021.0021.00
manyToManyAndElementCollectionApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)21.00000021.0021.00001,868119.010.0021.000021.0021.00
manyToManyAndElementCollectionHibernate ORM 6.6.59.Final (not enhanced)21.00000021.0021.00002,259138.010.001.001.000021.00
manyToManyAndElementCollectionHibernate ORM 7.4.15.Final (not enhanced)21.00000021.0021.00002,259138.010.001.001.000021.00
manyToManyAndElementCollectionHibernate ORM 6.6.59.Final (enhanced)21.00000021.0021.00002,259138.010.001.001.000021.00
manyToManyAndElementCollectionHibernate ORM 7.4.15.Final (enhanced)21.00000021.0021.00002,259138.010.001.001.000021.00
manyToManyAndElementCollectionEclipseLink 4.0.10 (not woven)21.00000021.0021.00001,829116.010.001.001.0002.0021.00
manyToManyAndElementCollectionEclipseLink 5.0.2 (not woven)21.00000021.0021.00001,829116.010.001.001.0002.0021.00
manyToManyAndElementCollectionEclipseLink 4.0.10 (woven)21.00000021.0021.00001,829116.010.001.001.0002.0021.00
manyToManyAndElementCollectionEclipseLink 5.0.2 (woven)21.00000021.0021.00001,829116.010.001.001.0002.0021.00
paginationApache OpenJPA 4.1.1 (enhanced)2.0000002.002.0000225.8170.002.00002.002.00
paginationApache OpenJPA 4.2.0-SNAPSHOT (enhanced)2.0000002.002.0000225.8170.002.00002.002.00
paginationApache OpenJPA 4.1.1 (runtime enhanced)2.0000002.002.0000225.8170.002.00002.002.00
paginationApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)2.0000002.002.0000225.8170.002.00002.002.00
paginationHibernate ORM 6.6.59.Final (not enhanced)2.0000002.002.0000272.0211.001.001.00002.00
paginationHibernate ORM 7.4.15.Final (not enhanced)2.0000002.002.0000272.0211.001.001.00002.00
paginationHibernate ORM 6.6.59.Final (enhanced)2.0000002.002.0000272.0211.001.001.00002.00
paginationHibernate ORM 7.4.15.Final (enhanced)2.0000002.002.0000272.0211.001.001.00002.00
paginationEclipseLink 4.0.10 (not woven)21.91000021.9121.91002,373176.001.001.0002.0021.91
paginationEclipseLink 5.0.2 (not woven)21.90000021.9021.90002,373176.001.001.0002.0021.90
paginationEclipseLink 4.0.10 (woven)2.0000002.002.0000223.0176.001.001.0002.002.00
paginationEclipseLink 5.0.2 (woven)2.0000002.002.0000223.0176.001.001.0002.002.00
persistBatchApache OpenJPA 4.1.1 (enhanced)0200.0000200.04.004.00200.0416.0001.001.0003.002.00
persistBatchApache OpenJPA 4.2.0-SNAPSHOT (enhanced)0200.0000200.04.004.00200.0416.0001.001.0003.002.00
persistBatchApache OpenJPA 4.1.1 (runtime enhanced)0200.0000200.04.004.00200.0416.0001.001.0003.002.00
persistBatchApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)0200.0000200.04.004.00200.0416.0001.001.0003.002.00
persistBatchHibernate ORM 6.6.59.Final (not enhanced)0200.0000200.04.004.00200.0376.0001.001.00002.00
persistBatchHibernate ORM 7.4.15.Final (not enhanced)0200.0000200.04.004.00200.0376.0001.001.00002.00
persistBatchHibernate ORM 6.6.59.Final (enhanced)0200.0000200.04.004.00200.0376.0001.001.00002.00
persistBatchHibernate ORM 7.4.15.Final (enhanced)0200.0000200.04.004.00200.0376.0001.001.00002.00
persistBatchEclipseLink 4.0.10 (not woven)178.8200.0000378.8182.84.00200.012,843108.001.001.0002.00182.8
persistBatchEclipseLink 5.0.2 (not woven)178.8200.0000378.8182.84.00200.012,843108.001.001.0002.00182.8
persistBatchEclipseLink 4.0.10 (woven)0200.0000200.04.004.00200.0416.0001.001.0002.004.00
persistBatchEclipseLink 5.0.2 (woven)0200.0000200.04.004.00200.0416.0001.001.0002.004.00
removeBatchApache OpenJPA 4.1.1 (enhanced)229.200200.00429.2233.24.00200.021,395139.0052.001.00054.00231.2
removeBatchApache OpenJPA 4.2.0-SNAPSHOT (enhanced)229.200200.00429.2233.24.00200.021,395139.0052.001.00054.00231.2
removeBatchApache OpenJPA 4.1.1 (runtime enhanced)229.200200.00429.2233.24.00200.021,395139.0052.001.00054.00231.2
removeBatchApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)229.200200.00429.2233.24.00200.021,395139.0052.001.00054.00231.2
removeBatchHibernate ORM 6.6.59.Final (not enhanced)51.0000200.00251.0151.0100.0200.010,438138.001.001.0000151.0
removeBatchHibernate ORM 7.4.15.Final (not enhanced)51.0000200.00251.0151.0100.0200.010,438138.001.001.0000151.0
removeBatchHibernate ORM 6.6.59.Final (enhanced)51.0000200.00251.0151.0100.0200.010,438138.001.001.0000151.0
removeBatchHibernate ORM 7.4.15.Final (enhanced)51.0000200.00251.0151.0100.0200.010,438138.001.001.0000151.0
removeBatchEclipseLink 4.0.10 (not woven)229.200200.00429.2233.24.00200.017,600108.001.001.0002.00233.2
removeBatchEclipseLink 5.0.2 (not woven)229.200200.00429.2233.24.00200.017,600108.001.001.0002.00233.2
removeBatchEclipseLink 4.0.10 (woven)51.0000200.00251.055.004.00200.05,21199.0001.001.0002.0055.00
removeBatchEclipseLink 5.0.2 (woven)51.0000200.00251.055.004.00200.05,21199.0001.001.0002.0055.00
resultStreamApache OpenJPA 4.1.1 (enhanced)1.0000001.001.0000144.0144.001.00001.001.00
resultStreamApache OpenJPA 4.2.0-SNAPSHOT (enhanced)1.0000001.001.0000144.0144.001.00001.001.00
resultStreamApache OpenJPA 4.1.1 (runtime enhanced)1.0000001.001.0000144.0144.001.00001.001.00
resultStreamApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)1.0000001.001.0000144.0144.001.00001.001.00
resultStreamHibernate ORM 6.6.59.Final (not enhanced)1.0000001.001.0000156.0156.001.001.00001.00
resultStreamHibernate ORM 7.4.15.Final (not enhanced)1.0000001.001.0000156.0156.001.001.00001.00
resultStreamHibernate ORM 6.6.59.Final (enhanced)1.0000001.001.0000156.0156.001.001.00001.00
resultStreamHibernate ORM 7.4.15.Final (enhanced)1.0000001.001.0000156.0156.001.001.00001.00
resultStreamEclipseLink 4.0.10 (not woven)867.40000867.4867.40093,677109.001.001.0002.00867.4
resultStreamEclipseLink 5.0.2 (not woven)867.30000867.3867.30093,673109.001.001.0002.00867.3
resultStreamEclipseLink 4.0.10 (woven)1.0000001.001.0000109.0109.001.001.0002.001.00
resultStreamEclipseLink 5.0.2 (woven)1.0000001.001.0000109.0109.001.001.0002.001.00
updateDirtyCheckingApache OpenJPA 4.1.1 (enhanced)1.00050.000051.008.183.9446.76681.1144.002.001.0004.008.18
updateDirtyCheckingApache OpenJPA 4.2.0-SNAPSHOT (enhanced)1.00050.000051.008.183.9446.76681.1144.002.001.0004.008.18
updateDirtyCheckingApache OpenJPA 4.1.1 (runtime enhanced)1.00050.000051.008.183.9446.76681.1144.002.001.0004.008.18
updateDirtyCheckingApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)1.00050.000051.008.183.9446.76681.1144.002.001.0004.008.18
updateDirtyCheckingHibernate ORM 6.6.59.Final (not enhanced)1.00050.000051.002.001.0050.00252.0156.001.001.00002.00
updateDirtyCheckingHibernate ORM 7.4.15.Final (not enhanced)1.00050.000051.002.001.0050.00252.0156.001.001.00002.00
updateDirtyCheckingHibernate ORM 6.6.59.Final (enhanced)1.00050.000051.002.001.0050.00252.0156.001.001.00002.00
updateDirtyCheckingHibernate ORM 7.4.15.Final (enhanced)1.00050.000051.002.001.0050.00252.0156.001.001.00002.00
updateDirtyCheckingEclipseLink 4.0.10 (not woven)49.87050.000099.8757.053.9446.765,967109.001.001.0002.0057.05
updateDirtyCheckingEclipseLink 5.0.2 (not woven)49.87050.000099.8757.053.9446.765,967109.001.001.0002.0057.05
updateDirtyCheckingEclipseLink 4.0.10 (woven)1.00050.000051.008.183.9446.76689.1109.001.001.0002.008.18
updateDirtyCheckingEclipseLink 5.0.2 (woven)1.00050.000051.008.183.9446.76689.1109.001.001.0002.008.18

Per benchmark

aggregationGroupBy

Throughput (ops/ms, higher is better)

Average time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced) 0.117 ± 0.0002860.74 Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 0.119 ± 0.0009830.73 Apache OpenJPA 4.1.1 (runtime enhanced) 0.118 ± 0.0003320.74 Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 0.119 ± 0.0007540.73 Hibernate ORM 6.6.59.Final (not enhanced) 0.0893 ± 0.001240.97 Hibernate ORM 7.4.15.Final (not enhanced) 0.0881 ± 0.000611≈ 0.99 Hibernate ORM 6.6.59.Final (enhanced) 0.0873 ± 0.00226≈ 1.00 Hibernate ORM 7.4.15.Final (enhanced) 0.0871 ± 0.000709fastest EclipseLink 4.0.10 (not woven) 0.0898 ± 0.0008060.97 EclipseLink 5.0.2 (not woven) 0.0888 ± 0.0008970.98 EclipseLink 4.0.10 (woven) 0.089 ± 0.00127≈ 0.98 EclipseLink 5.0.2 (woven) 0.0888 ± 0.0005310.98
Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT t1.CITY, COUNT(t0.ID), SUM(t0.TOTAL) FROM ORDERS t0 INNER JOIN CUSTOMER t1 ON t0.CUSTOMER_ID = t1.ID WHERE (t0.ORDER_DATE >= ? AND t0.ORDER_DATE <= ?) GROUP BY t1.CITY ORDER BY t1.CITY ASC;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT t1.CITY, COUNT(t0.ID), SUM(t0.TOTAL) FROM ORDERS t0 INNER JOIN CUSTOMER t1 ON t0.CUSTOMER_ID = t1.ID WHERE (t0.ORDER_DATE >= ? AND t0.ORDER_DATE <= ?) GROUP BY t1.CITY ORDER BY t1.CITY ASC;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT t1.CITY, COUNT(t0.ID), SUM(t0.TOTAL) FROM ORDERS t0 INNER JOIN CUSTOMER t1 ON t0.CUSTOMER_ID = t1.ID WHERE (t0.ORDER_DATE >= ? AND t0.ORDER_DATE <= ?) GROUP BY t1.CITY ORDER BY t1.CITY ASC;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT t1.CITY, COUNT(t0.ID), SUM(t0.TOTAL) FROM ORDERS t0 INNER JOIN CUSTOMER t1 ON t0.CUSTOMER_ID = t1.ID WHERE (t0.ORDER_DATE >= ? AND t0.ORDER_DATE <= ?) GROUP BY t1.CITY ORDER BY t1.CITY ASC;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select c1_0.CITY,count(po1_0.ID),sum(po1_0.TOTAL) from ORDERS po1_0 join CUSTOMER c1_0 on c1_0.ID=po1_0.CUSTOMER_ID where po1_0.ORDER_DATE between ? and ? group by c1_0.CITY order by c1_0.CITY;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select c1_0.CITY,count(po1_0.ID),sum(po1_0.TOTAL) from ORDERS po1_0 join CUSTOMER c1_0 on c1_0.ID=po1_0.CUSTOMER_ID where po1_0.ORDER_DATE between ? and ? group by c1_0.CITY order by c1_0.CITY;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select c1_0.CITY,count(po1_0.ID),sum(po1_0.TOTAL) from ORDERS po1_0 join CUSTOMER c1_0 on c1_0.ID=po1_0.CUSTOMER_ID where po1_0.ORDER_DATE between ? and ? group by c1_0.CITY order by c1_0.CITY;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select c1_0.CITY,count(po1_0.ID),sum(po1_0.TOTAL) from ORDERS po1_0 join CUSTOMER c1_0 on c1_0.ID=po1_0.CUSTOMER_ID where po1_0.ORDER_DATE between ? and ? group by c1_0.CITY order by c1_0.CITY;
SELECT t0.CITY, COUNT(t1.ID), SUM(t1.TOTAL) FROM CUSTOMER t0, ORDERS t1 WHERE ((t1.ORDER_DATE BETWEEN ? AND ?) AND (t0.ID = t1.CUSTOMER_ID)) GROUP BY t0.CITY ORDER BY t0.CITY;
SELECT t0.CITY, COUNT(t1.ID), SUM(t1.TOTAL) FROM CUSTOMER t0, ORDERS t1 WHERE ((t1.ORDER_DATE BETWEEN ? AND ?) AND (t0.ID = t1.CUSTOMER_ID)) GROUP BY t0.CITY ORDER BY t0.CITY;
SELECT t0.CITY, COUNT(t1.ID), SUM(t1.TOTAL) FROM CUSTOMER t0, ORDERS t1 WHERE ((t1.ORDER_DATE BETWEEN ? AND ?) AND (t0.ID = t1.CUSTOMER_ID)) GROUP BY t0.CITY ORDER BY t0.CITY;
SELECT t0.CITY, COUNT(t1.ID), SUM(t1.TOTAL) FROM CUSTOMER t0, ORDERS t1 WHERE ((t1.ORDER_DATE BETWEEN ? AND ?) AND (t0.ID = t1.CUSTOMER_ID)) GROUP BY t0.CITY ORDER BY t0.CITY;
bulkDelete

Single shot time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
DELETE FROM ORDER_LINE t0 WHERE (t0.ORDER_ID >= ? AND t0.ORDER_ID <= ?);

DELETE FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?);
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
DELETE FROM ORDER_LINE t0 WHERE (t0.ORDER_ID >= ? AND t0.ORDER_ID <= ?);

DELETE FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?);
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
DELETE FROM ORDER_LINE t0 WHERE (t0.ORDER_ID >= ? AND t0.ORDER_ID <= ?);

DELETE FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?);
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
DELETE FROM ORDER_LINE t0 WHERE (t0.ORDER_ID >= ? AND t0.ORDER_ID <= ?);

DELETE FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?);
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
delete from ORDER_LINE ol1_0 where ol1_0.ORDER_ID between ? and ?;

delete from ORDERS po1_0 where po1_0.ID between ? and ?;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
delete from ORDER_LINE ol1_0 where ol1_0.ORDER_ID between ? and ?;

delete from ORDERS po1_0 where po1_0.ID between ? and ?;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
delete from ORDER_LINE ol1_0 where ol1_0.ORDER_ID between ? and ?;

delete from ORDERS po1_0 where po1_0.ID between ? and ?;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
delete from ORDER_LINE ol1_0 where ol1_0.ORDER_ID between ? and ?;

delete from ORDERS po1_0 where po1_0.ID between ? and ?;
DELETE FROM ORDER_LINE WHERE EXISTS(SELECT t1.ID FROM ORDERS t0, ORDER_LINE t1 WHERE ((t0.ID BETWEEN ? AND ?) AND (t0.ID = t1.ORDER_ID)) AND t1.ID = ORDER_LINE.ID);

DELETE FROM ORDERS WHERE (ID BETWEEN ? AND ?);
DELETE FROM ORDER_LINE WHERE EXISTS(SELECT t1.ID FROM ORDERS t0, ORDER_LINE t1 WHERE ((t0.ID BETWEEN ? AND ?) AND (t0.ID = t1.ORDER_ID)) AND t1.ID = ORDER_LINE.ID);

DELETE FROM ORDERS WHERE (ID BETWEEN ? AND ?);
DELETE FROM ORDER_LINE WHERE EXISTS(SELECT t1.ID FROM ORDERS t0, ORDER_LINE t1 WHERE ((t0.ID BETWEEN ? AND ?) AND (t0.ID = t1.ORDER_ID)) AND t1.ID = ORDER_LINE.ID);

DELETE FROM ORDERS WHERE (ID BETWEEN ? AND ?);
DELETE FROM ORDER_LINE WHERE EXISTS(SELECT t1.ID FROM ORDERS t0, ORDER_LINE t1 WHERE ((t0.ID BETWEEN ? AND ?) AND (t0.ID = t1.ORDER_ID)) AND t1.ID = ORDER_LINE.ID);

DELETE FROM ORDERS WHERE (ID BETWEEN ? AND ?);
bulkUpdate

Single shot time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced) 0.355 ± 0.0435≈ 0.87 Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 0.347 ± 0.0525≈ 0.89 Apache OpenJPA 4.1.1 (runtime enhanced) 0.362 ± 0.0481≈ 0.85 Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 0.364 ± 0.0539≈ 0.85 Hibernate ORM 6.6.59.Final (not enhanced) 0.309 ± 0.0169fastest Hibernate ORM 7.4.15.Final (not enhanced) 0.31 ± 0.0172≈ 1.00 Hibernate ORM 6.6.59.Final (enhanced) 0.323 ± 0.0458≈ 0.96 Hibernate ORM 7.4.15.Final (enhanced) 0.319 ± 0.0345≈ 0.97 EclipseLink 4.0.10 (not woven) 0.337 ± 0.0588≈ 0.92 EclipseLink 5.0.2 (not woven) 0.311 ± 0.0112≈ 0.99 EclipseLink 4.0.10 (woven) 0.328 ± 0.0568≈ 0.94 EclipseLink 5.0.2 (woven) 0.319 ± 0.0214≈ 0.97
Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
UPDATE ORDERS t0 SET t0.STATUS = ?, VERSION = VERSION + 1 WHERE (t0.ID >= ? AND t0.ID <= ?);
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
UPDATE ORDERS t0 SET t0.STATUS = ?, VERSION = VERSION + 1 WHERE (t0.ID >= ? AND t0.ID <= ?);
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
UPDATE ORDERS t0 SET t0.STATUS = ?, VERSION = VERSION + 1 WHERE (t0.ID >= ? AND t0.ID <= ?);
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
UPDATE ORDERS t0 SET t0.STATUS = ?, VERSION = VERSION + 1 WHERE (t0.ID >= ? AND t0.ID <= ?);
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
update ORDERS po1_0 set STATUS=? where po1_0.ID between ? and ?;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
update ORDERS po1_0 set STATUS=? where po1_0.ID between ? and ?;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
update ORDERS po1_0 set STATUS=? where po1_0.ID between ? and ?;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
update ORDERS po1_0 set STATUS=? where po1_0.ID between ? and ?;
UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'PAID' WHERE (ID BETWEEN 1 AND 500);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'SHIPPED' WHERE (ID BETWEEN 501 AND 1000);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'DELIVERED' WHERE (ID BETWEEN 1001 AND 1500);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'CANCELLED' WHERE (ID BETWEEN 1501 AND 2000);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'NEW' WHERE (ID BETWEEN 2001 AND 2500);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'PAID' WHERE (ID BETWEEN 2501 AND 3000);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'SHIPPED' WHERE (ID BETWEEN 3001 AND 3500);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'DELIVERED' WHERE (ID BETWEEN 3501 AND 4000);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'CANCELLED' WHERE (ID BETWEEN 4001 AND 4500);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'NEW' WHERE (ID BETWEEN 4501 AND 5000);
UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'PAID' WHERE (ID BETWEEN 1 AND 500);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'SHIPPED' WHERE (ID BETWEEN 501 AND 1000);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'DELIVERED' WHERE (ID BETWEEN 1001 AND 1500);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'CANCELLED' WHERE (ID BETWEEN 1501 AND 2000);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'NEW' WHERE (ID BETWEEN 2001 AND 2500);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'PAID' WHERE (ID BETWEEN 2501 AND 3000);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'SHIPPED' WHERE (ID BETWEEN 3001 AND 3500);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'DELIVERED' WHERE (ID BETWEEN 3501 AND 4000);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'CANCELLED' WHERE (ID BETWEEN 4001 AND 4500);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'NEW' WHERE (ID BETWEEN 4501 AND 5000);
UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'PAID' WHERE (ID BETWEEN 1 AND 500);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'SHIPPED' WHERE (ID BETWEEN 501 AND 1000);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'DELIVERED' WHERE (ID BETWEEN 1001 AND 1500);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'CANCELLED' WHERE (ID BETWEEN 1501 AND 2000);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'NEW' WHERE (ID BETWEEN 2001 AND 2500);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'PAID' WHERE (ID BETWEEN 2501 AND 3000);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'SHIPPED' WHERE (ID BETWEEN 3001 AND 3500);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'DELIVERED' WHERE (ID BETWEEN 3501 AND 4000);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'CANCELLED' WHERE (ID BETWEEN 4001 AND 4500);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'NEW' WHERE (ID BETWEEN 4501 AND 5000);
UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'PAID' WHERE (ID BETWEEN 1 AND 500);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'SHIPPED' WHERE (ID BETWEEN 501 AND 1000);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'DELIVERED' WHERE (ID BETWEEN 1001 AND 1500);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'CANCELLED' WHERE (ID BETWEEN 1501 AND 2000);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'NEW' WHERE (ID BETWEEN 2001 AND 2500);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'PAID' WHERE (ID BETWEEN 2501 AND 3000);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'SHIPPED' WHERE (ID BETWEEN 3001 AND 3500);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'DELIVERED' WHERE (ID BETWEEN 3501 AND 4000);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'CANCELLED' WHERE (ID BETWEEN 4001 AND 4500);

UPDATE ORDERS SET VERSION = (VERSION + 1), STATUS = 'NEW' WHERE (ID BETWEEN 4501 AND 5000);
criteriaQuery

Throughput (ops/ms, higher is better)

Average time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced) 0.0303 ± 7.07e-050.53 Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 0.0319 ± 0.0002530.50 Apache OpenJPA 4.1.1 (runtime enhanced) 0.0306 ± 8.14e-050.52 Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 0.0316 ± 0.0002940.50 Hibernate ORM 6.6.59.Final (not enhanced) 0.0295 ± 0.0001380.54 Hibernate ORM 7.4.15.Final (not enhanced) 0.0295 ± 0.000130.54 Hibernate ORM 6.6.59.Final (enhanced) 0.0297 ± 0.0002280.54 Hibernate ORM 7.4.15.Final (enhanced) 0.0288 ± 0.000170.55 EclipseLink 4.0.10 (not woven) 0.0245 ± 9.77e-050.65 EclipseLink 5.0.2 (not woven) 0.0245 ± 4.17e-050.65 EclipseLink 4.0.10 (woven) 0.0163 ± 6.57e-050.98 EclipseLink 5.0.2 (woven) 0.016 ± 0.000221fastest
Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE (t0.CITY = ? AND t0.CREATED_AT >= ?) ORDER BY t0.LAST_NAME ASC, t0.ID ASC LIMIT ?;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE (t0.CITY = ? AND t0.CREATED_AT >= ?) ORDER BY t0.LAST_NAME ASC, t0.ID ASC LIMIT ?;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE (t0.CITY = ? AND t0.CREATED_AT >= ?) ORDER BY t0.LAST_NAME ASC, t0.ID ASC LIMIT ?;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE (t0.CITY = ? AND t0.CREATED_AT >= ?) ORDER BY t0.LAST_NAME ASC, t0.ID ASC LIMIT ?;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.CITY=? and c1_0.CREATED_AT>=? order by c1_0.LAST_NAME,c1_0.ID fetch first ? rows only;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.CITY=? and c1_0.CREATED_AT>=? order by c1_0.LAST_NAME,c1_0.ID fetch first ? rows only;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.CITY=? and c1_0.CREATED_AT>=? order by c1_0.LAST_NAME,c1_0.ID fetch first ? rows only;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.CITY=? and c1_0.CREATED_AT>=? order by c1_0.LAST_NAME,c1_0.ID fetch first ? rows only;
SELECT ID AS a1, CREATED_AT AS a2, EMAIL AS a3, FIRST_NAME AS a4, LAST_NAME AS a5, CITY AS a6, COUNTRY AS a7, STREET AS a8, ZIP AS a9 FROM CUSTOMER WHERE ((CITY = ?) AND (CREATED_AT >= ?)) ORDER BY LAST_NAME ASC, ID ASC LIMIT ? OFFSET ?;
SELECT ID AS a1, CREATED_AT AS a2, EMAIL AS a3, FIRST_NAME AS a4, LAST_NAME AS a5, CITY AS a6, COUNTRY AS a7, STREET AS a8, ZIP AS a9 FROM CUSTOMER WHERE ((CITY = ?) AND (CREATED_AT >= ?)) ORDER BY LAST_NAME ASC, ID ASC LIMIT ? OFFSET ?;
SELECT ID AS a1, CREATED_AT AS a2, EMAIL AS a3, FIRST_NAME AS a4, LAST_NAME AS a5, CITY AS a6, COUNTRY AS a7, STREET AS a8, ZIP AS a9 FROM CUSTOMER WHERE ((CITY = ?) AND (CREATED_AT >= ?)) ORDER BY LAST_NAME ASC, ID ASC LIMIT ? OFFSET ?;
SELECT ID AS a1, CREATED_AT AS a2, EMAIL AS a3, FIRST_NAME AS a4, LAST_NAME AS a5, CITY AS a6, COUNTRY AS a7, STREET AS a8, ZIP AS a9 FROM CUSTOMER WHERE ((CITY = ?) AND (CREATED_AT >= ?)) ORDER BY LAST_NAME ASC, ID ASC LIMIT ? OFFSET ?;
dtoProjection

Throughput (ops/ms, higher is better)

Average time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced) 0.0535 ± 0.001030.48 Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 0.0559 ± 0.0005740.46 Apache OpenJPA 4.1.1 (runtime enhanced) 0.053 ± 0.000130.49 Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 0.0552 ± 0.0004730.47 Hibernate ORM 6.6.59.Final (not enhanced) 0.0264 ± 0.0001320.98 Hibernate ORM 7.4.15.Final (not enhanced) 0.0258 ± 0.000235fastest Hibernate ORM 6.6.59.Final (enhanced) 0.0263 ± 0.0001710.98 Hibernate ORM 7.4.15.Final (enhanced) 0.0263 ± 0.00061≈ 0.98 EclipseLink 4.0.10 (not woven) 0.0306 ± 3.24e-050.84 EclipseLink 5.0.2 (not woven) 0.0312 ± 0.0003950.83 EclipseLink 4.0.10 (woven) 0.0306 ± 0.0003520.84 EclipseLink 5.0.2 (woven) 0.0308 ± 0.0005940.84
Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t1.LAST_NAME, t0.ORDER_DATE, t0.TOTAL FROM ORDERS t0 INNER JOIN CUSTOMER t1 ON t0.CUSTOMER_ID = t1.ID WHERE (t0.ORDER_DATE >= ? AND t0.ORDER_DATE <= ?) ORDER BY t0.ID ASC LIMIT ?;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t1.LAST_NAME, t0.ORDER_DATE, t0.TOTAL FROM ORDERS t0 INNER JOIN CUSTOMER t1 ON t0.CUSTOMER_ID = t1.ID WHERE (t0.ORDER_DATE >= ? AND t0.ORDER_DATE <= ?) ORDER BY t0.ID ASC LIMIT ?;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t1.LAST_NAME, t0.ORDER_DATE, t0.TOTAL FROM ORDERS t0 INNER JOIN CUSTOMER t1 ON t0.CUSTOMER_ID = t1.ID WHERE (t0.ORDER_DATE >= ? AND t0.ORDER_DATE <= ?) ORDER BY t0.ID ASC LIMIT ?;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t1.LAST_NAME, t0.ORDER_DATE, t0.TOTAL FROM ORDERS t0 INNER JOIN CUSTOMER t1 ON t0.CUSTOMER_ID = t1.ID WHERE (t0.ORDER_DATE >= ? AND t0.ORDER_DATE <= ?) ORDER BY t0.ID ASC LIMIT ?;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select po1_0.ID,c1_0.LAST_NAME,po1_0.ORDER_DATE,po1_0.TOTAL from ORDERS po1_0 join CUSTOMER c1_0 on c1_0.ID=po1_0.CUSTOMER_ID where po1_0.ORDER_DATE between ? and ? order by po1_0.ID fetch first ? rows only;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select po1_0.ID,c1_0.LAST_NAME,po1_0.ORDER_DATE,po1_0.TOTAL from ORDERS po1_0 join CUSTOMER c1_0 on c1_0.ID=po1_0.CUSTOMER_ID where po1_0.ORDER_DATE between ? and ? order by po1_0.ID fetch first ? rows only;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select po1_0.ID,c1_0.LAST_NAME,po1_0.ORDER_DATE,po1_0.TOTAL from ORDERS po1_0 join CUSTOMER c1_0 on c1_0.ID=po1_0.CUSTOMER_ID where po1_0.ORDER_DATE between ? and ? order by po1_0.ID fetch first ? rows only;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select po1_0.ID,c1_0.LAST_NAME,po1_0.ORDER_DATE,po1_0.TOTAL from ORDERS po1_0 join CUSTOMER c1_0 on c1_0.ID=po1_0.CUSTOMER_ID where po1_0.ORDER_DATE between ? and ? order by po1_0.ID fetch first ? rows only;
SELECT t0.ID AS a1, t1.LAST_NAME AS a2, t0.ORDER_DATE AS a3, t0.TOTAL AS a4 FROM ORDERS t0, CUSTOMER t1 WHERE ((t0.ORDER_DATE BETWEEN ? AND ?) AND (t1.ID = t0.CUSTOMER_ID)) ORDER BY t0.ID LIMIT ? OFFSET ?;
SELECT t0.ID AS a1, t1.LAST_NAME AS a2, t0.ORDER_DATE AS a3, t0.TOTAL AS a4 FROM ORDERS t0, CUSTOMER t1 WHERE ((t0.ORDER_DATE BETWEEN ? AND ?) AND (t1.ID = t0.CUSTOMER_ID)) ORDER BY t0.ID LIMIT ? OFFSET ?;
SELECT t0.ID AS a1, t1.LAST_NAME AS a2, t0.ORDER_DATE AS a3, t0.TOTAL AS a4 FROM ORDERS t0, CUSTOMER t1 WHERE ((t0.ORDER_DATE BETWEEN ? AND ?) AND (t1.ID = t0.CUSTOMER_ID)) ORDER BY t0.ID LIMIT ? OFFSET ?;
SELECT t0.ID AS a1, t1.LAST_NAME AS a2, t0.ORDER_DATE AS a3, t0.TOTAL AS a4 FROM ORDERS t0, CUSTOMER t1 WHERE ((t0.ORDER_DATE BETWEEN ? AND ?) AND (t1.ID = t0.CUSTOMER_ID)) ORDER BY t0.ID LIMIT ? OFFSET ?;
findById

Throughput (ops/ms, higher is better)

Average time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced) 0.00654 ± 0.0001620.33 Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 0.00658 ± 4.81e-050.33 Apache OpenJPA 4.1.1 (runtime enhanced) 0.00661 ± 5.48e-050.33 Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 0.00671 ± 0.000120.32 Hibernate ORM 6.6.59.Final (not enhanced) 0.00299 ± 1.83e-050.72 Hibernate ORM 7.4.15.Final (not enhanced) 0.00303 ± 7.66e-050.71 Hibernate ORM 6.6.59.Final (enhanced) 0.0031 ± 6.81e-050.70 Hibernate ORM 7.4.15.Final (enhanced) 0.00304 ± 3.93e-050.71 EclipseLink 4.0.10 (not woven) 0.00286 ± 4.47e-050.76 EclipseLink 5.0.2 (not woven) 0.00303 ± 4.86e-050.72 EclipseLink 4.0.10 (woven) 0.00217 ± 2.12e-05fastest EclipseLink 5.0.2 (woven) 0.00236 ± 1.25e-050.92
Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE t0.ID = ?;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE t0.ID = ?;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE t0.ID = ?;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE t0.ID = ?;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.ID=?;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.ID=?;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.ID=?;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.ID=?;
SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);
SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);
SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);
SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);
inheritanceJoinedQuery

Throughput (ops/ms, higher is better)

Average time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced) 0.0475 ± 8.6e-050.75 Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 0.0474 ± 0.0006560.75 Apache OpenJPA 4.1.1 (runtime enhanced) 0.047 ± 0.000150.75 Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 0.0473 ± 0.0003590.75 Hibernate ORM 6.6.59.Final (not enhanced) 0.0379 ± 0.0001810.93 Hibernate ORM 7.4.15.Final (not enhanced) 0.0359 ± 0.00044≈ 0.98 Hibernate ORM 6.6.59.Final (enhanced) 0.0403 ± 0.0001840.88 Hibernate ORM 7.4.15.Final (enhanced) 0.0354 ± 0.000517fastest EclipseLink 4.0.10 (not woven) 0.0493 ± 0.0003370.72 EclipseLink 5.0.2 (not woven) 0.0482 ± 0.0002630.73 EclipseLink 4.0.10 (woven) 0.0367 ± 0.0001970.96 EclipseLink 5.0.2 (woven) 0.0366 ± 0.00119≈ 0.97
Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.PTYPE, t0.EMAIL, t0.NAME, t1.AGENCY, t1.HOURLY_RATE, t2.DEPARTMENT, t2.SALARY FROM JN_PERSON t0 LEFT OUTER JOIN JN_CONTRACTOR t1 ON t0.ID = t1.ID LEFT OUTER JOIN JN_EMPLOYEE t2 ON t0.ID = t2.ID WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.PTYPE, t0.EMAIL, t0.NAME, t1.AGENCY, t1.HOURLY_RATE, t2.DEPARTMENT, t2.SALARY FROM JN_PERSON t0 LEFT OUTER JOIN JN_CONTRACTOR t1 ON t0.ID = t1.ID LEFT OUTER JOIN JN_EMPLOYEE t2 ON t0.ID = t2.ID WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.PTYPE, t0.EMAIL, t0.NAME, t1.AGENCY, t1.HOURLY_RATE, t2.DEPARTMENT, t2.SALARY FROM JN_PERSON t0 LEFT OUTER JOIN JN_CONTRACTOR t1 ON t0.ID = t1.ID LEFT OUTER JOIN JN_EMPLOYEE t2 ON t0.ID = t2.ID WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.PTYPE, t0.EMAIL, t0.NAME, t1.AGENCY, t1.HOURLY_RATE, t2.DEPARTMENT, t2.SALARY FROM JN_PERSON t0 LEFT OUTER JOIN JN_CONTRACTOR t1 ON t0.ID = t1.ID LEFT OUTER JOIN JN_EMPLOYEE t2 ON t0.ID = t2.ID WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select jp1_0.ID,jp1_0.PTYPE,jp1_0.EMAIL,jp1_0.NAME,jp1_1.AGENCY,jp1_1.HOURLY_RATE,jp1_2.DEPARTMENT,jp1_2.SALARY from JN_PERSON jp1_0 left join JN_CONTRACTOR jp1_1 on jp1_0.ID=jp1_1.ID left join JN_EMPLOYEE jp1_2 on jp1_0.ID=jp1_2.ID where jp1_0.ID between ? and ? order by jp1_0.ID;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select jp1_0.ID,jp1_0.PTYPE,jp1_0.EMAIL,jp1_0.NAME,jp1_1.AGENCY,jp1_1.HOURLY_RATE,jp1_2.DEPARTMENT,jp1_2.SALARY from JN_PERSON jp1_0 left join JN_CONTRACTOR jp1_1 on jp1_0.ID=jp1_1.ID left join JN_EMPLOYEE jp1_2 on jp1_0.ID=jp1_2.ID where jp1_0.ID between ? and ? order by jp1_0.ID;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select jp1_0.ID,jp1_0.PTYPE,jp1_0.EMAIL,jp1_0.NAME,jp1_1.AGENCY,jp1_1.HOURLY_RATE,jp1_2.DEPARTMENT,jp1_2.SALARY from JN_PERSON jp1_0 left join JN_CONTRACTOR jp1_1 on jp1_0.ID=jp1_1.ID left join JN_EMPLOYEE jp1_2 on jp1_0.ID=jp1_2.ID where jp1_0.ID between ? and ? order by jp1_0.ID;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select jp1_0.ID,jp1_0.PTYPE,jp1_0.EMAIL,jp1_0.NAME,jp1_1.AGENCY,jp1_1.HOURLY_RATE,jp1_2.DEPARTMENT,jp1_2.SALARY from JN_PERSON jp1_0 left join JN_CONTRACTOR jp1_1 on jp1_0.ID=jp1_1.ID left join JN_EMPLOYEE jp1_2 on jp1_0.ID=jp1_2.ID where jp1_0.ID between ? and ? order by jp1_0.ID;
SELECT t0.ID, t0.PTYPE, t0.EMAIL, t0.NAME, t1.ID, t1.AGENCY, t1.HOURLY_RATE, t2.ID, t2.DEPARTMENT, t2.SALARY FROM {oj JN_PERSON t0 LEFT OUTER JOIN JN_CONTRACTOR t1 ON (t1.ID = t0.ID) LEFT OUTER JOIN JN_EMPLOYEE t2 ON (t2.ID = t0.ID)} WHERE (t0.ID BETWEEN ? AND ?) ORDER BY t0.ID;
SELECT t0.ID, t0.PTYPE, t0.EMAIL, t0.NAME, t1.ID, t1.DEPARTMENT, t1.SALARY, t2.ID, t2.AGENCY, t2.HOURLY_RATE FROM {oj JN_PERSON t0 LEFT OUTER JOIN JN_EMPLOYEE t1 ON (t1.ID = t0.ID) LEFT OUTER JOIN JN_CONTRACTOR t2 ON (t2.ID = t0.ID)} WHERE (t0.ID BETWEEN ? AND ?) ORDER BY t0.ID;
SELECT t0.ID, t0.PTYPE, t0.EMAIL, t0.NAME, t1.ID, t1.DEPARTMENT, t1.SALARY, t2.ID, t2.AGENCY, t2.HOURLY_RATE FROM {oj JN_PERSON t0 LEFT OUTER JOIN JN_EMPLOYEE t1 ON (t1.ID = t0.ID) LEFT OUTER JOIN JN_CONTRACTOR t2 ON (t2.ID = t0.ID)} WHERE (t0.ID BETWEEN ? AND ?) ORDER BY t0.ID;
SELECT t0.ID, t0.PTYPE, t0.EMAIL, t0.NAME, t1.ID, t1.AGENCY, t1.HOURLY_RATE, t2.ID, t2.DEPARTMENT, t2.SALARY FROM {oj JN_PERSON t0 LEFT OUTER JOIN JN_CONTRACTOR t1 ON (t1.ID = t0.ID) LEFT OUTER JOIN JN_EMPLOYEE t2 ON (t2.ID = t0.ID)} WHERE (t0.ID BETWEEN ? AND ?) ORDER BY t0.ID;
inheritanceSingleTableQuery

Throughput (ops/ms, higher is better)

Average time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced) 0.035 ± 0.0001580.69 Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 0.036 ± 0.0002250.68 Apache OpenJPA 4.1.1 (runtime enhanced) 0.0352 ± 0.001890.69 Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 0.0362 ± 0.000610.67 Hibernate ORM 6.6.59.Final (not enhanced) 0.0278 ± 5.95e-050.87 Hibernate ORM 7.4.15.Final (not enhanced) 0.0257 ± 0.0002280.94 Hibernate ORM 6.6.59.Final (enhanced) 0.0297 ± 0.0005740.82 Hibernate ORM 7.4.15.Final (enhanced) 0.025 ± 6.46e-05≈ 0.97 EclipseLink 4.0.10 (not woven) 0.0375 ± 0.0001350.65 EclipseLink 5.0.2 (not woven) 0.0364 ± 0.0001810.67 EclipseLink 4.0.10 (woven) 0.0243 ± 0.000984fastest EclipseLink 5.0.2 (woven) 0.0248 ± 0.000334≈ 0.98
Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.PTYPE, t0.EMAIL, t0.NAME, t0.AGENCY, t0.HOURLY_RATE, t0.DEPARTMENT, t0.SALARY FROM ST_PERSON t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.PTYPE, t0.EMAIL, t0.NAME, t0.AGENCY, t0.HOURLY_RATE, t0.DEPARTMENT, t0.SALARY FROM ST_PERSON t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.PTYPE, t0.EMAIL, t0.NAME, t0.AGENCY, t0.HOURLY_RATE, t0.DEPARTMENT, t0.SALARY FROM ST_PERSON t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.PTYPE, t0.EMAIL, t0.NAME, t0.AGENCY, t0.HOURLY_RATE, t0.DEPARTMENT, t0.SALARY FROM ST_PERSON t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select sp1_0.ID,sp1_0.PTYPE,sp1_0.EMAIL,sp1_0.NAME,sp1_0.AGENCY,sp1_0.HOURLY_RATE,sp1_0.DEPARTMENT,sp1_0.SALARY from ST_PERSON sp1_0 where sp1_0.ID between ? and ? order by sp1_0.ID;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select sp1_0.ID,sp1_0.PTYPE,sp1_0.EMAIL,sp1_0.NAME,sp1_0.AGENCY,sp1_0.HOURLY_RATE,sp1_0.DEPARTMENT,sp1_0.SALARY from ST_PERSON sp1_0 where sp1_0.ID between ? and ? order by sp1_0.ID;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select sp1_0.ID,sp1_0.PTYPE,sp1_0.EMAIL,sp1_0.NAME,sp1_0.AGENCY,sp1_0.HOURLY_RATE,sp1_0.DEPARTMENT,sp1_0.SALARY from ST_PERSON sp1_0 where sp1_0.ID between ? and ? order by sp1_0.ID;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select sp1_0.ID,sp1_0.PTYPE,sp1_0.EMAIL,sp1_0.NAME,sp1_0.AGENCY,sp1_0.HOURLY_RATE,sp1_0.DEPARTMENT,sp1_0.SALARY from ST_PERSON sp1_0 where sp1_0.ID between ? and ? order by sp1_0.ID;
SELECT ID, PTYPE, EMAIL, NAME, AGENCY, HOURLY_RATE, DEPARTMENT, SALARY FROM ST_PERSON WHERE (ID BETWEEN ? AND ?) ORDER BY ID;
SELECT ID, PTYPE, EMAIL, NAME, AGENCY, HOURLY_RATE, DEPARTMENT, SALARY FROM ST_PERSON WHERE (ID BETWEEN ? AND ?) ORDER BY ID;
SELECT ID, PTYPE, EMAIL, NAME, DEPARTMENT, SALARY, AGENCY, HOURLY_RATE FROM ST_PERSON WHERE (ID BETWEEN ? AND ?) ORDER BY ID;
SELECT ID, PTYPE, EMAIL, NAME, AGENCY, HOURLY_RATE, DEPARTMENT, SALARY FROM ST_PERSON WHERE (ID BETWEEN ? AND ?) ORDER BY ID;
joinFetch

Throughput (ops/ms, higher is better)

Average time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT DISTINCT t0.ID, t0.VERSION, t1.ID, t1.CITY, t1.COUNTRY, t1.STREET, t1.ZIP, t1.CREATED_AT, t1.EMAIL, t1.FIRST_NAME, t1.LAST_NAME, t0.ORDER_DATE, t0.STATUS, t0.TOTAL, t2.ORDER_ID, t2.ID, t2.LINE_NO, t2.PRODUCT_ID, t2.QUANTITY, t2.UNIT_PRICE FROM ORDERS t0 INNER JOIN CUSTOMER t1 ON t0.CUSTOMER_ID = t1.ID INNER JOIN ORDER_LINE t2 ON t0.ID = t2.ORDER_ID WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC, t2.ORDER_ID ASC;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT DISTINCT t0.ID, t0.VERSION, t1.ID, t1.CITY, t1.COUNTRY, t1.STREET, t1.ZIP, t1.CREATED_AT, t1.EMAIL, t1.FIRST_NAME, t1.LAST_NAME, t0.ORDER_DATE, t0.STATUS, t0.TOTAL, t2.ORDER_ID, t2.ID, t2.LINE_NO, t2.PRODUCT_ID, t2.QUANTITY, t2.UNIT_PRICE FROM ORDERS t0 INNER JOIN CUSTOMER t1 ON t0.CUSTOMER_ID = t1.ID INNER JOIN ORDER_LINE t2 ON t0.ID = t2.ORDER_ID WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC, t2.ORDER_ID ASC;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT DISTINCT t0.ID, t0.VERSION, t1.ID, t1.CITY, t1.COUNTRY, t1.STREET, t1.ZIP, t1.CREATED_AT, t1.EMAIL, t1.FIRST_NAME, t1.LAST_NAME, t0.ORDER_DATE, t0.STATUS, t0.TOTAL, t2.ORDER_ID, t2.ID, t2.LINE_NO, t2.PRODUCT_ID, t2.QUANTITY, t2.UNIT_PRICE FROM ORDERS t0 INNER JOIN CUSTOMER t1 ON t0.CUSTOMER_ID = t1.ID INNER JOIN ORDER_LINE t2 ON t0.ID = t2.ORDER_ID WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC, t2.ORDER_ID ASC;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT DISTINCT t0.ID, t0.VERSION, t1.ID, t1.CITY, t1.COUNTRY, t1.STREET, t1.ZIP, t1.CREATED_AT, t1.EMAIL, t1.FIRST_NAME, t1.LAST_NAME, t0.ORDER_DATE, t0.STATUS, t0.TOTAL, t2.ORDER_ID, t2.ID, t2.LINE_NO, t2.PRODUCT_ID, t2.QUANTITY, t2.UNIT_PRICE FROM ORDERS t0 INNER JOIN CUSTOMER t1 ON t0.CUSTOMER_ID = t1.ID INNER JOIN ORDER_LINE t2 ON t0.ID = t2.ORDER_ID WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC, t2.ORDER_ID ASC;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select distinct po1_0.ID,po1_0.CUSTOMER_ID,c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME,l1_0.ORDER_ID,l1_0.ID,l1_0.LINE_NO,l1_0.PRODUCT_ID,l1_0.QUANTITY,l1_0.UNIT_PRICE,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 join CUSTOMER c1_0 on c1_0.ID=po1_0.CUSTOMER_ID join ORDER_LINE l1_0 on po1_0.ID=l1_0.ORDER_ID where po1_0.ID between ? and ? order by po1_0.ID;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select distinct po1_0.ID,po1_0.CUSTOMER_ID,c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME,l1_0.ORDER_ID,l1_0.ID,l1_0.LINE_NO,l1_0.PRODUCT_ID,l1_0.QUANTITY,l1_0.UNIT_PRICE,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 join CUSTOMER c1_0 on c1_0.ID=po1_0.CUSTOMER_ID join ORDER_LINE l1_0 on po1_0.ID=l1_0.ORDER_ID where po1_0.ID between ? and ? order by po1_0.ID;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select distinct po1_0.ID,po1_0.CUSTOMER_ID,c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME,l1_0.ORDER_ID,l1_0.ID,l1_0.LINE_NO,l1_0.PRODUCT_ID,l1_0.QUANTITY,l1_0.UNIT_PRICE,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 join CUSTOMER c1_0 on c1_0.ID=po1_0.CUSTOMER_ID join ORDER_LINE l1_0 on po1_0.ID=l1_0.ORDER_ID where po1_0.ID between ? and ? order by po1_0.ID;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select distinct po1_0.ID,po1_0.CUSTOMER_ID,c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME,l1_0.ORDER_ID,l1_0.ID,l1_0.LINE_NO,l1_0.PRODUCT_ID,l1_0.QUANTITY,l1_0.UNIT_PRICE,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 join CUSTOMER c1_0 on c1_0.ID=po1_0.CUSTOMER_ID join ORDER_LINE l1_0 on po1_0.ID=l1_0.ORDER_ID where po1_0.ID between ? and ? order by po1_0.ID;
SELECT DISTINCT t1.ID, t1.ORDER_DATE, t1.STATUS, t1.TOTAL, t1.VERSION, t1.CUSTOMER_ID, t0.ID, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t2.ID, t2.LINE_NO, t2.QUANTITY, t2.UNIT_PRICE, t2.ORDER_ID, t2.PRODUCT_ID FROM CUSTOMER t0, ORDER_LINE t2, ORDERS t1 WHERE ((t1.ID BETWEEN ? AND ?) AND ((t0.ID = t1.CUSTOMER_ID) AND (t2.ORDER_ID = t1.ID))) ORDER BY t1.ID;

SELECT ID, NAME, PRICE, SKU FROM PRODUCT WHERE (ID = ?);
SELECT DISTINCT t1.ID, t1.ORDER_DATE, t1.STATUS, t1.TOTAL, t1.VERSION, t1.CUSTOMER_ID, t0.ID, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t2.ID, t2.LINE_NO, t2.QUANTITY, t2.UNIT_PRICE, t2.ORDER_ID, t2.PRODUCT_ID FROM CUSTOMER t0, ORDER_LINE t2, ORDERS t1 WHERE ((t1.ID BETWEEN ? AND ?) AND ((t0.ID = t1.CUSTOMER_ID) AND (t2.ORDER_ID = t1.ID))) ORDER BY t1.ID;

SELECT ID, NAME, PRICE, SKU FROM PRODUCT WHERE (ID = ?);
SELECT DISTINCT t1.ID, t1.ORDER_DATE, t1.STATUS, t1.TOTAL, t1.VERSION, t1.CUSTOMER_ID, t0.ID, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t2.ID, t2.LINE_NO, t2.QUANTITY, t2.UNIT_PRICE, t2.ORDER_ID, t2.PRODUCT_ID FROM CUSTOMER t0, ORDER_LINE t2, ORDERS t1 WHERE ((t1.ID BETWEEN ? AND ?) AND ((t0.ID = t1.CUSTOMER_ID) AND (t2.ORDER_ID = t1.ID))) ORDER BY t1.ID;
SELECT DISTINCT t1.ID, t1.ORDER_DATE, t1.STATUS, t1.TOTAL, t1.VERSION, t1.CUSTOMER_ID, t0.ID, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t2.ID, t2.LINE_NO, t2.QUANTITY, t2.UNIT_PRICE, t2.ORDER_ID, t2.PRODUCT_ID FROM CUSTOMER t0, ORDER_LINE t2, ORDERS t1 WHERE ((t1.ID BETWEEN ? AND ?) AND ((t0.ID = t1.CUSTOMER_ID) AND (t2.ORDER_ID = t1.ID))) ORDER BY t1.ID;
jpqlByIndexedAttribute

Throughput (ops/ms, higher is better)

Average time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced) 0.00843 ± 8.33e-050.32 Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 0.00862 ± 8.56e-050.31 Apache OpenJPA 4.1.1 (runtime enhanced) 0.00867 ± 0.0001540.31 Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 0.00868 ± 0.0001160.31 Hibernate ORM 6.6.59.Final (not enhanced) 0.00382 ± 0.0001730.70 Hibernate ORM 7.4.15.Final (not enhanced) 0.00381 ± 5.08e-050.70 Hibernate ORM 6.6.59.Final (enhanced) 0.00378 ± 0.0001560.70 Hibernate ORM 7.4.15.Final (enhanced) 0.00378 ± 2.36e-050.70 EclipseLink 4.0.10 (not woven) 0.00343 ± 4.93e-050.78 EclipseLink 5.0.2 (not woven) 0.00336 ± 8.11e-050.79 EclipseLink 4.0.10 (woven) 0.00266 ± 2.44e-05fastest EclipseLink 5.0.2 (woven) 0.00268 ± 8.14e-06≈ 0.99
Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE (t0.EMAIL = ?);
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE (t0.EMAIL = ?);
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE (t0.EMAIL = ?);
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE (t0.EMAIL = ?);
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.EMAIL=?;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.EMAIL=?;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.EMAIL=?;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.EMAIL=?;
SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (EMAIL = ?);
SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (EMAIL = ?);
SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (EMAIL = ?);
SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (EMAIL = ?);
lazyNavigationNPlusOne

Throughput (ops/ms, higher is better)

Average time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;

SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE t0.ID = ?;

SELECT t0.ID, t0.LINE_NO, t0.ORDER_ID, t0.PRODUCT_ID, t0.QUANTITY, t0.UNIT_PRICE FROM ORDER_LINE t0 WHERE t0.ORDER_ID = ?;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;

SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE t0.ID = ?;

SELECT t0.ID, t0.LINE_NO, t0.ORDER_ID, t0.PRODUCT_ID, t0.QUANTITY, t0.UNIT_PRICE FROM ORDER_LINE t0 WHERE t0.ORDER_ID = ?;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;

SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE t0.ID = ?;

SELECT t0.ID, t0.LINE_NO, t0.ORDER_ID, t0.PRODUCT_ID, t0.QUANTITY, t0.UNIT_PRICE FROM ORDER_LINE t0 WHERE t0.ORDER_ID = ?;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;

SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE t0.ID = ?;

SELECT t0.ID, t0.LINE_NO, t0.ORDER_ID, t0.PRODUCT_ID, t0.QUANTITY, t0.UNIT_PRICE FROM ORDER_LINE t0 WHERE t0.ORDER_ID = ?;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ? order by po1_0.ID;

select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.ID=?;

select l1_0.ORDER_ID,l1_0.ID,l1_0.LINE_NO,l1_0.PRODUCT_ID,l1_0.QUANTITY,l1_0.UNIT_PRICE from ORDER_LINE l1_0 where l1_0.ORDER_ID=?;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ? order by po1_0.ID;

select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.ID=?;

select l1_0.ORDER_ID,l1_0.ID,l1_0.LINE_NO,l1_0.PRODUCT_ID,l1_0.QUANTITY,l1_0.UNIT_PRICE from ORDER_LINE l1_0 where l1_0.ORDER_ID=?;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ? order by po1_0.ID;

select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.ID=?;

select l1_0.ORDER_ID,l1_0.ID,l1_0.LINE_NO,l1_0.PRODUCT_ID,l1_0.QUANTITY,l1_0.UNIT_PRICE from ORDER_LINE l1_0 where l1_0.ORDER_ID=?;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ? order by po1_0.ID;

select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.ID=?;

select l1_0.ORDER_ID,l1_0.ID,l1_0.LINE_NO,l1_0.PRODUCT_ID,l1_0.QUANTITY,l1_0.UNIT_PRICE from ORDER_LINE l1_0 where l1_0.ORDER_ID=?;
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);

SELECT ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID FROM ORDER_LINE WHERE (ORDER_ID = ?);

SELECT ID, NAME, PRICE, SKU FROM PRODUCT WHERE (ID = ?);
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);

SELECT ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID FROM ORDER_LINE WHERE (ORDER_ID = ?);

SELECT ID, NAME, PRICE, SKU FROM PRODUCT WHERE (ID = ?);
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);

SELECT ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID FROM ORDER_LINE WHERE (ORDER_ID = ?);
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);

SELECT ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID FROM ORDER_LINE WHERE (ORDER_ID = ?);
manyToManyAndElementCollection

Throughput (ops/ms, higher is better)

Average time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced) 0.142 ± 0.002170.24 Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 0.145 ± 0.0004770.23 Apache OpenJPA 4.1.1 (runtime enhanced) 0.144 ± 0.002080.23 Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 0.146 ± 0.0008280.23 Hibernate ORM 6.6.59.Final (not enhanced) 0.0527 ± 0.001140.64 Hibernate ORM 7.4.15.Final (not enhanced) 0.0472 ± 0.0005040.72 Hibernate ORM 6.6.59.Final (enhanced) 0.0583 ± 0.0007280.58 Hibernate ORM 7.4.15.Final (enhanced) 0.0496 ± 0.0001270.68 EclipseLink 4.0.10 (not woven) 0.044 ± 0.0001350.77 EclipseLink 5.0.2 (not woven) 0.0434 ± 0.0004420.78 EclipseLink 4.0.10 (woven) 0.0341 ± 0.000179≈ 0.99 EclipseLink 5.0.2 (woven) 0.0338 ± 0.000269fastest
Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.NAME, t0.PRICE, t0.SKU FROM PRODUCT t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;

SELECT t1.ID, t1.NAME FROM PRODUCT_CATEGORY t0 INNER JOIN CATEGORY t1 ON t0.CATEGORY_ID = t1.ID WHERE t0.PRODUCT_ID = ?;

SELECT t0.TAG FROM PRODUCT_TAG t0 WHERE t0.PRODUCT_ID = ?;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.NAME, t0.PRICE, t0.SKU FROM PRODUCT t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;

SELECT t1.ID, t1.NAME FROM PRODUCT_CATEGORY t0 INNER JOIN CATEGORY t1 ON t0.CATEGORY_ID = t1.ID WHERE t0.PRODUCT_ID = ?;

SELECT t0.TAG FROM PRODUCT_TAG t0 WHERE t0.PRODUCT_ID = ?;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.NAME, t0.PRICE, t0.SKU FROM PRODUCT t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;

SELECT t1.ID, t1.NAME FROM PRODUCT_CATEGORY t0 INNER JOIN CATEGORY t1 ON t0.CATEGORY_ID = t1.ID WHERE t0.PRODUCT_ID = ?;

SELECT t0.TAG FROM PRODUCT_TAG t0 WHERE t0.PRODUCT_ID = ?;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.NAME, t0.PRICE, t0.SKU FROM PRODUCT t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;

SELECT t1.ID, t1.NAME FROM PRODUCT_CATEGORY t0 INNER JOIN CATEGORY t1 ON t0.CATEGORY_ID = t1.ID WHERE t0.PRODUCT_ID = ?;

SELECT t0.TAG FROM PRODUCT_TAG t0 WHERE t0.PRODUCT_ID = ?;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select p1_0.ID,p1_0.NAME,p1_0.PRICE,p1_0.SKU from PRODUCT p1_0 where p1_0.ID between ? and ? order by p1_0.ID;

select c1_0.PRODUCT_ID,c1_1.ID,c1_1.NAME from PRODUCT_CATEGORY c1_0 join CATEGORY c1_1 on c1_1.ID=c1_0.CATEGORY_ID where c1_0.PRODUCT_ID=?;

select t1_0.PRODUCT_ID,t1_0.TAG from PRODUCT_TAG t1_0 where t1_0.PRODUCT_ID=?;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select p1_0.ID,p1_0.NAME,p1_0.PRICE,p1_0.SKU from PRODUCT p1_0 where p1_0.ID between ? and ? order by p1_0.ID;

select c1_0.PRODUCT_ID,c1_1.ID,c1_1.NAME from PRODUCT_CATEGORY c1_0 join CATEGORY c1_1 on c1_1.ID=c1_0.CATEGORY_ID where c1_0.PRODUCT_ID=?;

select t1_0.PRODUCT_ID,t1_0.TAG from PRODUCT_TAG t1_0 where t1_0.PRODUCT_ID=?;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select p1_0.ID,p1_0.NAME,p1_0.PRICE,p1_0.SKU from PRODUCT p1_0 where p1_0.ID between ? and ? order by p1_0.ID;

select c1_0.PRODUCT_ID,c1_1.ID,c1_1.NAME from PRODUCT_CATEGORY c1_0 join CATEGORY c1_1 on c1_1.ID=c1_0.CATEGORY_ID where c1_0.PRODUCT_ID=?;

select t1_0.PRODUCT_ID,t1_0.TAG from PRODUCT_TAG t1_0 where t1_0.PRODUCT_ID=?;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select p1_0.ID,p1_0.NAME,p1_0.PRICE,p1_0.SKU from PRODUCT p1_0 where p1_0.ID between ? and ? order by p1_0.ID;

select c1_0.PRODUCT_ID,c1_1.ID,c1_1.NAME from PRODUCT_CATEGORY c1_0 join CATEGORY c1_1 on c1_1.ID=c1_0.CATEGORY_ID where c1_0.PRODUCT_ID=?;

select t1_0.PRODUCT_ID,t1_0.TAG from PRODUCT_TAG t1_0 where t1_0.PRODUCT_ID=?;
SELECT ID, NAME, PRICE, SKU FROM PRODUCT WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

SELECT t1.ID, t1.NAME FROM PRODUCT_CATEGORY t0, CATEGORY t1 WHERE ((t0.PRODUCT_ID = ?) AND (t1.ID = t0.CATEGORY_ID));

SELECT t0.TAG FROM PRODUCT_TAG t0 WHERE (t0.PRODUCT_ID = ?);
SELECT ID, NAME, PRICE, SKU FROM PRODUCT WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

SELECT t1.ID, t1.NAME FROM PRODUCT_CATEGORY t0, CATEGORY t1 WHERE ((t0.PRODUCT_ID = ?) AND (t1.ID = t0.CATEGORY_ID));

SELECT t0.TAG FROM PRODUCT_TAG t0 WHERE (t0.PRODUCT_ID = ?);
SELECT ID, NAME, PRICE, SKU FROM PRODUCT WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

SELECT t1.ID, t1.NAME FROM PRODUCT_CATEGORY t0, CATEGORY t1 WHERE ((t0.PRODUCT_ID = ?) AND (t1.ID = t0.CATEGORY_ID));

SELECT t0.TAG FROM PRODUCT_TAG t0 WHERE (t0.PRODUCT_ID = ?);
SELECT ID, NAME, PRICE, SKU FROM PRODUCT WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

SELECT t1.ID, t1.NAME FROM PRODUCT_CATEGORY t0, CATEGORY t1 WHERE ((t0.PRODUCT_ID = ?) AND (t1.ID = t0.CATEGORY_ID));

SELECT t0.TAG FROM PRODUCT_TAG t0 WHERE (t0.PRODUCT_ID = ?);
pagination

Throughput (ops/ms, higher is better)

Average time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT COUNT(t0.ID) FROM ORDERS t0 WHERE (t0.STATUS = ?);

SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.STATUS = ?) ORDER BY t0.ORDER_DATE DESC, t0.ID DESC LIMIT ? OFFSET ?;

SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.STATUS = ?) ORDER BY t0.ORDER_DATE DESC, t0.ID DESC LIMIT ?;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT COUNT(t0.ID) FROM ORDERS t0 WHERE (t0.STATUS = ?);

SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.STATUS = ?) ORDER BY t0.ORDER_DATE DESC, t0.ID DESC LIMIT ? OFFSET ?;

SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.STATUS = ?) ORDER BY t0.ORDER_DATE DESC, t0.ID DESC LIMIT ?;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT COUNT(t0.ID) FROM ORDERS t0 WHERE (t0.STATUS = ?);

SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.STATUS = ?) ORDER BY t0.ORDER_DATE DESC, t0.ID DESC LIMIT ? OFFSET ?;

SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.STATUS = ?) ORDER BY t0.ORDER_DATE DESC, t0.ID DESC LIMIT ?;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT COUNT(t0.ID) FROM ORDERS t0 WHERE (t0.STATUS = ?);

SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.STATUS = ?) ORDER BY t0.ORDER_DATE DESC, t0.ID DESC LIMIT ? OFFSET ?;

SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.STATUS = ?) ORDER BY t0.ORDER_DATE DESC, t0.ID DESC LIMIT ?;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select count(po1_0.ID) from ORDERS po1_0 where po1_0.STATUS=?;

select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.STATUS=? order by po1_0.ORDER_DATE desc,po1_0.ID desc offset ? rows fetch first ? rows only;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select count(po1_0.ID) from ORDERS po1_0 where po1_0.STATUS=?;

select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.STATUS=? order by po1_0.ORDER_DATE desc,po1_0.ID desc offset ? rows fetch first ? rows only;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select count(po1_0.ID) from ORDERS po1_0 where po1_0.STATUS=?;

select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.STATUS=? order by po1_0.ORDER_DATE desc,po1_0.ID desc offset ? rows fetch first ? rows only;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select count(po1_0.ID) from ORDERS po1_0 where po1_0.STATUS=?;

select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.STATUS=? order by po1_0.ORDER_DATE desc,po1_0.ID desc offset ? rows fetch first ? rows only;
SELECT COUNT(ID) FROM ORDERS WHERE (STATUS = ?);

SELECT ID AS a1, ORDER_DATE AS a2, STATUS AS a3, TOTAL AS a4, VERSION AS a5, CUSTOMER_ID AS a6 FROM ORDERS WHERE (STATUS = ?) ORDER BY ORDER_DATE DESC, ID DESC LIMIT ? OFFSET ?;

SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);
SELECT COUNT(ID) FROM ORDERS WHERE (STATUS = ?);

SELECT ID AS a1, ORDER_DATE AS a2, STATUS AS a3, TOTAL AS a4, VERSION AS a5, CUSTOMER_ID AS a6 FROM ORDERS WHERE (STATUS = ?) ORDER BY ORDER_DATE DESC, ID DESC LIMIT ? OFFSET ?;

SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);
SELECT COUNT(ID) FROM ORDERS WHERE (STATUS = ?);

SELECT ID AS a1, ORDER_DATE AS a2, STATUS AS a3, TOTAL AS a4, VERSION AS a5, CUSTOMER_ID AS a6 FROM ORDERS WHERE (STATUS = ?) ORDER BY ORDER_DATE DESC, ID DESC LIMIT ? OFFSET ?;
SELECT COUNT(ID) FROM ORDERS WHERE (STATUS = ?);

SELECT ID AS a1, ORDER_DATE AS a2, STATUS AS a3, TOTAL AS a4, VERSION AS a5, CUSTOMER_ID AS a6 FROM ORDERS WHERE (STATUS = ?) ORDER BY ORDER_DATE DESC, ID DESC LIMIT ? OFFSET ?;
persistBatch

Single shot time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
INSERT INTO ORDERS (ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID) VALUES (?, ?, ?, ?, ?, ?);

INSERT INTO ORDER_LINE (ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID) VALUES (?, ?, ?, ?, ?, ?);
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
INSERT INTO ORDERS (ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID) VALUES (?, ?, ?, ?, ?, ?);

INSERT INTO ORDER_LINE (ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID) VALUES (?, ?, ?, ?, ?, ?);
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
INSERT INTO ORDERS (ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID) VALUES (?, ?, ?, ?, ?, ?);

INSERT INTO ORDER_LINE (ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID) VALUES (?, ?, ?, ?, ?, ?);
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
INSERT INTO ORDERS (ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID) VALUES (?, ?, ?, ?, ?, ?);

INSERT INTO ORDER_LINE (ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID) VALUES (?, ?, ?, ?, ?, ?);
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
insert into ORDERS (CUSTOMER_ID,ORDER_DATE,STATUS,TOTAL,VERSION,ID) values (?,?,?,?,?,?);

insert into ORDER_LINE (LINE_NO,ORDER_ID,PRODUCT_ID,QUANTITY,UNIT_PRICE,ID) values (?,?,?,?,?,?);
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
insert into ORDERS (CUSTOMER_ID,ORDER_DATE,STATUS,TOTAL,VERSION,ID) values (?,?,?,?,?,?);

insert into ORDER_LINE (LINE_NO,ORDER_ID,PRODUCT_ID,QUANTITY,UNIT_PRICE,ID) values (?,?,?,?,?,?);
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
insert into ORDERS (CUSTOMER_ID,ORDER_DATE,STATUS,TOTAL,VERSION,ID) values (?,?,?,?,?,?);

insert into ORDER_LINE (LINE_NO,ORDER_ID,PRODUCT_ID,QUANTITY,UNIT_PRICE,ID) values (?,?,?,?,?,?);
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
insert into ORDERS (CUSTOMER_ID,ORDER_DATE,STATUS,TOTAL,VERSION,ID) values (?,?,?,?,?,?);

insert into ORDER_LINE (LINE_NO,ORDER_ID,PRODUCT_ID,QUANTITY,UNIT_PRICE,ID) values (?,?,?,?,?,?);
SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);

SELECT ID, NAME, PRICE, SKU FROM PRODUCT WHERE (ID = ?);

INSERT INTO ORDERS (ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID) VALUES (?, ?, ?, ?, ?, ?);

INSERT INTO ORDER_LINE (ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID) VALUES (?, ?, ?, ?, ?, ?);
SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);

SELECT ID, NAME, PRICE, SKU FROM PRODUCT WHERE (ID = ?);

INSERT INTO ORDERS (ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID) VALUES (?, ?, ?, ?, ?, ?);

INSERT INTO ORDER_LINE (ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID) VALUES (?, ?, ?, ?, ?, ?);
INSERT INTO ORDERS (ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID) VALUES (?, ?, ?, ?, ?, ?);

INSERT INTO ORDER_LINE (ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID) VALUES (?, ?, ?, ?, ?, ?);
INSERT INTO ORDERS (ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID) VALUES (?, ?, ?, ?, ?, ?);

INSERT INTO ORDER_LINE (ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID) VALUES (?, ?, ?, ?, ?, ?);
removeBatch

Single shot time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?);

SELECT t0.ID, t0.LINE_NO, t0.ORDER_ID, t0.PRODUCT_ID, t0.QUANTITY, t0.UNIT_PRICE FROM ORDER_LINE t0 WHERE t0.ORDER_ID = ?;

SELECT t0.NAME, t0.PRICE, t0.SKU FROM PRODUCT t0 WHERE t0.ID = ?;

SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE t0.ID = ?;

DELETE FROM ORDER_LINE WHERE ID = ?;

DELETE FROM ORDERS WHERE ID = ? AND VERSION = ?;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?);

SELECT t0.ID, t0.LINE_NO, t0.ORDER_ID, t0.PRODUCT_ID, t0.QUANTITY, t0.UNIT_PRICE FROM ORDER_LINE t0 WHERE t0.ORDER_ID = ?;

SELECT t0.NAME, t0.PRICE, t0.SKU FROM PRODUCT t0 WHERE t0.ID = ?;

SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE t0.ID = ?;

DELETE FROM ORDER_LINE WHERE ID = ?;

DELETE FROM ORDERS WHERE ID = ? AND VERSION = ?;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?);

SELECT t0.ID, t0.LINE_NO, t0.ORDER_ID, t0.PRODUCT_ID, t0.QUANTITY, t0.UNIT_PRICE FROM ORDER_LINE t0 WHERE t0.ORDER_ID = ?;

SELECT t0.NAME, t0.PRICE, t0.SKU FROM PRODUCT t0 WHERE t0.ID = ?;

SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE t0.ID = ?;

DELETE FROM ORDER_LINE WHERE ID = ?;

DELETE FROM ORDERS WHERE ID = ? AND VERSION = ?;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?);

SELECT t0.ID, t0.LINE_NO, t0.ORDER_ID, t0.PRODUCT_ID, t0.QUANTITY, t0.UNIT_PRICE FROM ORDER_LINE t0 WHERE t0.ORDER_ID = ?;

SELECT t0.NAME, t0.PRICE, t0.SKU FROM PRODUCT t0 WHERE t0.ID = ?;

SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE t0.ID = ?;

DELETE FROM ORDER_LINE WHERE ID = ?;

DELETE FROM ORDERS WHERE ID = ? AND VERSION = ?;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ?;

select l1_0.ORDER_ID,l1_0.ID,l1_0.LINE_NO,l1_0.PRODUCT_ID,l1_0.QUANTITY,l1_0.UNIT_PRICE from ORDER_LINE l1_0 where l1_0.ORDER_ID=?;

delete from ORDER_LINE where ID=?;

delete from ORDERS where ID=? and VERSION=?;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ?;

select l1_0.ORDER_ID,l1_0.ID,l1_0.LINE_NO,l1_0.PRODUCT_ID,l1_0.QUANTITY,l1_0.UNIT_PRICE from ORDER_LINE l1_0 where l1_0.ORDER_ID=?;

delete from ORDER_LINE where ID=?;

delete from ORDERS where ID=? and VERSION=?;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ?;

select l1_0.ORDER_ID,l1_0.ID,l1_0.LINE_NO,l1_0.PRODUCT_ID,l1_0.QUANTITY,l1_0.UNIT_PRICE from ORDER_LINE l1_0 where l1_0.ORDER_ID=?;

delete from ORDER_LINE where ID=?;

delete from ORDERS where ID=? and VERSION=?;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ?;

select l1_0.ORDER_ID,l1_0.ID,l1_0.LINE_NO,l1_0.PRODUCT_ID,l1_0.QUANTITY,l1_0.UNIT_PRICE from ORDER_LINE l1_0 where l1_0.ORDER_ID=?;

delete from ORDER_LINE where ID=?;

delete from ORDERS where ID=? and VERSION=?;
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?);

SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);

SELECT ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID FROM ORDER_LINE WHERE (ORDER_ID = ?);

SELECT ID, NAME, PRICE, SKU FROM PRODUCT WHERE (ID = ?);

DELETE FROM ORDER_LINE WHERE (ID = ?);

DELETE FROM ORDERS WHERE ((ID = ?) AND (VERSION = ?));
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?);

SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);

SELECT ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID FROM ORDER_LINE WHERE (ORDER_ID = ?);

SELECT ID, NAME, PRICE, SKU FROM PRODUCT WHERE (ID = ?);

DELETE FROM ORDER_LINE WHERE (ID = ?);

DELETE FROM ORDERS WHERE ((ID = ?) AND (VERSION = ?));
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?);

SELECT ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID FROM ORDER_LINE WHERE (ORDER_ID = ?);

DELETE FROM ORDER_LINE WHERE (ID = ?);

DELETE FROM ORDERS WHERE ((ID = ?) AND (VERSION = ?));
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?);

SELECT ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID FROM ORDER_LINE WHERE (ORDER_ID = ?);

DELETE FROM ORDER_LINE WHERE (ID = ?);

DELETE FROM ORDERS WHERE ((ID = ?) AND (VERSION = ?));
resultStream

Throughput (ops/ms, higher is better)

Average time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ? order by po1_0.ID;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ? order by po1_0.ID;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ? order by po1_0.ID;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ? order by po1_0.ID;
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?) ORDER BY ID;
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?) ORDER BY ID;
updateDirtyChecking

Single shot time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;

UPDATE ORDERS SET STATUS = ?, TOTAL = ?, VERSION = ? WHERE ID = ? AND VERSION = ?;

UPDATE ORDERS SET TOTAL = ?, VERSION = ? WHERE ID = ? AND VERSION = ?;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;

UPDATE ORDERS SET STATUS = ?, TOTAL = ?, VERSION = ? WHERE ID = ? AND VERSION = ?;

UPDATE ORDERS SET TOTAL = ?, VERSION = ? WHERE ID = ? AND VERSION = ?;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;

UPDATE ORDERS SET STATUS = ?, TOTAL = ?, VERSION = ? WHERE ID = ? AND VERSION = ?;

UPDATE ORDERS SET TOTAL = ?, VERSION = ? WHERE ID = ? AND VERSION = ?;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;

UPDATE ORDERS SET STATUS = ?, TOTAL = ?, VERSION = ? WHERE ID = ? AND VERSION = ?;

UPDATE ORDERS SET TOTAL = ?, VERSION = ? WHERE ID = ? AND VERSION = ?;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ? order by po1_0.ID;

update ORDERS set CUSTOMER_ID=?,ORDER_DATE=?,STATUS=?,TOTAL=?,VERSION=? where ID=? and VERSION=?;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ? order by po1_0.ID;

update ORDERS set CUSTOMER_ID=?,ORDER_DATE=?,STATUS=?,TOTAL=?,VERSION=? where ID=? and VERSION=?;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ? order by po1_0.ID;

update ORDERS set CUSTOMER_ID=?,ORDER_DATE=?,STATUS=?,TOTAL=?,VERSION=? where ID=? and VERSION=?;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ? order by po1_0.ID;

update ORDERS set CUSTOMER_ID=?,ORDER_DATE=?,STATUS=?,TOTAL=?,VERSION=? where ID=? and VERSION=?;
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);

UPDATE ORDERS SET STATUS = ?, TOTAL = ?, VERSION = ? WHERE ((ID = ?) AND (VERSION = ?));

UPDATE ORDERS SET TOTAL = ?, VERSION = ? WHERE ((ID = ?) AND (VERSION = ?));
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);

UPDATE ORDERS SET STATUS = ?, TOTAL = ?, VERSION = ? WHERE ((ID = ?) AND (VERSION = ?));

UPDATE ORDERS SET TOTAL = ?, VERSION = ? WHERE ((ID = ?) AND (VERSION = ?));
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

UPDATE ORDERS SET STATUS = ?, TOTAL = ?, VERSION = ? WHERE ((ID = ?) AND (VERSION = ?));

UPDATE ORDERS SET TOTAL = ?, VERSION = ? WHERE ((ID = ?) AND (VERSION = ?));
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

UPDATE ORDERS SET STATUS = ?, TOTAL = ?, VERSION = ? WHERE ((ID = ?) AND (VERSION = ?));

UPDATE ORDERS SET TOTAL = ?, VERSION = ? WHERE ((ID = ?) AND (VERSION = ?));

H2 (in-memory), EMF bootstrap (warm)

Single shot time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced) 7.76 ± 0.7540.78 Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 8.21 ± 0.8140.74 Apache OpenJPA 4.1.1 (runtime enhanced) 7.78 ± 0.7670.78 Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 8.02 ± 0.7880.75 Hibernate ORM 6.6.59.Final (not enhanced) 12.89 ± 1.230.47 Hibernate ORM 7.4.15.Final (not enhanced) 16.21 ± 1.940.37 Hibernate ORM 6.6.59.Final (enhanced) 13.32 ± 1.380.45 Hibernate ORM 7.4.15.Final (enhanced) 16.63 ± 1.600.36 EclipseLink 4.0.10 (not woven) 6.04 ± 0.525fastest EclipseLink 5.0.2 (not woven) 6.23 ± 0.571≈ 0.97 EclipseLink 4.0.10 (woven) 6.66 ± 0.615≈ 0.91 EclipseLink 5.0.2 (woven) 6.97 ± 0.704≈ 0.87

Bar: score, line: ± error; number: factor to the fastest, ≈: within error of the fastest.

Scores (Single shot time)

Single shot time (ms/op, lower is better)

Score ± error, factor to the fastest below. Bold frame: fastest; thin frame and ≈: within error of the fastest.

BenchmarkApache OpenJPA 4.1.1 (enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (enhanced)Apache OpenJPA 4.1.1 (runtime enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)Hibernate ORM 6.6.59.Final (not enhanced)Hibernate ORM 7.4.15.Final (not enhanced)Hibernate ORM 6.6.59.Final (enhanced)Hibernate ORM 7.4.15.Final (enhanced)EclipseLink 4.0.10 (not woven)EclipseLink 5.0.2 (not woven)EclipseLink 4.0.10 (woven)EclipseLink 5.0.2 (woven)
emfBootstrap 7.76 ± 0.754
0.78
8.21 ± 0.814
0.74
7.78 ± 0.767
0.78
8.02 ± 0.788
0.75
12.89 ± 1.23
0.47
16.21 ± 1.94
0.37
13.32 ± 1.38
0.45
16.63 ± 1.60
0.36
6.04 ± 0.525
1.00
6.23 ± 0.571
≈ 0.97
6.66 ± 0.615
≈ 0.91
6.97 ± 0.704
≈ 0.87

H2 (in-memory), EMF bootstrap (cold start)

Single shot time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced) 145.7 ± 3.440.88 Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 148.0 ± 2.160.86 Apache OpenJPA 4.1.1 (runtime enhanced) 129.1 ± 2.61≈ 0.99 Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 134.7 ± 2.230.95 Hibernate ORM 6.6.59.Final (not enhanced) 449.5 ± 5.210.28 Hibernate ORM 7.4.15.Final (not enhanced) 521.1 ± 5.990.25 Hibernate ORM 6.6.59.Final (enhanced) 463.0 ± 3.650.28 Hibernate ORM 7.4.15.Final (enhanced) 533.1 ± 3.780.24 EclipseLink 4.0.10 (not woven) 127.8 ± 1.16fastest EclipseLink 5.0.2 (not woven) 142.6 ± 1.370.90 EclipseLink 4.0.10 (woven) 131.9 ± 0.8350.97 EclipseLink 5.0.2 (woven) 147.5 ± 1.770.87

Bar: score, line: ± error; number: factor to the fastest, ≈: within error of the fastest.

Scores (Single shot time)

Single shot time (ms/op, lower is better)

Score ± error, factor to the fastest below. Bold frame: fastest; thin frame and ≈: within error of the fastest.

BenchmarkApache OpenJPA 4.1.1 (enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (enhanced)Apache OpenJPA 4.1.1 (runtime enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)Hibernate ORM 6.6.59.Final (not enhanced)Hibernate ORM 7.4.15.Final (not enhanced)Hibernate ORM 6.6.59.Final (enhanced)Hibernate ORM 7.4.15.Final (enhanced)EclipseLink 4.0.10 (not woven)EclipseLink 5.0.2 (not woven)EclipseLink 4.0.10 (woven)EclipseLink 5.0.2 (woven)
emfBootstrap 145.7 ± 3.44
0.88
148.0 ± 2.16
0.86
129.1 ± 2.61
≈ 0.99
134.7 ± 2.23
0.95
449.5 ± 5.21
0.28
521.1 ± 5.99
0.25
463.0 ± 3.65
0.28
533.1 ± 3.78
0.24
127.8 ± 1.16
1.00
142.6 ± 1.37
0.90
131.9 ± 0.835
0.97
147.5 ± 1.77
0.87

PostgreSQL, dataset S

Throughput: factor to the fastest (ops/ms, higher is better)

1.00 = fastest (bold frame); ≈ and thin frame: score ± error overlaps the fastest; colour steps at 0.95, 0.8, 0.6, 0.4 and 0.2.

BenchmarkApache OpenJPA 4.1.1 (enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (enhanced)Apache OpenJPA 4.1.1 (runtime enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)Hibernate ORM 6.6.59.Final (not enhanced)Hibernate ORM 7.4.15.Final (not enhanced)Hibernate ORM 6.6.59.Final (enhanced)Hibernate ORM 7.4.15.Final (enhanced)EclipseLink 4.0.10 (not woven)EclipseLink 5.0.2 (not woven)EclipseLink 4.0.10 (woven)EclipseLink 5.0.2 (woven)
aggregationGroupBy ≈ 0.99 0.98 1.00 ≈ 0.99 0.93 0.93 0.93 0.92 0.92 0.92 0.92 0.92
criteriaQuery 1.00 ≈ 0.99 ≈ 1.00 ≈ 0.99 0.56 0.56 0.56 0.56 0.57 0.57 0.60 0.60
dtoProjection 1.00 ≈ 0.99 ≈ 0.99 ≈ 0.93 0.82 0.82 0.82 0.82 0.79 0.79 0.78 0.79
findById ≈ 0.99 ≈ 0.99 ≈ 0.99 1.00 0.52 0.52 0.53 0.52 0.52 0.52 0.53 0.53
inheritanceJoinedQuery 1.00 ≈ 0.99 ≈ 1.00 ≈ 0.99 0.65 0.65 0.64 0.65 0.62 0.62 0.66 0.66
inheritanceSingleTableQuery ≈ 1.00 ≈ 1.00 1.00 ≈ 1.00 0.60 0.62 0.59 0.61 0.57 0.58 0.61 0.61
joinFetch 0.42 0.38 0.42 0.39 0.48 0.52 0.38 0.43 0.12 0.12 ≈ 1.00 1.00
jpqlByIndexedAttribute 1.00 ≈ 1.00 ≈ 1.00 ≈ 0.99 0.54 0.53 0.55 0.53 0.54 0.54 0.55 0.55
lazyNavigationNPlusOne 0.97 0.96 0.97 0.96 ≈ 0.98 0.96 0.96 0.96 0.42 0.42 ≈ 1.00 1.00
manyToManyAndElementCollection ≈ 0.97 1.00 ≈ 0.97 ≈ 0.96 ≈ 0.95 ≈ 0.96 ≈ 0.96 ≈ 0.96 ≈ 0.97 ≈ 0.97 ≈ 0.99 ≈ 0.99
pagination 1.00 ≈ 0.99 ≈ 1.00 ≈ 0.99 0.91 0.91 0.90 0.91 0.19 0.19 0.93 0.93
resultStream ≈ 0.97 1.00 ≈ 0.94 ≈ 0.99 0.62 0.64 0.60 0.64 0.02 0.02 0.86 0.87

Average time: factor to the fastest (ms/op, lower is better)

1.00 = fastest (bold frame); ≈ and thin frame: score ± error overlaps the fastest; colour steps at 0.95, 0.8, 0.6, 0.4 and 0.2.

BenchmarkApache OpenJPA 4.1.1 (enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (enhanced)Apache OpenJPA 4.1.1 (runtime enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)Hibernate ORM 6.6.59.Final (not enhanced)Hibernate ORM 7.4.15.Final (not enhanced)Hibernate ORM 6.6.59.Final (enhanced)Hibernate ORM 7.4.15.Final (enhanced)EclipseLink 4.0.10 (not woven)EclipseLink 5.0.2 (not woven)EclipseLink 4.0.10 (woven)EclipseLink 5.0.2 (woven)
aggregationGroupBy ≈ 1.00 0.98 1.00 0.97 0.93 0.93 0.93 0.92 0.92 0.92 0.92 0.92
criteriaQuery 1.00 ≈ 0.99 ≈ 1.00 0.98 0.54 0.56 0.56 0.58 0.58 0.58 0.61 0.60
dtoProjection 1.00 ≈ 0.99 ≈ 1.00 ≈ 0.98 0.82 0.82 0.82 0.82 0.79 0.79 0.79 0.79
findById 1.00 ≈ 0.99 ≈ 1.00 ≈ 0.99 0.52 0.52 0.53 0.53 0.53 0.52 0.55 0.53
inheritanceJoinedQuery 1.00 ≈ 1.00 ≈ 1.00 ≈ 1.00 0.65 0.66 0.64 0.65 0.63 0.62 0.66 0.66
inheritanceSingleTableQuery 1.00 ≈ 0.98 ≈ 1.00 ≈ 1.00 0.60 0.61 0.59 0.61 0.58 0.59 0.62 0.62
joinFetch 0.42 0.46 0.42 0.38 0.44 0.48 0.40 0.39 0.12 0.12 1.00 ≈ 1.00
jpqlByIndexedAttribute 1.00 ≈ 1.00 ≈ 1.00 ≈ 0.99 0.54 0.54 0.54 0.54 0.54 0.54 0.55 0.55
lazyNavigationNPlusOne 0.97 0.97 0.97 0.96 0.96 0.97 0.96 0.96 0.42 0.42 ≈ 1.00 1.00
manyToManyAndElementCollection ≈ 0.96 ≈ 0.96 ≈ 0.96 ≈ 0.96 ≈ 0.95 ≈ 0.95 ≈ 0.95 ≈ 0.98 ≈ 0.96 1.00 ≈ 0.98 ≈ 0.99
pagination ≈ 0.99 1.00 ≈ 0.99 ≈ 0.99 0.90 0.91 0.89 0.91 0.19 0.19 0.92 0.93
resultStream ≈ 1.00 1.00 ≈ 0.93 ≈ 0.93 0.63 0.63 0.60 0.63 0.02 0.02 0.87 0.88

Single shot time: factor to the fastest (ms/op, lower is better)

1.00 = fastest (bold frame); ≈ and thin frame: score ± error overlaps the fastest; colour steps at 0.95, 0.8, 0.6, 0.4 and 0.2.

BenchmarkApache OpenJPA 4.1.1 (enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (enhanced)Apache OpenJPA 4.1.1 (runtime enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)Hibernate ORM 6.6.59.Final (not enhanced)Hibernate ORM 7.4.15.Final (not enhanced)Hibernate ORM 6.6.59.Final (enhanced)Hibernate ORM 7.4.15.Final (enhanced)EclipseLink 4.0.10 (not woven)EclipseLink 5.0.2 (not woven)EclipseLink 4.0.10 (woven)EclipseLink 5.0.2 (woven)
bulkDelete 0.85 0.84 0.83 0.84 ≈ 0.98 ≈ 0.98 1.00 ≈ 0.97 0.85 0.84 0.84 0.84
bulkUpdate 0.72 0.71 0.71 0.71 ≈ 0.96 0.96 ≈ 0.97 ≈ 0.97 ≈ 0.99 ≈ 1.00 ≈ 1.00 1.00
persistBatch ≈ 0.78 ≈ 0.78 0.75 ≈ 0.78 ≈ 0.86 ≈ 0.89 0.74 ≈ 0.80 0.15 0.15 1.00 ≈ 0.97
removeBatch 0.26 0.26 0.26 0.26 0.41 0.41 0.41 0.41 0.27 0.27 ≈ 1.00 1.00
updateDirtyChecking 0.81 0.80 ≈ 0.83 0.79 1.00 ≈ 0.95 ≈ 1.00 ≈ 0.94 0.16 0.16 0.81 0.81
Scores (Throughput, Average time, Single shot time)

Throughput (ops/ms, higher is better)

Score ± error, factor to the fastest below. Bold frame: fastest; thin frame and ≈: within error of the fastest.

BenchmarkApache OpenJPA 4.1.1 (enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (enhanced)Apache OpenJPA 4.1.1 (runtime enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)Hibernate ORM 6.6.59.Final (not enhanced)Hibernate ORM 7.4.15.Final (not enhanced)Hibernate ORM 6.6.59.Final (enhanced)Hibernate ORM 7.4.15.Final (enhanced)EclipseLink 4.0.10 (not woven)EclipseLink 5.0.2 (not woven)EclipseLink 4.0.10 (woven)EclipseLink 5.0.2 (woven)
aggregationGroupBy 3.22 ± 0.0351
≈ 0.99
3.18 ± 0.037
0.98
3.24 ± 0.0235
1.00
3.22 ± 0.0537
≈ 0.99
3.01 ± 0.0201
0.93
3.02 ± 0.089
0.93
3.02 ± 0.0748
0.93
2.99 ± 0.0161
0.92
2.98 ± 0.0211
0.92
2.97 ± 0.0115
0.92
2.98 ± 0.0202
0.92
2.98 ± 0.0171
0.92
criteriaQuery 7.70 ± 0.0489
1.00
7.61 ± 0.0695
≈ 0.99
7.69 ± 0.0761
≈ 1.00
7.66 ± 0.0962
≈ 0.99
4.34 ± 0.134
0.56
4.29 ± 0.0248
0.56
4.29 ± 0.0378
0.56
4.30 ± 0.0311
0.56
4.42 ± 0.0189
0.57
4.42 ± 0.0342
0.57
4.59 ± 0.0305
0.60
4.60 ± 0.0243
0.60
dtoProjection 2.39 ± 0.0239
1.00
2.36 ± 0.0216
≈ 0.99
2.38 ± 0.0206
≈ 0.99
2.23 ± 0.179
≈ 0.93
1.96 ± 0.0143
0.82
1.96 ± 0.0267
0.82
1.96 ± 0.0146
0.82
1.97 ± 0.0142
0.82
1.89 ± 0.0272
0.79
1.89 ± 0.0172
0.79
1.87 ± 0.0581
0.78
1.90 ± 0.0245
0.79
findById 10.25 ± 0.097
≈ 0.99
10.21 ± 0.0638
≈ 0.99
10.27 ± 0.0517
≈ 0.99
10.36 ± 0.255
1.00
5.38 ± 0.0163
0.52
5.38 ± 0.0325
0.52
5.48 ± 0.229
0.53
5.38 ± 0.0231
0.52
5.39 ± 0.0253
0.52
5.37 ± 0.0164
0.52
5.47 ± 0.175
0.53
5.45 ± 0.0357
0.53
inheritanceJoinedQuery 5.68 ± 0.0283
1.00
5.64 ± 0.0365
≈ 0.99
5.66 ± 0.012
≈ 1.00
5.64 ± 0.0255
≈ 0.99
3.69 ± 0.0242
0.65
3.71 ± 0.0219
0.65
3.64 ± 0.0156
0.64
3.71 ± 0.0241
0.65
3.53 ± 0.00736
0.62
3.53 ± 0.0161
0.62
3.73 ± 0.0238
0.66
3.74 ± 0.0202
0.66
inheritanceSingleTableQuery 7.21 ± 0.0381
≈ 1.00
7.20 ± 0.0418
≈ 1.00
7.22 ± 0.0341
1.00
7.20 ± 0.0442
≈ 1.00
4.33 ± 0.0215
0.60
4.49 ± 0.169
0.62
4.24 ± 0.0514
0.59
4.37 ± 0.0248
0.61
4.15 ± 0.0285
0.57
4.16 ± 0.0106
0.58
4.44 ± 0.0107
0.61
4.44 ± 0.00886
0.61
joinFetch 0.572 ± 0.0485
0.42
0.516 ± 0.0249
0.38
0.577 ± 0.0458
0.42
0.527 ± 0.0404
0.39
0.66 ± 0.231
0.48
0.71 ± 0.227
0.52
0.52 ± 0.0385
0.38
0.588 ± 0.218
0.43
0.169 ± 0.0022
0.12
0.169 ± 0.00176
0.12
1.36 ± 0.0124
≈ 1.00
1.37 ± 0.00608
1.00
jpqlByIndexedAttribute 9.83 ± 0.0542
1.00
9.81 ± 0.0733
≈ 1.00
9.80 ± 0.0564
≈ 1.00
9.77 ± 0.0901
≈ 0.99
5.29 ± 0.0293
0.54
5.25 ± 0.0636
0.53
5.41 ± 0.306
0.55
5.24 ± 0.0359
0.53
5.30 ± 0.0123
0.54
5.29 ± 0.0253
0.54
5.38 ± 0.0463
0.55
5.37 ± 0.0321
0.55
lazyNavigationNPlusOne 0.246 ± 0.00295
0.97
0.246 ± 0.00235
0.96
0.247 ± 0.0015
0.97
0.245 ± 0.00167
0.96
0.25 ± 0.00869
≈ 0.98
0.246 ± 0.000813
0.96
0.245 ± 0.000914
0.96
0.245 ± 0.00137
0.96
0.108 ± 0.000945
0.42
0.108 ± 0.00081
0.42
0.255 ± 0.00104
≈ 1.00
0.255 ± 0.00136
1.00
manyToManyAndElementCollection 0.484 ± 0.00437
≈ 0.97
0.5 ± 0.0391
1.00
0.483 ± 0.00416
≈ 0.97
0.482 ± 0.00348
≈ 0.96
0.476 ± 0.00269
≈ 0.95
0.479 ± 0.00433
≈ 0.96
0.479 ± 0.0118
≈ 0.96
0.478 ± 0.00324
≈ 0.96
0.483 ± 0.00181
≈ 0.97
0.483 ± 0.00291
≈ 0.97
0.493 ± 0.00462
≈ 0.99
0.494 ± 0.00486
≈ 0.99
pagination 2.24 ± 0.0152
1.00
2.23 ± 0.0143
≈ 0.99
2.23 ± 0.0165
≈ 1.00
2.23 ± 0.0232
≈ 0.99
2.03 ± 0.0102
0.91
2.04 ± 0.0162
0.91
2.00 ± 0.0152
0.90
2.03 ± 0.00925
0.91
0.421 ± 0.019
0.19
0.418 ± 0.00467
0.19
2.09 ± 0.0392
0.93
2.07 ± 0.0218
0.93
resultStream 0.477 ± 0.0341
≈ 0.97
0.491 ± 0.00496
1.00
0.461 ± 0.0394
≈ 0.94
0.488 ± 0.0048
≈ 0.99
0.307 ± 0.00296
0.62
0.313 ± 0.00344
0.64
0.296 ± 0.00293
0.60
0.313 ± 0.00292
0.64
0.0119 ± 0.000403
0.02
0.0118 ± 7.65e-05
0.02
0.424 ± 0.00315
0.86
0.429 ± 0.0198
0.87

Average time (ms/op, lower is better)

Score ± error, factor to the fastest below. Bold frame: fastest; thin frame and ≈: within error of the fastest.

BenchmarkApache OpenJPA 4.1.1 (enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (enhanced)Apache OpenJPA 4.1.1 (runtime enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)Hibernate ORM 6.6.59.Final (not enhanced)Hibernate ORM 7.4.15.Final (not enhanced)Hibernate ORM 6.6.59.Final (enhanced)Hibernate ORM 7.4.15.Final (enhanced)EclipseLink 4.0.10 (not woven)EclipseLink 5.0.2 (not woven)EclipseLink 4.0.10 (woven)EclipseLink 5.0.2 (woven)
aggregationGroupBy 0.31 ± 0.00452
≈ 1.00
0.315 ± 0.00331
0.98
0.309 ± 0.0023
1.00
0.318 ± 0.00174
0.97
0.335 ± 0.00119
0.93
0.335 ± 0.00204
0.93
0.334 ± 0.00136
0.93
0.335 ± 0.00464
0.92
0.337 ± 0.00285
0.92
0.336 ± 0.00188
0.92
0.336 ± 0.00188
0.92
0.335 ± 0.00112
0.92
criteriaQuery 0.131 ± 0.001
1.00
0.132 ± 0.00116
≈ 0.99
0.131 ± 0.00089
≈ 1.00
0.133 ± 0.000694
0.98
0.24 ± 0.00236
0.54
0.233 ± 0.00163
0.56
0.233 ± 0.00188
0.56
0.225 ± 0.0115
0.58
0.227 ± 0.000593
0.58
0.226 ± 0.00122
0.58
0.213 ± 0.00909
0.61
0.218 ± 0.00144
0.60
dtoProjection 0.42 ± 0.00572
1.00
0.425 ± 0.00481
≈ 0.99
0.421 ± 0.00446
≈ 1.00
0.427 ± 0.005
≈ 0.98
0.511 ± 0.00452
0.82
0.511 ± 0.00462
0.82
0.511 ± 0.00381
0.82
0.509 ± 0.00336
0.82
0.53 ± 0.00561
0.79
0.53 ± 0.00483
0.79
0.532 ± 0.00886
0.79
0.53 ± 0.00777
0.79
findById 0.0976 ± 0.00137
1.00
0.0984 ± 0.000795
≈ 0.99
0.0976 ± 0.00102
≈ 1.00
0.0983 ± 0.00081
≈ 0.99
0.188 ± 0.00409
0.52
0.186 ± 0.000853
0.52
0.186 ± 0.000851
0.53
0.183 ± 0.00735
0.53
0.186 ± 0.00104
0.53
0.186 ± 0.000734
0.52
0.179 ± 0.00859
0.55
0.183 ± 0.00131
0.53
inheritanceJoinedQuery 0.177 ± 0.000819
1.00
0.177 ± 0.000816
≈ 1.00
0.177 ± 0.000624
≈ 1.00
0.177 ± 0.000727
≈ 1.00
0.273 ± 0.00922
0.65
0.269 ± 0.00204
0.66
0.275 ± 0.00151
0.64
0.27 ± 0.00129
0.65
0.283 ± 0.00147
0.63
0.284 ± 0.00119
0.62
0.268 ± 0.00103
0.66
0.269 ± 0.00166
0.66
inheritanceSingleTableQuery 0.139 ± 0.000721
1.00
0.141 ± 0.00518
≈ 0.98
0.139 ± 0.000594
≈ 1.00
0.139 ± 0.000575
≈ 1.00
0.231 ± 0.000982
0.60
0.228 ± 0.00113
0.61
0.234 ± 0.00141
0.59
0.228 ± 0.00108
0.61
0.24 ± 0.000774
0.58
0.236 ± 0.00947
0.59
0.225 ± 0.00381
0.62
0.225 ± 0.00161
0.62
joinFetch 1.75 ± 0.143
0.42
1.60 ± 0.566
0.46
1.74 ± 0.121
0.42
1.93 ± 0.126
0.38
1.66 ± 0.089
0.44
1.53 ± 0.101
0.48
1.82 ± 0.337
0.40
1.89 ± 0.229
0.39
5.92 ± 0.0714
0.12
5.92 ± 0.0648
0.12
0.73 ± 0.00232
1.00
0.731 ± 0.00237
≈ 1.00
jpqlByIndexedAttribute 0.102 ± 0.00058
1.00
0.102 ± 0.000848
≈ 1.00
0.102 ± 0.000969
≈ 1.00
0.103 ± 0.00178
≈ 0.99
0.189 ± 0.00106
0.54
0.19 ± 0.00178
0.54
0.189 ± 0.000835
0.54
0.19 ± 0.000727
0.54
0.188 ± 0.00055
0.54
0.189 ± 0.000547
0.54
0.186 ± 0.00194
0.55
0.186 ± 0.00113
0.55
lazyNavigationNPlusOne 4.05 ± 0.0499
0.97
4.06 ± 0.0292
0.97
4.06 ± 0.0315
0.97
4.10 ± 0.0414
0.96
4.07 ± 0.0126
0.96
4.06 ± 0.0126
0.97
4.09 ± 0.0162
0.96
4.07 ± 0.0166
0.96
9.26 ± 0.061
0.42
9.27 ± 0.0751
0.42
3.93 ± 0.0265
≈ 1.00
3.93 ± 0.0226
1.00
manyToManyAndElementCollection 2.07 ± 0.0158
≈ 0.96
2.08 ± 0.0208
≈ 0.96
2.07 ± 0.0163
≈ 0.96
2.08 ± 0.0138
≈ 0.96
2.10 ± 0.00899
≈ 0.95
2.09 ± 0.0172
≈ 0.95
2.11 ± 0.0138
≈ 0.95
2.04 ± 0.128
≈ 0.98
2.07 ± 0.0096
≈ 0.96
1.99 ± 0.145
1.00
2.02 ± 0.0171
≈ 0.98
2.01 ± 0.0456
≈ 0.99
pagination 0.448 ± 0.00524
≈ 0.99
0.445 ± 0.00874
1.00
0.45 ± 0.00331
≈ 0.99
0.45 ± 0.0044
≈ 0.99
0.494 ± 0.00259
0.90
0.491 ± 0.00352
0.91
0.499 ± 0.00262
0.89
0.489 ± 0.0117
0.91
2.39 ± 0.0245
0.19
2.39 ± 0.0283
0.19
0.482 ± 0.00307
0.92
0.481 ± 0.00281
0.93
resultStream 2.05 ± 0.0269
≈ 1.00
2.04 ± 0.0325
1.00
2.18 ± 0.197
≈ 0.93
2.18 ± 0.205
≈ 0.93
3.24 ± 0.0329
0.63
3.22 ± 0.0496
0.63
3.41 ± 0.0335
0.60
3.22 ± 0.0292
0.63
84.58 ± 0.672
0.02
84.52 ± 0.558
0.02
2.35 ± 0.0212
0.87
2.31 ± 0.0198
0.88

Single shot time (ms/op, lower is better)

Score ± error, factor to the fastest below. Bold frame: fastest; thin frame and ≈: within error of the fastest.

BenchmarkApache OpenJPA 4.1.1 (enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (enhanced)Apache OpenJPA 4.1.1 (runtime enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)Hibernate ORM 6.6.59.Final (not enhanced)Hibernate ORM 7.4.15.Final (not enhanced)Hibernate ORM 6.6.59.Final (enhanced)Hibernate ORM 7.4.15.Final (enhanced)EclipseLink 4.0.10 (not woven)EclipseLink 5.0.2 (not woven)EclipseLink 4.0.10 (woven)EclipseLink 5.0.2 (woven)
bulkDelete 0.739 ± 0.0216
0.85
0.745 ± 0.0229
0.84
0.754 ± 0.0307
0.83
0.74 ± 0.0207
0.84
0.635 ± 0.0439
≈ 0.98
0.639 ± 0.0128
≈ 0.98
0.625 ± 0.0227
1.00
0.642 ± 0.0191
≈ 0.97
0.738 ± 0.0153
0.85
0.744 ± 0.0135
0.84
0.742 ± 0.0144
0.84
0.741 ± 0.0136
0.84
bulkUpdate 0.87 ± 0.0161
0.72
0.881 ± 0.0115
0.71
0.885 ± 0.0214
0.71
0.884 ± 0.0109
0.71
0.653 ± 0.0187
≈ 0.96
0.656 ± 0.00971
0.96
0.652 ± 0.0153
≈ 0.97
0.651 ± 0.014
≈ 0.97
0.636 ± 0.0155
≈ 0.99
0.632 ± 0.0113
≈ 1.00
0.63 ± 0.0121
≈ 1.00
0.63 ± 0.0106
1.00
persistBatch 3.72 ± 0.66
≈ 0.78
3.72 ± 0.617
≈ 0.78
3.88 ± 0.539
0.75
3.72 ± 0.754
≈ 0.78
3.37 ± 0.389
≈ 0.86
3.24 ± 0.316
≈ 0.89
3.91 ± 0.405
0.74
3.61 ± 0.413
≈ 0.80
18.71 ± 0.128
0.15
18.70 ± 0.109
0.15
2.89 ± 0.306
1.00
2.99 ± 0.501
≈ 0.97
removeBatch 23.19 ± 0.498
0.26
23.30 ± 0.146
0.26
23.31 ± 0.394
0.26
23.36 ± 0.163
0.26
14.67 ± 0.193
0.41
14.73 ± 0.0758
0.41
14.83 ± 0.0949
0.41
14.76 ± 0.0588
0.41
22.46 ± 0.693
0.27
22.36 ± 0.684
0.27
6.08 ± 0.069
≈ 1.00
6.06 ± 0.0732
1.00
updateDirtyChecking 1.20 ± 0.0101
0.81
1.21 ± 0.0263
0.80
1.16 ± 0.09
≈ 0.83
1.22 ± 0.0636
0.79
0.966 ± 0.117
1.00
1.01 ± 0.291
≈ 0.95
0.97 ± 0.173
≈ 1.00
1.03 ± 0.183
≈ 0.94
5.90 ± 0.118
0.16
5.92 ± 0.131
0.16
1.20 ± 0.0168
0.81
1.20 ± 0.0271
0.81

Statements per operation

Stacked by kind: SELECT INSERT UPDATE DELETE other. Numbers: statements, JDBC executions, batches, SQL characters per operation.

aggregationGroupBy

Apache OpenJPA 4.1.1 (enhanced) 1 stmts
1 exec · 0 batches · 195 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 1 stmts
1 exec · 0 batches · 195 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 1 stmts
1 exec · 0 batches · 195 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 1 stmts
1 exec · 0 batches · 195 chars
Hibernate ORM 6.6.59.Final (not enhanced) 1 stmts
1 exec · 0 batches · 192 chars
Hibernate ORM 7.4.15.Final (not enhanced) 1 stmts
1 exec · 0 batches · 192 chars
Hibernate ORM 6.6.59.Final (enhanced) 1 stmts
1 exec · 0 batches · 192 chars
Hibernate ORM 7.4.15.Final (enhanced) 1 stmts
1 exec · 0 batches · 192 chars
EclipseLink 4.0.10 (not woven) 1 stmts
1 exec · 0 batches · 174 chars
EclipseLink 5.0.2 (not woven) 1 stmts
1 exec · 0 batches · 174 chars
EclipseLink 4.0.10 (woven) 1 stmts
1 exec · 0 batches · 174 chars
EclipseLink 5.0.2 (woven) 1 stmts
1 exec · 0 batches · 174 chars

bulkDelete

Apache OpenJPA 4.1.1 (enhanced) 2 stmts
2 exec · 0 batches · 226 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 2 stmts
2 exec · 0 batches · 226 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 2 stmts
2 exec · 0 batches · 226 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 2 stmts
2 exec · 0 batches · 226 chars
Hibernate ORM 6.6.59.Final (not enhanced) 2 stmts
2 exec · 0 batches · 120 chars
Hibernate ORM 7.4.15.Final (not enhanced) 2 stmts
2 exec · 0 batches · 120 chars
Hibernate ORM 6.6.59.Final (enhanced) 2 stmts
2 exec · 0 batches · 120 chars
Hibernate ORM 7.4.15.Final (enhanced) 2 stmts
2 exec · 0 batches · 120 chars
EclipseLink 4.0.10 (not woven) 2 stmts
2 exec · 0 batches · 208 chars
EclipseLink 5.0.2 (not woven) 2 stmts
2 exec · 0 batches · 208 chars
EclipseLink 4.0.10 (woven) 2 stmts
2 exec · 0 batches · 208 chars
EclipseLink 5.0.2 (woven) 2 stmts
2 exec · 0 batches · 208 chars

bulkUpdate

Apache OpenJPA 4.1.1 (enhanced) 1 stmts
1 exec · 0 batches · 136 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 1 stmts
1 exec · 0 batches · 136 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 1 stmts
1 exec · 0 batches · 136 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 1 stmts
1 exec · 0 batches · 136 chars
Hibernate ORM 6.6.59.Final (not enhanced) 1 stmts
1 exec · 0 batches · 63 chars
Hibernate ORM 7.4.15.Final (not enhanced) 1 stmts
1 exec · 0 batches · 63 chars
Hibernate ORM 6.6.59.Final (enhanced) 1 stmts
1 exec · 0 batches · 63 chars
Hibernate ORM 7.4.15.Final (enhanced) 1 stmts
1 exec · 0 batches · 63 chars
EclipseLink 4.0.10 (not woven) 1 stmts
1 exec · 0 batches · 80 chars
EclipseLink 5.0.2 (not woven) 1 stmts
1 exec · 0 batches · 80 chars
EclipseLink 4.0.10 (woven) 1 stmts
1 exec · 0 batches · 80 chars
EclipseLink 5.0.2 (woven) 1 stmts
1 exec · 0 batches · 80 chars

criteriaQuery

Apache OpenJPA 4.1.1 (enhanced) 1 stmts
1 exec · 0 batches · 211 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 1 stmts
1 exec · 0 batches · 211 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 1 stmts
1 exec · 0 batches · 211 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 1 stmts
1 exec · 0 batches · 211 chars
Hibernate ORM 6.6.59.Final (not enhanced) 1 stmts
1 exec · 0 batches · 232 chars
Hibernate ORM 7.4.15.Final (not enhanced) 1 stmts
1 exec · 0 batches · 232 chars
Hibernate ORM 6.6.59.Final (enhanced) 1 stmts
1 exec · 0 batches · 232 chars
Hibernate ORM 7.4.15.Final (enhanced) 1 stmts
1 exec · 0 batches · 232 chars
EclipseLink 4.0.10 (not woven) 1 stmts
1 exec · 0 batches · 236 chars
EclipseLink 5.0.2 (not woven) 1 stmts
1 exec · 0 batches · 236 chars
EclipseLink 4.0.10 (woven) 1 stmts
1 exec · 0 batches · 236 chars
EclipseLink 5.0.2 (woven) 1 stmts
1 exec · 0 batches · 236 chars

dtoProjection

Apache OpenJPA 4.1.1 (enhanced) 1 stmts
1 exec · 0 batches · 192 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 1 stmts
1 exec · 0 batches · 192 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 1 stmts
1 exec · 0 batches · 192 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 1 stmts
1 exec · 0 batches · 192 chars
Hibernate ORM 6.6.59.Final (not enhanced) 1 stmts
1 exec · 0 batches · 206 chars
Hibernate ORM 7.4.15.Final (not enhanced) 1 stmts
1 exec · 0 batches · 206 chars
Hibernate ORM 6.6.59.Final (enhanced) 1 stmts
1 exec · 0 batches · 206 chars
Hibernate ORM 7.4.15.Final (enhanced) 1 stmts
1 exec · 0 batches · 206 chars
EclipseLink 4.0.10 (not woven) 1 stmts
1 exec · 0 batches · 204 chars
EclipseLink 5.0.2 (not woven) 1 stmts
1 exec · 0 batches · 204 chars
EclipseLink 4.0.10 (woven) 1 stmts
1 exec · 0 batches · 204 chars
EclipseLink 5.0.2 (woven) 1 stmts
1 exec · 0 batches · 204 chars

findById

Apache OpenJPA 4.1.1 (enhanced) 1 stmts
1 exec · 0 batches · 139 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 1 stmts
1 exec · 0 batches · 139 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 1 stmts
1 exec · 0 batches · 139 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 1 stmts
1 exec · 0 batches · 139 chars
Hibernate ORM 6.6.59.Final (not enhanced) 1 stmts
1 exec · 0 batches · 151 chars
Hibernate ORM 7.4.15.Final (not enhanced) 1 stmts
1 exec · 0 batches · 151 chars
Hibernate ORM 6.6.59.Final (enhanced) 1 stmts
1 exec · 0 batches · 151 chars
Hibernate ORM 7.4.15.Final (enhanced) 1 stmts
1 exec · 0 batches · 151 chars
EclipseLink 4.0.10 (not woven) 1 stmts
1 exec · 0 batches · 108 chars
EclipseLink 5.0.2 (not woven) 1 stmts
1 exec · 0 batches · 108 chars
EclipseLink 4.0.10 (woven) 1 stmts
1 exec · 0 batches · 108 chars
EclipseLink 5.0.2 (woven) 1 stmts
1 exec · 0 batches · 108 chars

inheritanceJoinedQuery

Apache OpenJPA 4.1.1 (enhanced) 1 stmts
1 exec · 0 batches · 263 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 1 stmts
1 exec · 0 batches · 263 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 1 stmts
1 exec · 0 batches · 263 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 1 stmts
1 exec · 0 batches · 263 chars
Hibernate ORM 6.6.59.Final (not enhanced) 1 stmts
1 exec · 0 batches · 281 chars
Hibernate ORM 7.4.15.Final (not enhanced) 1 stmts
1 exec · 0 batches · 281 chars
Hibernate ORM 6.6.59.Final (enhanced) 1 stmts
1 exec · 0 batches · 281 chars
Hibernate ORM 7.4.15.Final (enhanced) 1 stmts
1 exec · 0 batches · 281 chars
EclipseLink 4.0.10 (not woven) 1 stmts
1 exec · 0 batches · 273 chars
EclipseLink 5.0.2 (not woven) 1 stmts
1 exec · 0 batches · 273 chars
EclipseLink 4.0.10 (woven) 1 stmts
1 exec · 0 batches · 273 chars
EclipseLink 5.0.2 (woven) 1 stmts
1 exec · 0 batches · 273 chars

inheritanceSingleTableQuery

Apache OpenJPA 4.1.1 (enhanced) 1 stmts
1 exec · 0 batches · 165 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 1 stmts
1 exec · 0 batches · 165 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 1 stmts
1 exec · 0 batches · 165 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 1 stmts
1 exec · 0 batches · 165 chars
Hibernate ORM 6.6.59.Final (not enhanced) 1 stmts
1 exec · 0 batches · 181 chars
Hibernate ORM 7.4.15.Final (not enhanced) 1 stmts
1 exec · 0 batches · 181 chars
Hibernate ORM 6.6.59.Final (enhanced) 1 stmts
1 exec · 0 batches · 181 chars
Hibernate ORM 7.4.15.Final (enhanced) 1 stmts
1 exec · 0 batches · 181 chars
EclipseLink 4.0.10 (not woven) 1 stmts
1 exec · 0 batches · 124 chars
EclipseLink 5.0.2 (not woven) 1 stmts
1 exec · 0 batches · 124 chars
EclipseLink 4.0.10 (woven) 1 stmts
1 exec · 0 batches · 124 chars
EclipseLink 5.0.2 (woven) 1 stmts
1 exec · 0 batches · 124 chars

joinFetch

Apache OpenJPA 4.1.1 (enhanced) 1 stmts
1 exec · 0 batches · 427 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 1 stmts
1 exec · 0 batches · 427 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 1 stmts
1 exec · 0 batches · 427 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 1 stmts
1 exec · 0 batches · 427 chars
Hibernate ORM 6.6.59.Final (not enhanced) 1 stmts
1 exec · 0 batches · 451 chars
Hibernate ORM 7.4.15.Final (not enhanced) 1 stmts
1 exec · 0 batches · 451 chars
Hibernate ORM 6.6.59.Final (enhanced) 1 stmts
1 exec · 0 batches · 451 chars
Hibernate ORM 7.4.15.Final (enhanced) 1 stmts
1 exec · 0 batches · 451 chars
EclipseLink 4.0.10 (not woven) 57.47 stmts
57.47 exec · 0 batches · 3,513 chars
EclipseLink 5.0.2 (not woven) 57.44 stmts
57.44 exec · 0 batches · 3,512 chars
EclipseLink 4.0.10 (woven) 1 stmts
1 exec · 0 batches · 408 chars
EclipseLink 5.0.2 (woven) 1 stmts
1 exec · 0 batches · 408 chars

jpqlByIndexedAttribute

Apache OpenJPA 4.1.1 (enhanced) 1 stmts
1 exec · 0 batches · 144 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 1 stmts
1 exec · 0 batches · 144 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 1 stmts
1 exec · 0 batches · 144 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 1 stmts
1 exec · 0 batches · 144 chars
Hibernate ORM 6.6.59.Final (not enhanced) 1 stmts
1 exec · 0 batches · 154 chars
Hibernate ORM 7.4.15.Final (not enhanced) 1 stmts
1 exec · 0 batches · 154 chars
Hibernate ORM 6.6.59.Final (enhanced) 1 stmts
1 exec · 0 batches · 154 chars
Hibernate ORM 7.4.15.Final (enhanced) 1 stmts
1 exec · 0 batches · 154 chars
EclipseLink 4.0.10 (not woven) 1 stmts
1 exec · 0 batches · 111 chars
EclipseLink 5.0.2 (not woven) 1 stmts
1 exec · 0 batches · 111 chars
EclipseLink 4.0.10 (woven) 1 stmts
1 exec · 0 batches · 111 chars
EclipseLink 5.0.2 (woven) 1 stmts
1 exec · 0 batches · 111 chars

lazyNavigationNPlusOne

Apache OpenJPA 4.1.1 (enhanced) 40.81 stmts
40.81 exec · 0 batches · 5,317 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 40.81 stmts
40.81 exec · 0 batches · 5,317 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 40.82 stmts
40.82 exec · 0 batches · 5,318 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 40.82 stmts
40.82 exec · 0 batches · 5,318 chars
Hibernate ORM 6.6.59.Final (not enhanced) 40.82 stmts
40.82 exec · 0 batches · 5,748 chars
Hibernate ORM 7.4.15.Final (not enhanced) 40.81 stmts
40.81 exec · 0 batches · 5,747 chars
Hibernate ORM 6.6.59.Final (enhanced) 40.81 stmts
40.81 exec · 0 batches · 5,747 chars
Hibernate ORM 7.4.15.Final (enhanced) 40.82 stmts
40.82 exec · 0 batches · 5,748 chars
EclipseLink 4.0.10 (not woven) 97.05 stmts
97.05 exec · 0 batches · 7,321 chars
EclipseLink 5.0.2 (not woven) 97.11 stmts
97.11 exec · 0 batches · 7,324 chars
EclipseLink 4.0.10 (woven) 40.81 stmts
40.81 exec · 0 batches · 4,228 chars
EclipseLink 5.0.2 (woven) 40.8 stmts
40.8 exec · 0 batches · 4,227 chars

manyToManyAndElementCollection

Apache OpenJPA 4.1.1 (enhanced) 21 stmts
21 exec · 0 batches · 1,868 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 21 stmts
21 exec · 0 batches · 1,868 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 21 stmts
21 exec · 0 batches · 1,868 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 21 stmts
21 exec · 0 batches · 1,868 chars
Hibernate ORM 6.6.59.Final (not enhanced) 21 stmts
21 exec · 0 batches · 2,259 chars
Hibernate ORM 7.4.15.Final (not enhanced) 21 stmts
21 exec · 0 batches · 2,259 chars
Hibernate ORM 6.6.59.Final (enhanced) 21 stmts
21 exec · 0 batches · 2,259 chars
Hibernate ORM 7.4.15.Final (enhanced) 21 stmts
21 exec · 0 batches · 2,259 chars
EclipseLink 4.0.10 (not woven) 21 stmts
21 exec · 0 batches · 1,829 chars
EclipseLink 5.0.2 (not woven) 21 stmts
21 exec · 0 batches · 1,829 chars
EclipseLink 4.0.10 (woven) 21 stmts
21 exec · 0 batches · 1,829 chars
EclipseLink 5.0.2 (woven) 21 stmts
21 exec · 0 batches · 1,829 chars

pagination

Apache OpenJPA 4.1.1 (enhanced) 2 stmts
2 exec · 0 batches · 225 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 2 stmts
2 exec · 0 batches · 225 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 2 stmts
2 exec · 0 batches · 225 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 2 stmts
2 exec · 0 batches · 225 chars
Hibernate ORM 6.6.59.Final (not enhanced) 2 stmts
2 exec · 0 batches · 272 chars
Hibernate ORM 7.4.15.Final (not enhanced) 2 stmts
2 exec · 0 batches · 272 chars
Hibernate ORM 6.6.59.Final (enhanced) 2 stmts
2 exec · 0 batches · 272 chars
Hibernate ORM 7.4.15.Final (enhanced) 2 stmts
2 exec · 0 batches · 272 chars
EclipseLink 4.0.10 (not woven) 21.9 stmts
21.9 exec · 0 batches · 2,372 chars
EclipseLink 5.0.2 (not woven) 21.9 stmts
21.9 exec · 0 batches · 2,372 chars
EclipseLink 4.0.10 (woven) 2 stmts
2 exec · 0 batches · 223 chars
EclipseLink 5.0.2 (woven) 2 stmts
2 exec · 0 batches · 223 chars

persistBatch

Apache OpenJPA 4.1.1 (enhanced) 200 stmts
4 exec · 4 batches · 416 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 200 stmts
4 exec · 4 batches · 416 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 200 stmts
4 exec · 4 batches · 416 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 200 stmts
4 exec · 4 batches · 416 chars
Hibernate ORM 6.6.59.Final (not enhanced) 200 stmts
4 exec · 4 batches · 376 chars
Hibernate ORM 7.4.15.Final (not enhanced) 200 stmts
4 exec · 4 batches · 376 chars
Hibernate ORM 6.6.59.Final (enhanced) 200 stmts
4 exec · 4 batches · 376 chars
Hibernate ORM 7.4.15.Final (enhanced) 200 stmts
4 exec · 4 batches · 376 chars
EclipseLink 4.0.10 (not woven) 378.82 stmts
182.82 exec · 4 batches · 12,843 chars
EclipseLink 5.0.2 (not woven) 378.82 stmts
182.82 exec · 4 batches · 12,843 chars
EclipseLink 4.0.10 (woven) 200 stmts
4 exec · 4 batches · 416 chars
EclipseLink 5.0.2 (woven) 200 stmts
4 exec · 4 batches · 416 chars

removeBatch

Apache OpenJPA 4.1.1 (enhanced) 429.19 stmts
233.19 exec · 4 batches · 21,394 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 429.19 stmts
233.19 exec · 4 batches · 21,394 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 429.19 stmts
233.19 exec · 4 batches · 21,394 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 429.19 stmts
233.19 exec · 4 batches · 21,394 chars
Hibernate ORM 6.6.59.Final (not enhanced) 251 stmts
151 exec · 100 batches · 10,438 chars
Hibernate ORM 7.4.15.Final (not enhanced) 251 stmts
151 exec · 100 batches · 10,438 chars
Hibernate ORM 6.6.59.Final (enhanced) 251 stmts
151 exec · 100 batches · 10,438 chars
Hibernate ORM 7.4.15.Final (enhanced) 251 stmts
151 exec · 100 batches · 10,438 chars
EclipseLink 4.0.10 (not woven) 429.19 stmts
233.19 exec · 4 batches · 17,600 chars
EclipseLink 5.0.2 (not woven) 429.19 stmts
233.19 exec · 4 batches · 17,600 chars
EclipseLink 4.0.10 (woven) 251 stmts
55 exec · 4 batches · 5,211 chars
EclipseLink 5.0.2 (woven) 251 stmts
55 exec · 4 batches · 5,211 chars

resultStream

Apache OpenJPA 4.1.1 (enhanced) 1 stmts
1 exec · 0 batches · 144 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 1 stmts
1 exec · 0 batches · 144 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 1 stmts
1 exec · 0 batches · 144 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 1 stmts
1 exec · 0 batches · 144 chars
Hibernate ORM 6.6.59.Final (not enhanced) 1 stmts
1 exec · 0 batches · 156 chars
Hibernate ORM 7.4.15.Final (not enhanced) 1 stmts
1 exec · 0 batches · 156 chars
Hibernate ORM 6.6.59.Final (enhanced) 1 stmts
1 exec · 0 batches · 156 chars
Hibernate ORM 7.4.15.Final (enhanced) 1 stmts
1 exec · 0 batches · 156 chars
EclipseLink 4.0.10 (not woven) 867.65 stmts
867.65 exec · 0 batches · 93,706 chars
EclipseLink 5.0.2 (not woven) 867.65 stmts
867.65 exec · 0 batches · 93,706 chars
EclipseLink 4.0.10 (woven) 1 stmts
1 exec · 0 batches · 109 chars
EclipseLink 5.0.2 (woven) 1 stmts
1 exec · 0 batches · 109 chars

updateDirtyChecking

Apache OpenJPA 4.1.1 (enhanced) 51 stmts
8.18 exec · 3.94 batches · 681 chars
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 51 stmts
8.18 exec · 3.94 batches · 681 chars
Apache OpenJPA 4.1.1 (runtime enhanced) 51 stmts
8.18 exec · 3.94 batches · 681 chars
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 51 stmts
8.18 exec · 3.94 batches · 681 chars
Hibernate ORM 6.6.59.Final (not enhanced) 51 stmts
2 exec · 1 batches · 252 chars
Hibernate ORM 7.4.15.Final (not enhanced) 51 stmts
2 exec · 1 batches · 252 chars
Hibernate ORM 6.6.59.Final (enhanced) 51 stmts
2 exec · 1 batches · 252 chars
Hibernate ORM 7.4.15.Final (enhanced) 51 stmts
2 exec · 1 batches · 252 chars
EclipseLink 4.0.10 (not woven) 99.87 stmts
57.05 exec · 3.94 batches · 5,967 chars
EclipseLink 5.0.2 (not woven) 99.87 stmts
57.05 exec · 3.94 batches · 5,967 chars
EclipseLink 4.0.10 (woven) 51 stmts
8.18 exec · 3.94 batches · 689 chars
EclipseLink 5.0.2 (woven) 51 stmts
8.18 exec · 3.94 batches · 689 chars
Statement metrics table
BenchmarkProviderSELECTINSERTUPDATEDELETEotherstatementsstatement executionsJDBC batchesbatched rowsSQL charslongest SELECT (chars)joined tables in SELECTsconnections acquiredcommitsrollbacksConnection.set* callsstatements prepared
aggregationGroupByApache OpenJPA 4.1.1 (enhanced)1.0000001.001.0000195.0195.01.001.00001.001.00
aggregationGroupByApache OpenJPA 4.2.0-SNAPSHOT (enhanced)1.0000001.001.0000195.0195.01.001.00001.001.00
aggregationGroupByApache OpenJPA 4.1.1 (runtime enhanced)1.0000001.001.0000195.0195.01.001.00001.001.00
aggregationGroupByApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)1.0000001.001.0000195.0195.01.001.00001.001.00
aggregationGroupByHibernate ORM 6.6.59.Final (not enhanced)1.0000001.001.0000192.0192.01.001.001.00001.00
aggregationGroupByHibernate ORM 7.4.15.Final (not enhanced)1.0000001.001.0000192.0192.01.001.001.00001.00
aggregationGroupByHibernate ORM 6.6.59.Final (enhanced)1.0000001.001.0000192.0192.01.001.001.00001.00
aggregationGroupByHibernate ORM 7.4.15.Final (enhanced)1.0000001.001.0000192.0192.01.001.001.00001.00
aggregationGroupByEclipseLink 4.0.10 (not woven)1.0000001.001.0000174.0174.01.001.001.0002.001.00
aggregationGroupByEclipseLink 5.0.2 (not woven)1.0000001.001.0000174.0174.01.001.001.0002.001.00
aggregationGroupByEclipseLink 4.0.10 (woven)1.0000001.001.0000174.0174.01.001.001.0002.001.00
aggregationGroupByEclipseLink 5.0.2 (woven)1.0000001.001.0000174.0174.01.001.001.0002.001.00
bulkDeleteApache OpenJPA 4.1.1 (enhanced)0002.0002.002.0000226.0001.001.0003.002.00
bulkDeleteApache OpenJPA 4.2.0-SNAPSHOT (enhanced)0002.0002.002.0000226.0001.001.0003.002.00
bulkDeleteApache OpenJPA 4.1.1 (runtime enhanced)0002.0002.002.0000226.0001.001.0003.002.00
bulkDeleteApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)0002.0002.002.0000226.0001.001.0003.002.00
bulkDeleteHibernate ORM 6.6.59.Final (not enhanced)0002.0002.002.0000120.0001.001.00002.00
bulkDeleteHibernate ORM 7.4.15.Final (not enhanced)0002.0002.002.0000120.0001.001.00002.00
bulkDeleteHibernate ORM 6.6.59.Final (enhanced)0002.0002.002.0000120.0001.001.00002.00
bulkDeleteHibernate ORM 7.4.15.Final (enhanced)0002.0002.002.0000120.0001.001.00002.00
bulkDeleteEclipseLink 4.0.10 (not woven)0002.0002.002.0000208.0001.001.0002.002.00
bulkDeleteEclipseLink 5.0.2 (not woven)0002.0002.002.0000208.0001.001.0002.002.00
bulkDeleteEclipseLink 4.0.10 (woven)0002.0002.002.0000208.0001.001.0002.002.00
bulkDeleteEclipseLink 5.0.2 (woven)0002.0002.002.0000208.0001.001.0002.002.00
bulkUpdateApache OpenJPA 4.1.1 (enhanced)001.00001.001.0000136.0001.001.0003.001.00
bulkUpdateApache OpenJPA 4.2.0-SNAPSHOT (enhanced)001.00001.001.0000136.0001.001.0003.001.00
bulkUpdateApache OpenJPA 4.1.1 (runtime enhanced)001.00001.001.0000136.0001.001.0003.001.00
bulkUpdateApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)001.00001.001.0000136.0001.001.0003.001.00
bulkUpdateHibernate ORM 6.6.59.Final (not enhanced)001.00001.001.000063.00001.001.00001.00
bulkUpdateHibernate ORM 7.4.15.Final (not enhanced)001.00001.001.000063.00001.001.00001.00
bulkUpdateHibernate ORM 6.6.59.Final (enhanced)001.00001.001.000063.00001.001.00001.00
bulkUpdateHibernate ORM 7.4.15.Final (enhanced)001.00001.001.000063.00001.001.00001.00
bulkUpdateEclipseLink 4.0.10 (not woven)001.00001.001.000080.00001.001.0002.001.00
bulkUpdateEclipseLink 5.0.2 (not woven)001.00001.001.000080.00001.001.0002.001.00
bulkUpdateEclipseLink 4.0.10 (woven)001.00001.001.000080.00001.001.0002.001.00
bulkUpdateEclipseLink 5.0.2 (woven)001.00001.001.000080.00001.001.0002.001.00
criteriaQueryApache OpenJPA 4.1.1 (enhanced)1.0000001.001.0000211.0211.001.00001.001.00
criteriaQueryApache OpenJPA 4.2.0-SNAPSHOT (enhanced)1.0000001.001.0000211.0211.001.00001.001.00
criteriaQueryApache OpenJPA 4.1.1 (runtime enhanced)1.0000001.001.0000211.0211.001.00001.001.00
criteriaQueryApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)1.0000001.001.0000211.0211.001.00001.001.00
criteriaQueryHibernate ORM 6.6.59.Final (not enhanced)1.0000001.001.0000232.0232.001.001.00001.00
criteriaQueryHibernate ORM 7.4.15.Final (not enhanced)1.0000001.001.0000232.0232.001.001.00001.00
criteriaQueryHibernate ORM 6.6.59.Final (enhanced)1.0000001.001.0000232.0232.001.001.00001.00
criteriaQueryHibernate ORM 7.4.15.Final (enhanced)1.0000001.001.0000232.0232.001.001.00001.00
criteriaQueryEclipseLink 4.0.10 (not woven)1.0000001.001.0000236.0236.001.001.0002.001.00
criteriaQueryEclipseLink 5.0.2 (not woven)1.0000001.001.0000236.0236.001.001.0002.001.00
criteriaQueryEclipseLink 4.0.10 (woven)1.0000001.001.0000236.0236.001.001.0002.001.00
criteriaQueryEclipseLink 5.0.2 (woven)1.0000001.001.0000236.0236.001.001.0002.001.00
dtoProjectionApache OpenJPA 4.1.1 (enhanced)1.0000001.001.0000192.0192.01.001.00001.001.00
dtoProjectionApache OpenJPA 4.2.0-SNAPSHOT (enhanced)1.0000001.001.0000192.0192.01.001.00001.001.00
dtoProjectionApache OpenJPA 4.1.1 (runtime enhanced)1.0000001.001.0000192.0192.01.001.00001.001.00
dtoProjectionApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)1.0000001.001.0000192.0192.01.001.00001.001.00
dtoProjectionHibernate ORM 6.6.59.Final (not enhanced)1.0000001.001.0000206.0206.01.001.001.00001.00
dtoProjectionHibernate ORM 7.4.15.Final (not enhanced)1.0000001.001.0000206.0206.01.001.001.00001.00
dtoProjectionHibernate ORM 6.6.59.Final (enhanced)1.0000001.001.0000206.0206.01.001.001.00001.00
dtoProjectionHibernate ORM 7.4.15.Final (enhanced)1.0000001.001.0000206.0206.01.001.001.00001.00
dtoProjectionEclipseLink 4.0.10 (not woven)1.0000001.001.0000204.0204.01.001.001.0002.001.00
dtoProjectionEclipseLink 5.0.2 (not woven)1.0000001.001.0000204.0204.01.001.001.0002.001.00
dtoProjectionEclipseLink 4.0.10 (woven)1.0000001.001.0000204.0204.01.001.001.0002.001.00
dtoProjectionEclipseLink 5.0.2 (woven)1.0000001.001.0000204.0204.01.001.001.0002.001.00
findByIdApache OpenJPA 4.1.1 (enhanced)1.0000001.001.0000139.0139.001.00001.001.00
findByIdApache OpenJPA 4.2.0-SNAPSHOT (enhanced)1.0000001.001.0000139.0139.001.00001.001.00
findByIdApache OpenJPA 4.1.1 (runtime enhanced)1.0000001.001.0000139.0139.001.00001.001.00
findByIdApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)1.0000001.001.0000139.0139.001.00001.001.00
findByIdHibernate ORM 6.6.59.Final (not enhanced)1.0000001.001.0000151.0151.001.001.00001.00
findByIdHibernate ORM 7.4.15.Final (not enhanced)1.0000001.001.0000151.0151.001.001.00001.00
findByIdHibernate ORM 6.6.59.Final (enhanced)1.0000001.001.0000151.0151.001.001.00001.00
findByIdHibernate ORM 7.4.15.Final (enhanced)1.0000001.001.0000151.0151.001.001.00001.00
findByIdEclipseLink 4.0.10 (not woven)1.0000001.001.0000108.0108.001.001.0002.001.00
findByIdEclipseLink 5.0.2 (not woven)1.0000001.001.0000108.0108.001.001.0002.001.00
findByIdEclipseLink 4.0.10 (woven)1.0000001.001.0000108.0108.001.001.0002.001.00
findByIdEclipseLink 5.0.2 (woven)1.0000001.001.0000108.0108.001.001.0002.001.00
inheritanceJoinedQueryApache OpenJPA 4.1.1 (enhanced)1.0000001.001.0000263.0263.02.001.00001.001.00
inheritanceJoinedQueryApache OpenJPA 4.2.0-SNAPSHOT (enhanced)1.0000001.001.0000263.0263.02.001.00001.001.00
inheritanceJoinedQueryApache OpenJPA 4.1.1 (runtime enhanced)1.0000001.001.0000263.0263.02.001.00001.001.00
inheritanceJoinedQueryApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)1.0000001.001.0000263.0263.02.001.00001.001.00
inheritanceJoinedQueryHibernate ORM 6.6.59.Final (not enhanced)1.0000001.001.0000281.0281.02.001.001.00001.00
inheritanceJoinedQueryHibernate ORM 7.4.15.Final (not enhanced)1.0000001.001.0000281.0281.02.001.001.00001.00
inheritanceJoinedQueryHibernate ORM 6.6.59.Final (enhanced)1.0000001.001.0000281.0281.02.001.001.00001.00
inheritanceJoinedQueryHibernate ORM 7.4.15.Final (enhanced)1.0000001.001.0000281.0281.02.001.001.00001.00
inheritanceJoinedQueryEclipseLink 4.0.10 (not woven)1.0000001.001.0000273.0273.02.001.001.0002.001.00
inheritanceJoinedQueryEclipseLink 5.0.2 (not woven)1.0000001.001.0000273.0273.02.001.001.0002.001.00
inheritanceJoinedQueryEclipseLink 4.0.10 (woven)1.0000001.001.0000273.0273.02.001.001.0002.001.00
inheritanceJoinedQueryEclipseLink 5.0.2 (woven)1.0000001.001.0000273.0273.02.001.001.0002.001.00
inheritanceSingleTableQueryApache OpenJPA 4.1.1 (enhanced)1.0000001.001.0000165.0165.001.00001.001.00
inheritanceSingleTableQueryApache OpenJPA 4.2.0-SNAPSHOT (enhanced)1.0000001.001.0000165.0165.001.00001.001.00
inheritanceSingleTableQueryApache OpenJPA 4.1.1 (runtime enhanced)1.0000001.001.0000165.0165.001.00001.001.00
inheritanceSingleTableQueryApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)1.0000001.001.0000165.0165.001.00001.001.00
inheritanceSingleTableQueryHibernate ORM 6.6.59.Final (not enhanced)1.0000001.001.0000181.0181.001.001.00001.00
inheritanceSingleTableQueryHibernate ORM 7.4.15.Final (not enhanced)1.0000001.001.0000181.0181.001.001.00001.00
inheritanceSingleTableQueryHibernate ORM 6.6.59.Final (enhanced)1.0000001.001.0000181.0181.001.001.00001.00
inheritanceSingleTableQueryHibernate ORM 7.4.15.Final (enhanced)1.0000001.001.0000181.0181.001.001.00001.00
inheritanceSingleTableQueryEclipseLink 4.0.10 (not woven)1.0000001.001.0000124.0124.001.001.0002.001.00
inheritanceSingleTableQueryEclipseLink 5.0.2 (not woven)1.0000001.001.0000124.0124.001.001.0002.001.00
inheritanceSingleTableQueryEclipseLink 4.0.10 (woven)1.0000001.001.0000124.0124.001.001.0002.001.00
inheritanceSingleTableQueryEclipseLink 5.0.2 (woven)1.0000001.001.0000124.0124.001.001.0002.001.00
joinFetchApache OpenJPA 4.1.1 (enhanced)1.0000001.001.0000427.0427.02.001.00001.001.00
joinFetchApache OpenJPA 4.2.0-SNAPSHOT (enhanced)1.0000001.001.0000427.0427.02.001.00001.001.00
joinFetchApache OpenJPA 4.1.1 (runtime enhanced)1.0000001.001.0000427.0427.02.001.00001.001.00
joinFetchApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)1.0000001.001.0000427.0427.02.001.00001.001.00
joinFetchHibernate ORM 6.6.59.Final (not enhanced)1.0000001.001.0000451.0451.02.001.001.00001.00
joinFetchHibernate ORM 7.4.15.Final (not enhanced)1.0000001.001.0000451.0451.02.001.001.00001.00
joinFetchHibernate ORM 6.6.59.Final (enhanced)1.0000001.001.0000451.0451.02.001.001.00001.00
joinFetchHibernate ORM 7.4.15.Final (enhanced)1.0000001.001.0000451.0451.02.001.001.00001.00
joinFetchEclipseLink 4.0.10 (not woven)57.47000057.4757.47003,514408.02.001.001.0002.0057.47
joinFetchEclipseLink 5.0.2 (not woven)57.44000057.4457.44003,512408.02.001.001.0002.0057.44
joinFetchEclipseLink 4.0.10 (woven)1.0000001.001.0000408.0408.02.001.001.0002.001.00
joinFetchEclipseLink 5.0.2 (woven)1.0000001.001.0000408.0408.02.001.001.0002.001.00
jpqlByIndexedAttributeApache OpenJPA 4.1.1 (enhanced)1.0000001.001.0000144.0144.001.00001.001.00
jpqlByIndexedAttributeApache OpenJPA 4.2.0-SNAPSHOT (enhanced)1.0000001.001.0000144.0144.001.00001.001.00
jpqlByIndexedAttributeApache OpenJPA 4.1.1 (runtime enhanced)1.0000001.001.0000144.0144.001.00001.001.00
jpqlByIndexedAttributeApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)1.0000001.001.0000144.0144.001.00001.001.00
jpqlByIndexedAttributeHibernate ORM 6.6.59.Final (not enhanced)1.0000001.001.0000154.0154.001.001.00001.00
jpqlByIndexedAttributeHibernate ORM 7.4.15.Final (not enhanced)1.0000001.001.0000154.0154.001.001.00001.00
jpqlByIndexedAttributeHibernate ORM 6.6.59.Final (enhanced)1.0000001.001.0000154.0154.001.001.00001.00
jpqlByIndexedAttributeHibernate ORM 7.4.15.Final (enhanced)1.0000001.001.0000154.0154.001.001.00001.00
jpqlByIndexedAttributeEclipseLink 4.0.10 (not woven)1.0000001.001.0000111.0111.001.001.0002.001.00
jpqlByIndexedAttributeEclipseLink 5.0.2 (not woven)1.0000001.001.0000111.0111.001.001.0002.001.00
jpqlByIndexedAttributeEclipseLink 4.0.10 (woven)1.0000001.001.0000111.0111.001.001.0002.001.00
jpqlByIndexedAttributeEclipseLink 5.0.2 (woven)1.0000001.001.0000111.0111.001.001.0002.001.00
lazyNavigationNPlusOneApache OpenJPA 4.1.1 (enhanced)40.81000040.8140.81005,317144.0040.810040.8140.81
lazyNavigationNPlusOneApache OpenJPA 4.2.0-SNAPSHOT (enhanced)40.81000040.8140.81005,318144.0040.810040.8140.81
lazyNavigationNPlusOneApache OpenJPA 4.1.1 (runtime enhanced)40.82000040.8240.82005,319144.0040.820040.8240.82
lazyNavigationNPlusOneApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)40.82000040.8240.82005,319144.0040.820040.8240.82
lazyNavigationNPlusOneHibernate ORM 6.6.59.Final (not enhanced)40.82000040.8240.82005,749156.001.001.000040.82
lazyNavigationNPlusOneHibernate ORM 7.4.15.Final (not enhanced)40.81000040.8140.81005,748156.001.001.000040.81
lazyNavigationNPlusOneHibernate ORM 6.6.59.Final (enhanced)40.81000040.8140.81005,748156.001.001.000040.81
lazyNavigationNPlusOneHibernate ORM 7.4.15.Final (enhanced)40.82000040.8240.82005,748156.001.001.000040.82
lazyNavigationNPlusOneEclipseLink 4.0.10 (not woven)97.05000097.0597.05007,322109.001.001.0002.0097.05
lazyNavigationNPlusOneEclipseLink 5.0.2 (not woven)97.11000097.1197.11007,325109.001.001.0002.0097.11
lazyNavigationNPlusOneEclipseLink 4.0.10 (woven)40.81000040.8140.81004,228109.001.001.0002.0040.81
lazyNavigationNPlusOneEclipseLink 5.0.2 (woven)40.80000040.8040.80004,228109.001.001.0002.0040.80
manyToManyAndElementCollectionApache OpenJPA 4.1.1 (enhanced)21.00000021.0021.00001,868119.010.0021.000021.0021.00
manyToManyAndElementCollectionApache OpenJPA 4.2.0-SNAPSHOT (enhanced)21.00000021.0021.00001,868119.010.0021.000021.0021.00
manyToManyAndElementCollectionApache OpenJPA 4.1.1 (runtime enhanced)21.00000021.0021.00001,868119.010.0021.000021.0021.00
manyToManyAndElementCollectionApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)21.00000021.0021.00001,868119.010.0021.000021.0021.00
manyToManyAndElementCollectionHibernate ORM 6.6.59.Final (not enhanced)21.00000021.0021.00002,259138.010.001.001.000021.00
manyToManyAndElementCollectionHibernate ORM 7.4.15.Final (not enhanced)21.00000021.0021.00002,259138.010.001.001.000021.00
manyToManyAndElementCollectionHibernate ORM 6.6.59.Final (enhanced)21.00000021.0021.00002,259138.010.001.001.000021.00
manyToManyAndElementCollectionHibernate ORM 7.4.15.Final (enhanced)21.00000021.0021.00002,259138.010.001.001.000021.00
manyToManyAndElementCollectionEclipseLink 4.0.10 (not woven)21.00000021.0021.00001,829116.010.001.001.0002.0021.00
manyToManyAndElementCollectionEclipseLink 5.0.2 (not woven)21.00000021.0021.00001,829116.010.001.001.0002.0021.00
manyToManyAndElementCollectionEclipseLink 4.0.10 (woven)21.00000021.0021.00001,829116.010.001.001.0002.0021.00
manyToManyAndElementCollectionEclipseLink 5.0.2 (woven)21.00000021.0021.00001,829116.010.001.001.0002.0021.00
paginationApache OpenJPA 4.1.1 (enhanced)2.0000002.002.0000225.8170.002.00002.002.00
paginationApache OpenJPA 4.2.0-SNAPSHOT (enhanced)2.0000002.002.0000225.8170.002.00002.002.00
paginationApache OpenJPA 4.1.1 (runtime enhanced)2.0000002.002.0000225.8170.002.00002.002.00
paginationApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)2.0000002.002.0000225.8170.002.00002.002.00
paginationHibernate ORM 6.6.59.Final (not enhanced)2.0000002.002.0000272.0211.001.001.00002.00
paginationHibernate ORM 7.4.15.Final (not enhanced)2.0000002.002.0000272.0211.001.001.00002.00
paginationHibernate ORM 6.6.59.Final (enhanced)2.0000002.002.0000272.0211.001.001.00002.00
paginationHibernate ORM 7.4.15.Final (enhanced)2.0000002.002.0000272.0211.001.001.00002.00
paginationEclipseLink 4.0.10 (not woven)21.90000021.9021.90002,373176.001.001.0002.0021.90
paginationEclipseLink 5.0.2 (not woven)21.90000021.9021.90002,373176.001.001.0002.0021.90
paginationEclipseLink 4.0.10 (woven)2.0000002.002.0000223.0176.001.001.0002.002.00
paginationEclipseLink 5.0.2 (woven)2.0000002.002.0000223.0176.001.001.0002.002.00
persistBatchApache OpenJPA 4.1.1 (enhanced)0200.0000200.04.004.00200.0416.0001.001.0003.002.00
persistBatchApache OpenJPA 4.2.0-SNAPSHOT (enhanced)0200.0000200.04.004.00200.0416.0001.001.0003.002.00
persistBatchApache OpenJPA 4.1.1 (runtime enhanced)0200.0000200.04.004.00200.0416.0001.001.0003.002.00
persistBatchApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)0200.0000200.04.004.00200.0416.0001.001.0003.002.00
persistBatchHibernate ORM 6.6.59.Final (not enhanced)0200.0000200.04.004.00200.0376.0001.001.00002.00
persistBatchHibernate ORM 7.4.15.Final (not enhanced)0200.0000200.04.004.00200.0376.0001.001.00002.00
persistBatchHibernate ORM 6.6.59.Final (enhanced)0200.0000200.04.004.00200.0376.0001.001.00002.00
persistBatchHibernate ORM 7.4.15.Final (enhanced)0200.0000200.04.004.00200.0376.0001.001.00002.00
persistBatchEclipseLink 4.0.10 (not woven)178.8200.0000378.8182.84.00200.012,843108.001.001.0002.00182.8
persistBatchEclipseLink 5.0.2 (not woven)178.8200.0000378.8182.84.00200.012,843108.001.001.0002.00182.8
persistBatchEclipseLink 4.0.10 (woven)0200.0000200.04.004.00200.0416.0001.001.0002.004.00
persistBatchEclipseLink 5.0.2 (woven)0200.0000200.04.004.00200.0416.0001.001.0002.004.00
removeBatchApache OpenJPA 4.1.1 (enhanced)229.200200.00429.2233.24.00200.021,395139.0052.001.00054.00231.2
removeBatchApache OpenJPA 4.2.0-SNAPSHOT (enhanced)229.200200.00429.2233.24.00200.021,395139.0052.001.00054.00231.2
removeBatchApache OpenJPA 4.1.1 (runtime enhanced)229.200200.00429.2233.24.00200.021,395139.0052.001.00054.00231.2
removeBatchApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)229.200200.00429.2233.24.00200.021,395139.0052.001.00054.00231.2
removeBatchHibernate ORM 6.6.59.Final (not enhanced)51.0000200.00251.0151.0100.0200.010,438138.001.001.0000151.0
removeBatchHibernate ORM 7.4.15.Final (not enhanced)51.0000200.00251.0151.0100.0200.010,438138.001.001.0000151.0
removeBatchHibernate ORM 6.6.59.Final (enhanced)51.0000200.00251.0151.0100.0200.010,438138.001.001.0000151.0
removeBatchHibernate ORM 7.4.15.Final (enhanced)51.0000200.00251.0151.0100.0200.010,438138.001.001.0000151.0
removeBatchEclipseLink 4.0.10 (not woven)229.200200.00429.2233.24.00200.017,600108.001.001.0002.00233.2
removeBatchEclipseLink 5.0.2 (not woven)229.200200.00429.2233.24.00200.017,600108.001.001.0002.00233.2
removeBatchEclipseLink 4.0.10 (woven)51.0000200.00251.055.004.00200.05,21199.0001.001.0002.0055.00
removeBatchEclipseLink 5.0.2 (woven)51.0000200.00251.055.004.00200.05,21199.0001.001.0002.0055.00
resultStreamApache OpenJPA 4.1.1 (enhanced)1.0000001.001.0000144.0144.001.00001.001.00
resultStreamApache OpenJPA 4.2.0-SNAPSHOT (enhanced)1.0000001.001.0000144.0144.001.00001.001.00
resultStreamApache OpenJPA 4.1.1 (runtime enhanced)1.0000001.001.0000144.0144.001.00001.001.00
resultStreamApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)1.0000001.001.0000144.0144.001.00001.001.00
resultStreamHibernate ORM 6.6.59.Final (not enhanced)1.0000001.001.0000156.0156.001.001.00001.00
resultStreamHibernate ORM 7.4.15.Final (not enhanced)1.0000001.001.0000156.0156.001.001.00001.00
resultStreamHibernate ORM 6.6.59.Final (enhanced)1.0000001.001.0000156.0156.001.001.00001.00
resultStreamHibernate ORM 7.4.15.Final (enhanced)1.0000001.001.0000156.0156.001.001.00001.00
resultStreamEclipseLink 4.0.10 (not woven)867.60000867.6867.60093,707109.001.001.0002.00867.6
resultStreamEclipseLink 5.0.2 (not woven)867.60000867.6867.60093,707109.001.001.0002.00867.6
resultStreamEclipseLink 4.0.10 (woven)1.0000001.001.0000109.0109.001.001.0002.001.00
resultStreamEclipseLink 5.0.2 (woven)1.0000001.001.0000109.0109.001.001.0002.001.00
updateDirtyCheckingApache OpenJPA 4.1.1 (enhanced)1.00050.000051.008.183.9446.76681.1144.002.001.0004.008.18
updateDirtyCheckingApache OpenJPA 4.2.0-SNAPSHOT (enhanced)1.00050.000051.008.183.9446.76681.1144.002.001.0004.008.18
updateDirtyCheckingApache OpenJPA 4.1.1 (runtime enhanced)1.00050.000051.008.183.9446.76681.1144.002.001.0004.008.18
updateDirtyCheckingApache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)1.00050.000051.008.183.9446.76681.1144.002.001.0004.008.18
updateDirtyCheckingHibernate ORM 6.6.59.Final (not enhanced)1.00050.000051.002.001.0050.00252.0156.001.001.00002.00
updateDirtyCheckingHibernate ORM 7.4.15.Final (not enhanced)1.00050.000051.002.001.0050.00252.0156.001.001.00002.00
updateDirtyCheckingHibernate ORM 6.6.59.Final (enhanced)1.00050.000051.002.001.0050.00252.0156.001.001.00002.00
updateDirtyCheckingHibernate ORM 7.4.15.Final (enhanced)1.00050.000051.002.001.0050.00252.0156.001.001.00002.00
updateDirtyCheckingEclipseLink 4.0.10 (not woven)49.87050.000099.8757.053.9446.765,967109.001.001.0002.0057.05
updateDirtyCheckingEclipseLink 5.0.2 (not woven)49.87050.000099.8757.053.9446.765,967109.001.001.0002.0057.05
updateDirtyCheckingEclipseLink 4.0.10 (woven)1.00050.000051.008.183.9446.76689.1109.001.001.0002.008.18
updateDirtyCheckingEclipseLink 5.0.2 (woven)1.00050.000051.008.183.9446.76689.1109.001.001.0002.008.18

Per benchmark

aggregationGroupBy

Throughput (ops/ms, higher is better)

Average time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT t1.CITY, COUNT(t0.ID), SUM(t0.TOTAL) FROM ORDERS t0 INNER JOIN CUSTOMER t1 ON t0.CUSTOMER_ID = t1.ID WHERE (t0.ORDER_DATE >= ? AND t0.ORDER_DATE <= ?) GROUP BY t1.CITY ORDER BY t1.CITY ASC;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT t1.CITY, COUNT(t0.ID), SUM(t0.TOTAL) FROM ORDERS t0 INNER JOIN CUSTOMER t1 ON t0.CUSTOMER_ID = t1.ID WHERE (t0.ORDER_DATE >= ? AND t0.ORDER_DATE <= ?) GROUP BY t1.CITY ORDER BY t1.CITY ASC;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT t1.CITY, COUNT(t0.ID), SUM(t0.TOTAL) FROM ORDERS t0 INNER JOIN CUSTOMER t1 ON t0.CUSTOMER_ID = t1.ID WHERE (t0.ORDER_DATE >= ? AND t0.ORDER_DATE <= ?) GROUP BY t1.CITY ORDER BY t1.CITY ASC;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT t1.CITY, COUNT(t0.ID), SUM(t0.TOTAL) FROM ORDERS t0 INNER JOIN CUSTOMER t1 ON t0.CUSTOMER_ID = t1.ID WHERE (t0.ORDER_DATE >= ? AND t0.ORDER_DATE <= ?) GROUP BY t1.CITY ORDER BY t1.CITY ASC;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select c1_0.CITY,count(po1_0.ID),sum(po1_0.TOTAL) from ORDERS po1_0 join CUSTOMER c1_0 on c1_0.ID=po1_0.CUSTOMER_ID where po1_0.ORDER_DATE between ? and ? group by c1_0.CITY order by c1_0.CITY;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select c1_0.CITY,count(po1_0.ID),sum(po1_0.TOTAL) from ORDERS po1_0 join CUSTOMER c1_0 on c1_0.ID=po1_0.CUSTOMER_ID where po1_0.ORDER_DATE between ? and ? group by c1_0.CITY order by c1_0.CITY;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select c1_0.CITY,count(po1_0.ID),sum(po1_0.TOTAL) from ORDERS po1_0 join CUSTOMER c1_0 on c1_0.ID=po1_0.CUSTOMER_ID where po1_0.ORDER_DATE between ? and ? group by c1_0.CITY order by c1_0.CITY;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select c1_0.CITY,count(po1_0.ID),sum(po1_0.TOTAL) from ORDERS po1_0 join CUSTOMER c1_0 on c1_0.ID=po1_0.CUSTOMER_ID where po1_0.ORDER_DATE between ? and ? group by c1_0.CITY order by c1_0.CITY;
SELECT t0.CITY, COUNT(t1.ID), SUM(t1.TOTAL) FROM CUSTOMER t0, ORDERS t1 WHERE ((t1.ORDER_DATE BETWEEN ? AND ?) AND (t0.ID = t1.CUSTOMER_ID)) GROUP BY t0.CITY ORDER BY t0.CITY;
SELECT t0.CITY, COUNT(t1.ID), SUM(t1.TOTAL) FROM CUSTOMER t0, ORDERS t1 WHERE ((t1.ORDER_DATE BETWEEN ? AND ?) AND (t0.ID = t1.CUSTOMER_ID)) GROUP BY t0.CITY ORDER BY t0.CITY;
SELECT t0.CITY, COUNT(t1.ID), SUM(t1.TOTAL) FROM CUSTOMER t0, ORDERS t1 WHERE ((t1.ORDER_DATE BETWEEN ? AND ?) AND (t0.ID = t1.CUSTOMER_ID)) GROUP BY t0.CITY ORDER BY t0.CITY;
SELECT t0.CITY, COUNT(t1.ID), SUM(t1.TOTAL) FROM CUSTOMER t0, ORDERS t1 WHERE ((t1.ORDER_DATE BETWEEN ? AND ?) AND (t0.ID = t1.CUSTOMER_ID)) GROUP BY t0.CITY ORDER BY t0.CITY;
bulkDelete

Single shot time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
DELETE FROM ORDER_LINE WHERE ID IN (SELECT DISTINCT t0.ID FROM ORDER_LINE t0 WHERE (t0.ORDER_ID >= ? AND t0.ORDER_ID <= ?));

DELETE FROM ORDERS WHERE ID IN (SELECT DISTINCT t0.ID FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?));
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
DELETE FROM ORDER_LINE WHERE ID IN (SELECT DISTINCT t0.ID FROM ORDER_LINE t0 WHERE (t0.ORDER_ID >= ? AND t0.ORDER_ID <= ?));

DELETE FROM ORDERS WHERE ID IN (SELECT DISTINCT t0.ID FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?));
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
DELETE FROM ORDER_LINE WHERE ID IN (SELECT DISTINCT t0.ID FROM ORDER_LINE t0 WHERE (t0.ORDER_ID >= ? AND t0.ORDER_ID <= ?));

DELETE FROM ORDERS WHERE ID IN (SELECT DISTINCT t0.ID FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?));
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
DELETE FROM ORDER_LINE WHERE ID IN (SELECT DISTINCT t0.ID FROM ORDER_LINE t0 WHERE (t0.ORDER_ID >= ? AND t0.ORDER_ID <= ?));

DELETE FROM ORDERS WHERE ID IN (SELECT DISTINCT t0.ID FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?));
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
delete from ORDER_LINE ol1_0 where ol1_0.ORDER_ID between ? and ?;

delete from ORDERS po1_0 where po1_0.ID between ? and ?;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
delete from ORDER_LINE ol1_0 where ol1_0.ORDER_ID between ? and ?;

delete from ORDERS po1_0 where po1_0.ID between ? and ?;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
delete from ORDER_LINE ol1_0 where ol1_0.ORDER_ID between ? and ?;

delete from ORDERS po1_0 where po1_0.ID between ? and ?;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
delete from ORDER_LINE ol1_0 where ol1_0.ORDER_ID between ? and ?;

delete from ORDERS po1_0 where po1_0.ID between ? and ?;
DELETE FROM ORDER_LINE WHERE EXISTS(SELECT t1.ID FROM ORDERS t0, ORDER_LINE t1 WHERE ((t0.ID BETWEEN ? AND ?) AND (t0.ID = t1.ORDER_ID)) AND t1.ID = ORDER_LINE.ID);

DELETE FROM ORDERS WHERE (ID BETWEEN ? AND ?);
DELETE FROM ORDER_LINE WHERE EXISTS(SELECT t1.ID FROM ORDERS t0, ORDER_LINE t1 WHERE ((t0.ID BETWEEN ? AND ?) AND (t0.ID = t1.ORDER_ID)) AND t1.ID = ORDER_LINE.ID);

DELETE FROM ORDERS WHERE (ID BETWEEN ? AND ?);
DELETE FROM ORDER_LINE WHERE EXISTS(SELECT t1.ID FROM ORDERS t0, ORDER_LINE t1 WHERE ((t0.ID BETWEEN ? AND ?) AND (t0.ID = t1.ORDER_ID)) AND t1.ID = ORDER_LINE.ID);

DELETE FROM ORDERS WHERE (ID BETWEEN ? AND ?);
DELETE FROM ORDER_LINE WHERE EXISTS(SELECT t1.ID FROM ORDERS t0, ORDER_LINE t1 WHERE ((t0.ID BETWEEN ? AND ?) AND (t0.ID = t1.ORDER_ID)) AND t1.ID = ORDER_LINE.ID);

DELETE FROM ORDERS WHERE (ID BETWEEN ? AND ?);
bulkUpdate

Single shot time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
UPDATE ORDERS SET STATUS = ?, VERSION = VERSION + 1 WHERE ID IN (SELECT DISTINCT t0.ID FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?));
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
UPDATE ORDERS SET STATUS = ?, VERSION = VERSION + 1 WHERE ID IN (SELECT DISTINCT t0.ID FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?));
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
UPDATE ORDERS SET STATUS = ?, VERSION = VERSION + 1 WHERE ID IN (SELECT DISTINCT t0.ID FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?));
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
UPDATE ORDERS SET STATUS = ?, VERSION = VERSION + 1 WHERE ID IN (SELECT DISTINCT t0.ID FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?));
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
update ORDERS po1_0 set STATUS=? where po1_0.ID between ? and ?;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
update ORDERS po1_0 set STATUS=? where po1_0.ID between ? and ?;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
update ORDERS po1_0 set STATUS=? where po1_0.ID between ? and ?;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
update ORDERS po1_0 set STATUS=? where po1_0.ID between ? and ?;
UPDATE ORDERS SET VERSION = (VERSION + ?), STATUS = ? WHERE (ID BETWEEN ? AND ?);
UPDATE ORDERS SET VERSION = (VERSION + ?), STATUS = ? WHERE (ID BETWEEN ? AND ?);
UPDATE ORDERS SET VERSION = (VERSION + ?), STATUS = ? WHERE (ID BETWEEN ? AND ?);
UPDATE ORDERS SET VERSION = (VERSION + ?), STATUS = ? WHERE (ID BETWEEN ? AND ?);
criteriaQuery

Throughput (ops/ms, higher is better)

Average time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE (t0.CITY = ? AND t0.CREATED_AT >= ?) ORDER BY t0.LAST_NAME ASC, t0.ID ASC LIMIT ?;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE (t0.CITY = ? AND t0.CREATED_AT >= ?) ORDER BY t0.LAST_NAME ASC, t0.ID ASC LIMIT ?;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE (t0.CITY = ? AND t0.CREATED_AT >= ?) ORDER BY t0.LAST_NAME ASC, t0.ID ASC LIMIT ?;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE (t0.CITY = ? AND t0.CREATED_AT >= ?) ORDER BY t0.LAST_NAME ASC, t0.ID ASC LIMIT ?;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.CITY=? and c1_0.CREATED_AT>=? order by c1_0.LAST_NAME,c1_0.ID fetch first ? rows only;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.CITY=? and c1_0.CREATED_AT>=? order by c1_0.LAST_NAME,c1_0.ID fetch first ? rows only;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.CITY=? and c1_0.CREATED_AT>=? order by c1_0.LAST_NAME,c1_0.ID fetch first ? rows only;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.CITY=? and c1_0.CREATED_AT>=? order by c1_0.LAST_NAME,c1_0.ID fetch first ? rows only;
SELECT ID AS a1, CREATED_AT AS a2, EMAIL AS a3, FIRST_NAME AS a4, LAST_NAME AS a5, CITY AS a6, COUNTRY AS a7, STREET AS a8, ZIP AS a9 FROM CUSTOMER WHERE ((CITY = ?) AND (CREATED_AT >= ?)) ORDER BY LAST_NAME ASC, ID ASC LIMIT ? OFFSET ?;
SELECT ID AS a1, CREATED_AT AS a2, EMAIL AS a3, FIRST_NAME AS a4, LAST_NAME AS a5, CITY AS a6, COUNTRY AS a7, STREET AS a8, ZIP AS a9 FROM CUSTOMER WHERE ((CITY = ?) AND (CREATED_AT >= ?)) ORDER BY LAST_NAME ASC, ID ASC LIMIT ? OFFSET ?;
SELECT ID AS a1, CREATED_AT AS a2, EMAIL AS a3, FIRST_NAME AS a4, LAST_NAME AS a5, CITY AS a6, COUNTRY AS a7, STREET AS a8, ZIP AS a9 FROM CUSTOMER WHERE ((CITY = ?) AND (CREATED_AT >= ?)) ORDER BY LAST_NAME ASC, ID ASC LIMIT ? OFFSET ?;
SELECT ID AS a1, CREATED_AT AS a2, EMAIL AS a3, FIRST_NAME AS a4, LAST_NAME AS a5, CITY AS a6, COUNTRY AS a7, STREET AS a8, ZIP AS a9 FROM CUSTOMER WHERE ((CITY = ?) AND (CREATED_AT >= ?)) ORDER BY LAST_NAME ASC, ID ASC LIMIT ? OFFSET ?;
dtoProjection

Throughput (ops/ms, higher is better)

Average time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t1.LAST_NAME, t0.ORDER_DATE, t0.TOTAL FROM ORDERS t0 INNER JOIN CUSTOMER t1 ON t0.CUSTOMER_ID = t1.ID WHERE (t0.ORDER_DATE >= ? AND t0.ORDER_DATE <= ?) ORDER BY t0.ID ASC LIMIT ?;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t1.LAST_NAME, t0.ORDER_DATE, t0.TOTAL FROM ORDERS t0 INNER JOIN CUSTOMER t1 ON t0.CUSTOMER_ID = t1.ID WHERE (t0.ORDER_DATE >= ? AND t0.ORDER_DATE <= ?) ORDER BY t0.ID ASC LIMIT ?;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t1.LAST_NAME, t0.ORDER_DATE, t0.TOTAL FROM ORDERS t0 INNER JOIN CUSTOMER t1 ON t0.CUSTOMER_ID = t1.ID WHERE (t0.ORDER_DATE >= ? AND t0.ORDER_DATE <= ?) ORDER BY t0.ID ASC LIMIT ?;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t1.LAST_NAME, t0.ORDER_DATE, t0.TOTAL FROM ORDERS t0 INNER JOIN CUSTOMER t1 ON t0.CUSTOMER_ID = t1.ID WHERE (t0.ORDER_DATE >= ? AND t0.ORDER_DATE <= ?) ORDER BY t0.ID ASC LIMIT ?;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select po1_0.ID,c1_0.LAST_NAME,po1_0.ORDER_DATE,po1_0.TOTAL from ORDERS po1_0 join CUSTOMER c1_0 on c1_0.ID=po1_0.CUSTOMER_ID where po1_0.ORDER_DATE between ? and ? order by po1_0.ID fetch first ? rows only;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select po1_0.ID,c1_0.LAST_NAME,po1_0.ORDER_DATE,po1_0.TOTAL from ORDERS po1_0 join CUSTOMER c1_0 on c1_0.ID=po1_0.CUSTOMER_ID where po1_0.ORDER_DATE between ? and ? order by po1_0.ID fetch first ? rows only;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select po1_0.ID,c1_0.LAST_NAME,po1_0.ORDER_DATE,po1_0.TOTAL from ORDERS po1_0 join CUSTOMER c1_0 on c1_0.ID=po1_0.CUSTOMER_ID where po1_0.ORDER_DATE between ? and ? order by po1_0.ID fetch first ? rows only;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select po1_0.ID,c1_0.LAST_NAME,po1_0.ORDER_DATE,po1_0.TOTAL from ORDERS po1_0 join CUSTOMER c1_0 on c1_0.ID=po1_0.CUSTOMER_ID where po1_0.ORDER_DATE between ? and ? order by po1_0.ID fetch first ? rows only;
SELECT t0.ID AS a1, t1.LAST_NAME AS a2, t0.ORDER_DATE AS a3, t0.TOTAL AS a4 FROM ORDERS t0, CUSTOMER t1 WHERE ((t0.ORDER_DATE BETWEEN ? AND ?) AND (t1.ID = t0.CUSTOMER_ID)) ORDER BY t0.ID LIMIT ? OFFSET ?;
SELECT t0.ID AS a1, t1.LAST_NAME AS a2, t0.ORDER_DATE AS a3, t0.TOTAL AS a4 FROM ORDERS t0, CUSTOMER t1 WHERE ((t0.ORDER_DATE BETWEEN ? AND ?) AND (t1.ID = t0.CUSTOMER_ID)) ORDER BY t0.ID LIMIT ? OFFSET ?;
SELECT t0.ID AS a1, t1.LAST_NAME AS a2, t0.ORDER_DATE AS a3, t0.TOTAL AS a4 FROM ORDERS t0, CUSTOMER t1 WHERE ((t0.ORDER_DATE BETWEEN ? AND ?) AND (t1.ID = t0.CUSTOMER_ID)) ORDER BY t0.ID LIMIT ? OFFSET ?;
SELECT t0.ID AS a1, t1.LAST_NAME AS a2, t0.ORDER_DATE AS a3, t0.TOTAL AS a4 FROM ORDERS t0, CUSTOMER t1 WHERE ((t0.ORDER_DATE BETWEEN ? AND ?) AND (t1.ID = t0.CUSTOMER_ID)) ORDER BY t0.ID LIMIT ? OFFSET ?;
findById

Throughput (ops/ms, higher is better)

Average time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced) 0.0976 ± 0.00137fastest Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 0.0984 ± 0.000795≈ 0.99 Apache OpenJPA 4.1.1 (runtime enhanced) 0.0976 ± 0.00102≈ 1.00 Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 0.0983 ± 0.00081≈ 0.99 Hibernate ORM 6.6.59.Final (not enhanced) 0.188 ± 0.004090.52 Hibernate ORM 7.4.15.Final (not enhanced) 0.186 ± 0.0008530.52 Hibernate ORM 6.6.59.Final (enhanced) 0.186 ± 0.0008510.53 Hibernate ORM 7.4.15.Final (enhanced) 0.183 ± 0.007350.53 EclipseLink 4.0.10 (not woven) 0.186 ± 0.001040.53 EclipseLink 5.0.2 (not woven) 0.186 ± 0.0007340.52 EclipseLink 4.0.10 (woven) 0.179 ± 0.008590.55 EclipseLink 5.0.2 (woven) 0.183 ± 0.001310.53
Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE t0.ID = ?;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE t0.ID = ?;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE t0.ID = ?;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE t0.ID = ?;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.ID=?;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.ID=?;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.ID=?;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.ID=?;
SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);
SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);
SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);
SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);
inheritanceJoinedQuery

Throughput (ops/ms, higher is better)

Average time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced) 0.177 ± 0.000819fastest Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 0.177 ± 0.000816≈ 1.00 Apache OpenJPA 4.1.1 (runtime enhanced) 0.177 ± 0.000624≈ 1.00 Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 0.177 ± 0.000727≈ 1.00 Hibernate ORM 6.6.59.Final (not enhanced) 0.273 ± 0.009220.65 Hibernate ORM 7.4.15.Final (not enhanced) 0.269 ± 0.002040.66 Hibernate ORM 6.6.59.Final (enhanced) 0.275 ± 0.001510.64 Hibernate ORM 7.4.15.Final (enhanced) 0.27 ± 0.001290.65 EclipseLink 4.0.10 (not woven) 0.283 ± 0.001470.63 EclipseLink 5.0.2 (not woven) 0.284 ± 0.001190.62 EclipseLink 4.0.10 (woven) 0.268 ± 0.001030.66 EclipseLink 5.0.2 (woven) 0.269 ± 0.001660.66
Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.PTYPE, t0.EMAIL, t0.NAME, t1.AGENCY, t1.HOURLY_RATE, t2.DEPARTMENT, t2.SALARY FROM JN_PERSON t0 LEFT OUTER JOIN JN_CONTRACTOR t1 ON t0.ID = t1.ID LEFT OUTER JOIN JN_EMPLOYEE t2 ON t0.ID = t2.ID WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.PTYPE, t0.EMAIL, t0.NAME, t1.AGENCY, t1.HOURLY_RATE, t2.DEPARTMENT, t2.SALARY FROM JN_PERSON t0 LEFT OUTER JOIN JN_CONTRACTOR t1 ON t0.ID = t1.ID LEFT OUTER JOIN JN_EMPLOYEE t2 ON t0.ID = t2.ID WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.PTYPE, t0.EMAIL, t0.NAME, t1.AGENCY, t1.HOURLY_RATE, t2.DEPARTMENT, t2.SALARY FROM JN_PERSON t0 LEFT OUTER JOIN JN_CONTRACTOR t1 ON t0.ID = t1.ID LEFT OUTER JOIN JN_EMPLOYEE t2 ON t0.ID = t2.ID WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.PTYPE, t0.EMAIL, t0.NAME, t1.AGENCY, t1.HOURLY_RATE, t2.DEPARTMENT, t2.SALARY FROM JN_PERSON t0 LEFT OUTER JOIN JN_CONTRACTOR t1 ON t0.ID = t1.ID LEFT OUTER JOIN JN_EMPLOYEE t2 ON t0.ID = t2.ID WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select jp1_0.ID,jp1_0.PTYPE,jp1_0.EMAIL,jp1_0.NAME,jp1_1.AGENCY,jp1_1.HOURLY_RATE,jp1_2.DEPARTMENT,jp1_2.SALARY from JN_PERSON jp1_0 left join JN_CONTRACTOR jp1_1 on jp1_0.ID=jp1_1.ID left join JN_EMPLOYEE jp1_2 on jp1_0.ID=jp1_2.ID where jp1_0.ID between ? and ? order by jp1_0.ID;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select jp1_0.ID,jp1_0.PTYPE,jp1_0.EMAIL,jp1_0.NAME,jp1_1.AGENCY,jp1_1.HOURLY_RATE,jp1_2.DEPARTMENT,jp1_2.SALARY from JN_PERSON jp1_0 left join JN_CONTRACTOR jp1_1 on jp1_0.ID=jp1_1.ID left join JN_EMPLOYEE jp1_2 on jp1_0.ID=jp1_2.ID where jp1_0.ID between ? and ? order by jp1_0.ID;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select jp1_0.ID,jp1_0.PTYPE,jp1_0.EMAIL,jp1_0.NAME,jp1_1.AGENCY,jp1_1.HOURLY_RATE,jp1_2.DEPARTMENT,jp1_2.SALARY from JN_PERSON jp1_0 left join JN_CONTRACTOR jp1_1 on jp1_0.ID=jp1_1.ID left join JN_EMPLOYEE jp1_2 on jp1_0.ID=jp1_2.ID where jp1_0.ID between ? and ? order by jp1_0.ID;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select jp1_0.ID,jp1_0.PTYPE,jp1_0.EMAIL,jp1_0.NAME,jp1_1.AGENCY,jp1_1.HOURLY_RATE,jp1_2.DEPARTMENT,jp1_2.SALARY from JN_PERSON jp1_0 left join JN_CONTRACTOR jp1_1 on jp1_0.ID=jp1_1.ID left join JN_EMPLOYEE jp1_2 on jp1_0.ID=jp1_2.ID where jp1_0.ID between ? and ? order by jp1_0.ID;
SELECT t0.ID, t0.PTYPE, t0.EMAIL, t0.NAME, t1.ID, t1.DEPARTMENT, t1.SALARY, t2.ID, t2.AGENCY, t2.HOURLY_RATE FROM JN_PERSON t0 LEFT OUTER JOIN JN_EMPLOYEE t1 ON (t1.ID = t0.ID) LEFT OUTER JOIN JN_CONTRACTOR t2 ON (t2.ID = t0.ID) WHERE (t0.ID BETWEEN ? AND ?) ORDER BY t0.ID;
SELECT t0.ID, t0.PTYPE, t0.EMAIL, t0.NAME, t1.ID, t1.AGENCY, t1.HOURLY_RATE, t2.ID, t2.DEPARTMENT, t2.SALARY FROM JN_PERSON t0 LEFT OUTER JOIN JN_CONTRACTOR t1 ON (t1.ID = t0.ID) LEFT OUTER JOIN JN_EMPLOYEE t2 ON (t2.ID = t0.ID) WHERE (t0.ID BETWEEN ? AND ?) ORDER BY t0.ID;
SELECT t0.ID, t0.PTYPE, t0.EMAIL, t0.NAME, t1.ID, t1.DEPARTMENT, t1.SALARY, t2.ID, t2.AGENCY, t2.HOURLY_RATE FROM JN_PERSON t0 LEFT OUTER JOIN JN_EMPLOYEE t1 ON (t1.ID = t0.ID) LEFT OUTER JOIN JN_CONTRACTOR t2 ON (t2.ID = t0.ID) WHERE (t0.ID BETWEEN ? AND ?) ORDER BY t0.ID;
SELECT t0.ID, t0.PTYPE, t0.EMAIL, t0.NAME, t1.ID, t1.AGENCY, t1.HOURLY_RATE, t2.ID, t2.DEPARTMENT, t2.SALARY FROM JN_PERSON t0 LEFT OUTER JOIN JN_CONTRACTOR t1 ON (t1.ID = t0.ID) LEFT OUTER JOIN JN_EMPLOYEE t2 ON (t2.ID = t0.ID) WHERE (t0.ID BETWEEN ? AND ?) ORDER BY t0.ID;
inheritanceSingleTableQuery

Throughput (ops/ms, higher is better)

Average time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced) 0.139 ± 0.000721fastest Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 0.141 ± 0.00518≈ 0.98 Apache OpenJPA 4.1.1 (runtime enhanced) 0.139 ± 0.000594≈ 1.00 Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 0.139 ± 0.000575≈ 1.00 Hibernate ORM 6.6.59.Final (not enhanced) 0.231 ± 0.0009820.60 Hibernate ORM 7.4.15.Final (not enhanced) 0.228 ± 0.001130.61 Hibernate ORM 6.6.59.Final (enhanced) 0.234 ± 0.001410.59 Hibernate ORM 7.4.15.Final (enhanced) 0.228 ± 0.001080.61 EclipseLink 4.0.10 (not woven) 0.24 ± 0.0007740.58 EclipseLink 5.0.2 (not woven) 0.236 ± 0.009470.59 EclipseLink 4.0.10 (woven) 0.225 ± 0.003810.62 EclipseLink 5.0.2 (woven) 0.225 ± 0.001610.62
Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.PTYPE, t0.EMAIL, t0.NAME, t0.AGENCY, t0.HOURLY_RATE, t0.DEPARTMENT, t0.SALARY FROM ST_PERSON t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.PTYPE, t0.EMAIL, t0.NAME, t0.AGENCY, t0.HOURLY_RATE, t0.DEPARTMENT, t0.SALARY FROM ST_PERSON t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.PTYPE, t0.EMAIL, t0.NAME, t0.AGENCY, t0.HOURLY_RATE, t0.DEPARTMENT, t0.SALARY FROM ST_PERSON t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.PTYPE, t0.EMAIL, t0.NAME, t0.AGENCY, t0.HOURLY_RATE, t0.DEPARTMENT, t0.SALARY FROM ST_PERSON t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select sp1_0.ID,sp1_0.PTYPE,sp1_0.EMAIL,sp1_0.NAME,sp1_0.AGENCY,sp1_0.HOURLY_RATE,sp1_0.DEPARTMENT,sp1_0.SALARY from ST_PERSON sp1_0 where sp1_0.ID between ? and ? order by sp1_0.ID;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select sp1_0.ID,sp1_0.PTYPE,sp1_0.EMAIL,sp1_0.NAME,sp1_0.AGENCY,sp1_0.HOURLY_RATE,sp1_0.DEPARTMENT,sp1_0.SALARY from ST_PERSON sp1_0 where sp1_0.ID between ? and ? order by sp1_0.ID;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select sp1_0.ID,sp1_0.PTYPE,sp1_0.EMAIL,sp1_0.NAME,sp1_0.AGENCY,sp1_0.HOURLY_RATE,sp1_0.DEPARTMENT,sp1_0.SALARY from ST_PERSON sp1_0 where sp1_0.ID between ? and ? order by sp1_0.ID;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select sp1_0.ID,sp1_0.PTYPE,sp1_0.EMAIL,sp1_0.NAME,sp1_0.AGENCY,sp1_0.HOURLY_RATE,sp1_0.DEPARTMENT,sp1_0.SALARY from ST_PERSON sp1_0 where sp1_0.ID between ? and ? order by sp1_0.ID;
SELECT ID, PTYPE, EMAIL, NAME, DEPARTMENT, SALARY, AGENCY, HOURLY_RATE FROM ST_PERSON WHERE (ID BETWEEN ? AND ?) ORDER BY ID;
SELECT ID, PTYPE, EMAIL, NAME, DEPARTMENT, SALARY, AGENCY, HOURLY_RATE FROM ST_PERSON WHERE (ID BETWEEN ? AND ?) ORDER BY ID;
SELECT ID, PTYPE, EMAIL, NAME, AGENCY, HOURLY_RATE, DEPARTMENT, SALARY FROM ST_PERSON WHERE (ID BETWEEN ? AND ?) ORDER BY ID;
SELECT ID, PTYPE, EMAIL, NAME, DEPARTMENT, SALARY, AGENCY, HOURLY_RATE FROM ST_PERSON WHERE (ID BETWEEN ? AND ?) ORDER BY ID;
joinFetch

Throughput (ops/ms, higher is better)

Average time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT DISTINCT t0.ID, t0.VERSION, t1.ID, t1.CITY, t1.COUNTRY, t1.STREET, t1.ZIP, t1.CREATED_AT, t1.EMAIL, t1.FIRST_NAME, t1.LAST_NAME, t0.ORDER_DATE, t0.STATUS, t0.TOTAL, t2.ORDER_ID, t2.ID, t2.LINE_NO, t2.PRODUCT_ID, t2.QUANTITY, t2.UNIT_PRICE FROM ORDERS t0 INNER JOIN CUSTOMER t1 ON t0.CUSTOMER_ID = t1.ID INNER JOIN ORDER_LINE t2 ON t0.ID = t2.ORDER_ID WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC, t2.ORDER_ID ASC;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT DISTINCT t0.ID, t0.VERSION, t1.ID, t1.CITY, t1.COUNTRY, t1.STREET, t1.ZIP, t1.CREATED_AT, t1.EMAIL, t1.FIRST_NAME, t1.LAST_NAME, t0.ORDER_DATE, t0.STATUS, t0.TOTAL, t2.ORDER_ID, t2.ID, t2.LINE_NO, t2.PRODUCT_ID, t2.QUANTITY, t2.UNIT_PRICE FROM ORDERS t0 INNER JOIN CUSTOMER t1 ON t0.CUSTOMER_ID = t1.ID INNER JOIN ORDER_LINE t2 ON t0.ID = t2.ORDER_ID WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC, t2.ORDER_ID ASC;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT DISTINCT t0.ID, t0.VERSION, t1.ID, t1.CITY, t1.COUNTRY, t1.STREET, t1.ZIP, t1.CREATED_AT, t1.EMAIL, t1.FIRST_NAME, t1.LAST_NAME, t0.ORDER_DATE, t0.STATUS, t0.TOTAL, t2.ORDER_ID, t2.ID, t2.LINE_NO, t2.PRODUCT_ID, t2.QUANTITY, t2.UNIT_PRICE FROM ORDERS t0 INNER JOIN CUSTOMER t1 ON t0.CUSTOMER_ID = t1.ID INNER JOIN ORDER_LINE t2 ON t0.ID = t2.ORDER_ID WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC, t2.ORDER_ID ASC;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT DISTINCT t0.ID, t0.VERSION, t1.ID, t1.CITY, t1.COUNTRY, t1.STREET, t1.ZIP, t1.CREATED_AT, t1.EMAIL, t1.FIRST_NAME, t1.LAST_NAME, t0.ORDER_DATE, t0.STATUS, t0.TOTAL, t2.ORDER_ID, t2.ID, t2.LINE_NO, t2.PRODUCT_ID, t2.QUANTITY, t2.UNIT_PRICE FROM ORDERS t0 INNER JOIN CUSTOMER t1 ON t0.CUSTOMER_ID = t1.ID INNER JOIN ORDER_LINE t2 ON t0.ID = t2.ORDER_ID WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC, t2.ORDER_ID ASC;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select distinct po1_0.ID,po1_0.CUSTOMER_ID,c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME,l1_0.ORDER_ID,l1_0.ID,l1_0.LINE_NO,l1_0.PRODUCT_ID,l1_0.QUANTITY,l1_0.UNIT_PRICE,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 join CUSTOMER c1_0 on c1_0.ID=po1_0.CUSTOMER_ID join ORDER_LINE l1_0 on po1_0.ID=l1_0.ORDER_ID where po1_0.ID between ? and ? order by po1_0.ID;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select distinct po1_0.ID,po1_0.CUSTOMER_ID,c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME,l1_0.ORDER_ID,l1_0.ID,l1_0.LINE_NO,l1_0.PRODUCT_ID,l1_0.QUANTITY,l1_0.UNIT_PRICE,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 join CUSTOMER c1_0 on c1_0.ID=po1_0.CUSTOMER_ID join ORDER_LINE l1_0 on po1_0.ID=l1_0.ORDER_ID where po1_0.ID between ? and ? order by po1_0.ID;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select distinct po1_0.ID,po1_0.CUSTOMER_ID,c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME,l1_0.ORDER_ID,l1_0.ID,l1_0.LINE_NO,l1_0.PRODUCT_ID,l1_0.QUANTITY,l1_0.UNIT_PRICE,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 join CUSTOMER c1_0 on c1_0.ID=po1_0.CUSTOMER_ID join ORDER_LINE l1_0 on po1_0.ID=l1_0.ORDER_ID where po1_0.ID between ? and ? order by po1_0.ID;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select distinct po1_0.ID,po1_0.CUSTOMER_ID,c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME,l1_0.ORDER_ID,l1_0.ID,l1_0.LINE_NO,l1_0.PRODUCT_ID,l1_0.QUANTITY,l1_0.UNIT_PRICE,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 join CUSTOMER c1_0 on c1_0.ID=po1_0.CUSTOMER_ID join ORDER_LINE l1_0 on po1_0.ID=l1_0.ORDER_ID where po1_0.ID between ? and ? order by po1_0.ID;
SELECT DISTINCT t1.ID, t1.ORDER_DATE, t1.STATUS, t1.TOTAL, t1.VERSION, t1.CUSTOMER_ID, t0.ID, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t2.ID, t2.LINE_NO, t2.QUANTITY, t2.UNIT_PRICE, t2.ORDER_ID, t2.PRODUCT_ID FROM CUSTOMER t0, ORDER_LINE t2, ORDERS t1 WHERE ((t1.ID BETWEEN ? AND ?) AND ((t0.ID = t1.CUSTOMER_ID) AND (t2.ORDER_ID = t1.ID))) ORDER BY t1.ID;

SELECT ID, NAME, PRICE, SKU FROM PRODUCT WHERE (ID = ?);
SELECT DISTINCT t1.ID, t1.ORDER_DATE, t1.STATUS, t1.TOTAL, t1.VERSION, t1.CUSTOMER_ID, t0.ID, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t2.ID, t2.LINE_NO, t2.QUANTITY, t2.UNIT_PRICE, t2.ORDER_ID, t2.PRODUCT_ID FROM CUSTOMER t0, ORDER_LINE t2, ORDERS t1 WHERE ((t1.ID BETWEEN ? AND ?) AND ((t0.ID = t1.CUSTOMER_ID) AND (t2.ORDER_ID = t1.ID))) ORDER BY t1.ID;

SELECT ID, NAME, PRICE, SKU FROM PRODUCT WHERE (ID = ?);
SELECT DISTINCT t1.ID, t1.ORDER_DATE, t1.STATUS, t1.TOTAL, t1.VERSION, t1.CUSTOMER_ID, t0.ID, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t2.ID, t2.LINE_NO, t2.QUANTITY, t2.UNIT_PRICE, t2.ORDER_ID, t2.PRODUCT_ID FROM CUSTOMER t0, ORDER_LINE t2, ORDERS t1 WHERE ((t1.ID BETWEEN ? AND ?) AND ((t0.ID = t1.CUSTOMER_ID) AND (t2.ORDER_ID = t1.ID))) ORDER BY t1.ID;
SELECT DISTINCT t1.ID, t1.ORDER_DATE, t1.STATUS, t1.TOTAL, t1.VERSION, t1.CUSTOMER_ID, t0.ID, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t2.ID, t2.LINE_NO, t2.QUANTITY, t2.UNIT_PRICE, t2.ORDER_ID, t2.PRODUCT_ID FROM CUSTOMER t0, ORDER_LINE t2, ORDERS t1 WHERE ((t1.ID BETWEEN ? AND ?) AND ((t0.ID = t1.CUSTOMER_ID) AND (t2.ORDER_ID = t1.ID))) ORDER BY t1.ID;
jpqlByIndexedAttribute

Throughput (ops/ms, higher is better)

Average time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced) 0.102 ± 0.00058fastest Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 0.102 ± 0.000848≈ 1.00 Apache OpenJPA 4.1.1 (runtime enhanced) 0.102 ± 0.000969≈ 1.00 Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 0.103 ± 0.00178≈ 0.99 Hibernate ORM 6.6.59.Final (not enhanced) 0.189 ± 0.001060.54 Hibernate ORM 7.4.15.Final (not enhanced) 0.19 ± 0.001780.54 Hibernate ORM 6.6.59.Final (enhanced) 0.189 ± 0.0008350.54 Hibernate ORM 7.4.15.Final (enhanced) 0.19 ± 0.0007270.54 EclipseLink 4.0.10 (not woven) 0.188 ± 0.000550.54 EclipseLink 5.0.2 (not woven) 0.189 ± 0.0005470.54 EclipseLink 4.0.10 (woven) 0.186 ± 0.001940.55 EclipseLink 5.0.2 (woven) 0.186 ± 0.001130.55
Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE (t0.EMAIL = ?);
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE (t0.EMAIL = ?);
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE (t0.EMAIL = ?);
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE (t0.EMAIL = ?);
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.EMAIL=?;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.EMAIL=?;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.EMAIL=?;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.EMAIL=?;
SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (EMAIL = ?);
SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (EMAIL = ?);
SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (EMAIL = ?);
SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (EMAIL = ?);
lazyNavigationNPlusOne

Throughput (ops/ms, higher is better)

Average time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;

SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE t0.ID = ?;

SELECT t0.ID, t0.LINE_NO, t0.ORDER_ID, t0.PRODUCT_ID, t0.QUANTITY, t0.UNIT_PRICE FROM ORDER_LINE t0 WHERE t0.ORDER_ID = ?;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;

SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE t0.ID = ?;

SELECT t0.ID, t0.LINE_NO, t0.ORDER_ID, t0.PRODUCT_ID, t0.QUANTITY, t0.UNIT_PRICE FROM ORDER_LINE t0 WHERE t0.ORDER_ID = ?;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;

SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE t0.ID = ?;

SELECT t0.ID, t0.LINE_NO, t0.ORDER_ID, t0.PRODUCT_ID, t0.QUANTITY, t0.UNIT_PRICE FROM ORDER_LINE t0 WHERE t0.ORDER_ID = ?;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;

SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE t0.ID = ?;

SELECT t0.ID, t0.LINE_NO, t0.ORDER_ID, t0.PRODUCT_ID, t0.QUANTITY, t0.UNIT_PRICE FROM ORDER_LINE t0 WHERE t0.ORDER_ID = ?;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ? order by po1_0.ID;

select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.ID=?;

select l1_0.ORDER_ID,l1_0.ID,l1_0.LINE_NO,l1_0.PRODUCT_ID,l1_0.QUANTITY,l1_0.UNIT_PRICE from ORDER_LINE l1_0 where l1_0.ORDER_ID=?;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ? order by po1_0.ID;

select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.ID=?;

select l1_0.ORDER_ID,l1_0.ID,l1_0.LINE_NO,l1_0.PRODUCT_ID,l1_0.QUANTITY,l1_0.UNIT_PRICE from ORDER_LINE l1_0 where l1_0.ORDER_ID=?;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ? order by po1_0.ID;

select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.ID=?;

select l1_0.ORDER_ID,l1_0.ID,l1_0.LINE_NO,l1_0.PRODUCT_ID,l1_0.QUANTITY,l1_0.UNIT_PRICE from ORDER_LINE l1_0 where l1_0.ORDER_ID=?;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ? order by po1_0.ID;

select c1_0.ID,c1_0.CITY,c1_0.COUNTRY,c1_0.STREET,c1_0.ZIP,c1_0.CREATED_AT,c1_0.EMAIL,c1_0.FIRST_NAME,c1_0.LAST_NAME from CUSTOMER c1_0 where c1_0.ID=?;

select l1_0.ORDER_ID,l1_0.ID,l1_0.LINE_NO,l1_0.PRODUCT_ID,l1_0.QUANTITY,l1_0.UNIT_PRICE from ORDER_LINE l1_0 where l1_0.ORDER_ID=?;
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);

SELECT ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID FROM ORDER_LINE WHERE (ORDER_ID = ?);

SELECT ID, NAME, PRICE, SKU FROM PRODUCT WHERE (ID = ?);
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);

SELECT ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID FROM ORDER_LINE WHERE (ORDER_ID = ?);

SELECT ID, NAME, PRICE, SKU FROM PRODUCT WHERE (ID = ?);
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);

SELECT ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID FROM ORDER_LINE WHERE (ORDER_ID = ?);
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);

SELECT ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID FROM ORDER_LINE WHERE (ORDER_ID = ?);
manyToManyAndElementCollection

Throughput (ops/ms, higher is better)

Apache OpenJPA 4.1.1 (enhanced) 0.484 ± 0.00437≈ 0.97 Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 0.5 ± 0.0391fastest Apache OpenJPA 4.1.1 (runtime enhanced) 0.483 ± 0.00416≈ 0.97 Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 0.482 ± 0.00348≈ 0.96 Hibernate ORM 6.6.59.Final (not enhanced) 0.476 ± 0.00269≈ 0.95 Hibernate ORM 7.4.15.Final (not enhanced) 0.479 ± 0.00433≈ 0.96 Hibernate ORM 6.6.59.Final (enhanced) 0.479 ± 0.0118≈ 0.96 Hibernate ORM 7.4.15.Final (enhanced) 0.478 ± 0.00324≈ 0.96 EclipseLink 4.0.10 (not woven) 0.483 ± 0.00181≈ 0.97 EclipseLink 5.0.2 (not woven) 0.483 ± 0.00291≈ 0.97 EclipseLink 4.0.10 (woven) 0.493 ± 0.00462≈ 0.99 EclipseLink 5.0.2 (woven) 0.494 ± 0.00486≈ 0.99

Average time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced) 2.07 ± 0.0158≈ 0.96 Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 2.08 ± 0.0208≈ 0.96 Apache OpenJPA 4.1.1 (runtime enhanced) 2.07 ± 0.0163≈ 0.96 Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 2.08 ± 0.0138≈ 0.96 Hibernate ORM 6.6.59.Final (not enhanced) 2.10 ± 0.00899≈ 0.95 Hibernate ORM 7.4.15.Final (not enhanced) 2.09 ± 0.0172≈ 0.95 Hibernate ORM 6.6.59.Final (enhanced) 2.11 ± 0.0138≈ 0.95 Hibernate ORM 7.4.15.Final (enhanced) 2.04 ± 0.128≈ 0.98 EclipseLink 4.0.10 (not woven) 2.07 ± 0.0096≈ 0.96 EclipseLink 5.0.2 (not woven) 1.99 ± 0.145fastest EclipseLink 4.0.10 (woven) 2.02 ± 0.0171≈ 0.98 EclipseLink 5.0.2 (woven) 2.01 ± 0.0456≈ 0.99
Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.NAME, t0.PRICE, t0.SKU FROM PRODUCT t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;

SELECT t1.ID, t1.NAME FROM PRODUCT_CATEGORY t0 INNER JOIN CATEGORY t1 ON t0.CATEGORY_ID = t1.ID WHERE t0.PRODUCT_ID = ?;

SELECT t0.TAG FROM PRODUCT_TAG t0 WHERE t0.PRODUCT_ID = ?;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.NAME, t0.PRICE, t0.SKU FROM PRODUCT t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;

SELECT t1.ID, t1.NAME FROM PRODUCT_CATEGORY t0 INNER JOIN CATEGORY t1 ON t0.CATEGORY_ID = t1.ID WHERE t0.PRODUCT_ID = ?;

SELECT t0.TAG FROM PRODUCT_TAG t0 WHERE t0.PRODUCT_ID = ?;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.NAME, t0.PRICE, t0.SKU FROM PRODUCT t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;

SELECT t1.ID, t1.NAME FROM PRODUCT_CATEGORY t0 INNER JOIN CATEGORY t1 ON t0.CATEGORY_ID = t1.ID WHERE t0.PRODUCT_ID = ?;

SELECT t0.TAG FROM PRODUCT_TAG t0 WHERE t0.PRODUCT_ID = ?;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.NAME, t0.PRICE, t0.SKU FROM PRODUCT t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;

SELECT t1.ID, t1.NAME FROM PRODUCT_CATEGORY t0 INNER JOIN CATEGORY t1 ON t0.CATEGORY_ID = t1.ID WHERE t0.PRODUCT_ID = ?;

SELECT t0.TAG FROM PRODUCT_TAG t0 WHERE t0.PRODUCT_ID = ?;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select p1_0.ID,p1_0.NAME,p1_0.PRICE,p1_0.SKU from PRODUCT p1_0 where p1_0.ID between ? and ? order by p1_0.ID;

select c1_0.PRODUCT_ID,c1_1.ID,c1_1.NAME from PRODUCT_CATEGORY c1_0 join CATEGORY c1_1 on c1_1.ID=c1_0.CATEGORY_ID where c1_0.PRODUCT_ID=?;

select t1_0.PRODUCT_ID,t1_0.TAG from PRODUCT_TAG t1_0 where t1_0.PRODUCT_ID=?;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select p1_0.ID,p1_0.NAME,p1_0.PRICE,p1_0.SKU from PRODUCT p1_0 where p1_0.ID between ? and ? order by p1_0.ID;

select c1_0.PRODUCT_ID,c1_1.ID,c1_1.NAME from PRODUCT_CATEGORY c1_0 join CATEGORY c1_1 on c1_1.ID=c1_0.CATEGORY_ID where c1_0.PRODUCT_ID=?;

select t1_0.PRODUCT_ID,t1_0.TAG from PRODUCT_TAG t1_0 where t1_0.PRODUCT_ID=?;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select p1_0.ID,p1_0.NAME,p1_0.PRICE,p1_0.SKU from PRODUCT p1_0 where p1_0.ID between ? and ? order by p1_0.ID;

select c1_0.PRODUCT_ID,c1_1.ID,c1_1.NAME from PRODUCT_CATEGORY c1_0 join CATEGORY c1_1 on c1_1.ID=c1_0.CATEGORY_ID where c1_0.PRODUCT_ID=?;

select t1_0.PRODUCT_ID,t1_0.TAG from PRODUCT_TAG t1_0 where t1_0.PRODUCT_ID=?;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select p1_0.ID,p1_0.NAME,p1_0.PRICE,p1_0.SKU from PRODUCT p1_0 where p1_0.ID between ? and ? order by p1_0.ID;

select c1_0.PRODUCT_ID,c1_1.ID,c1_1.NAME from PRODUCT_CATEGORY c1_0 join CATEGORY c1_1 on c1_1.ID=c1_0.CATEGORY_ID where c1_0.PRODUCT_ID=?;

select t1_0.PRODUCT_ID,t1_0.TAG from PRODUCT_TAG t1_0 where t1_0.PRODUCT_ID=?;
SELECT ID, NAME, PRICE, SKU FROM PRODUCT WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

SELECT t1.ID, t1.NAME FROM PRODUCT_CATEGORY t0, CATEGORY t1 WHERE ((t0.PRODUCT_ID = ?) AND (t1.ID = t0.CATEGORY_ID));

SELECT t0.TAG FROM PRODUCT_TAG t0 WHERE (t0.PRODUCT_ID = ?);
SELECT ID, NAME, PRICE, SKU FROM PRODUCT WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

SELECT t1.ID, t1.NAME FROM PRODUCT_CATEGORY t0, CATEGORY t1 WHERE ((t0.PRODUCT_ID = ?) AND (t1.ID = t0.CATEGORY_ID));

SELECT t0.TAG FROM PRODUCT_TAG t0 WHERE (t0.PRODUCT_ID = ?);
SELECT ID, NAME, PRICE, SKU FROM PRODUCT WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

SELECT t1.ID, t1.NAME FROM PRODUCT_CATEGORY t0, CATEGORY t1 WHERE ((t0.PRODUCT_ID = ?) AND (t1.ID = t0.CATEGORY_ID));

SELECT t0.TAG FROM PRODUCT_TAG t0 WHERE (t0.PRODUCT_ID = ?);
SELECT ID, NAME, PRICE, SKU FROM PRODUCT WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

SELECT t1.ID, t1.NAME FROM PRODUCT_CATEGORY t0, CATEGORY t1 WHERE ((t0.PRODUCT_ID = ?) AND (t1.ID = t0.CATEGORY_ID));

SELECT t0.TAG FROM PRODUCT_TAG t0 WHERE (t0.PRODUCT_ID = ?);
pagination

Throughput (ops/ms, higher is better)

Average time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT COUNT(t0.ID) FROM ORDERS t0 WHERE (t0.STATUS = ?);

SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.STATUS = ?) ORDER BY t0.ORDER_DATE DESC, t0.ID DESC LIMIT ? OFFSET ?;

SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.STATUS = ?) ORDER BY t0.ORDER_DATE DESC, t0.ID DESC LIMIT ?;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT COUNT(t0.ID) FROM ORDERS t0 WHERE (t0.STATUS = ?);

SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.STATUS = ?) ORDER BY t0.ORDER_DATE DESC, t0.ID DESC LIMIT ? OFFSET ?;

SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.STATUS = ?) ORDER BY t0.ORDER_DATE DESC, t0.ID DESC LIMIT ?;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT COUNT(t0.ID) FROM ORDERS t0 WHERE (t0.STATUS = ?);

SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.STATUS = ?) ORDER BY t0.ORDER_DATE DESC, t0.ID DESC LIMIT ? OFFSET ?;

SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.STATUS = ?) ORDER BY t0.ORDER_DATE DESC, t0.ID DESC LIMIT ?;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT COUNT(t0.ID) FROM ORDERS t0 WHERE (t0.STATUS = ?);

SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.STATUS = ?) ORDER BY t0.ORDER_DATE DESC, t0.ID DESC LIMIT ? OFFSET ?;

SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.STATUS = ?) ORDER BY t0.ORDER_DATE DESC, t0.ID DESC LIMIT ?;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select count(po1_0.ID) from ORDERS po1_0 where po1_0.STATUS=?;

select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.STATUS=? order by po1_0.ORDER_DATE desc,po1_0.ID desc offset ? rows fetch first ? rows only;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select count(po1_0.ID) from ORDERS po1_0 where po1_0.STATUS=?;

select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.STATUS=? order by po1_0.ORDER_DATE desc,po1_0.ID desc offset ? rows fetch first ? rows only;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select count(po1_0.ID) from ORDERS po1_0 where po1_0.STATUS=?;

select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.STATUS=? order by po1_0.ORDER_DATE desc,po1_0.ID desc offset ? rows fetch first ? rows only;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select count(po1_0.ID) from ORDERS po1_0 where po1_0.STATUS=?;

select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.STATUS=? order by po1_0.ORDER_DATE desc,po1_0.ID desc offset ? rows fetch first ? rows only;
SELECT COUNT(ID) FROM ORDERS WHERE (STATUS = ?);

SELECT ID AS a1, ORDER_DATE AS a2, STATUS AS a3, TOTAL AS a4, VERSION AS a5, CUSTOMER_ID AS a6 FROM ORDERS WHERE (STATUS = ?) ORDER BY ORDER_DATE DESC, ID DESC LIMIT ? OFFSET ?;

SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);
SELECT COUNT(ID) FROM ORDERS WHERE (STATUS = ?);

SELECT ID AS a1, ORDER_DATE AS a2, STATUS AS a3, TOTAL AS a4, VERSION AS a5, CUSTOMER_ID AS a6 FROM ORDERS WHERE (STATUS = ?) ORDER BY ORDER_DATE DESC, ID DESC LIMIT ? OFFSET ?;

SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);
SELECT COUNT(ID) FROM ORDERS WHERE (STATUS = ?);

SELECT ID AS a1, ORDER_DATE AS a2, STATUS AS a3, TOTAL AS a4, VERSION AS a5, CUSTOMER_ID AS a6 FROM ORDERS WHERE (STATUS = ?) ORDER BY ORDER_DATE DESC, ID DESC LIMIT ? OFFSET ?;
SELECT COUNT(ID) FROM ORDERS WHERE (STATUS = ?);

SELECT ID AS a1, ORDER_DATE AS a2, STATUS AS a3, TOTAL AS a4, VERSION AS a5, CUSTOMER_ID AS a6 FROM ORDERS WHERE (STATUS = ?) ORDER BY ORDER_DATE DESC, ID DESC LIMIT ? OFFSET ?;
persistBatch

Single shot time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
INSERT INTO ORDERS (ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID) VALUES (?, ?, ?, ?, ?, ?);

INSERT INTO ORDER_LINE (ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID) VALUES (?, ?, ?, ?, ?, ?);
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
INSERT INTO ORDERS (ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID) VALUES (?, ?, ?, ?, ?, ?);

INSERT INTO ORDER_LINE (ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID) VALUES (?, ?, ?, ?, ?, ?);
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
INSERT INTO ORDERS (ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID) VALUES (?, ?, ?, ?, ?, ?);

INSERT INTO ORDER_LINE (ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID) VALUES (?, ?, ?, ?, ?, ?);
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
INSERT INTO ORDERS (ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID) VALUES (?, ?, ?, ?, ?, ?);

INSERT INTO ORDER_LINE (ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID) VALUES (?, ?, ?, ?, ?, ?);
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
insert into ORDERS (CUSTOMER_ID,ORDER_DATE,STATUS,TOTAL,VERSION,ID) values (?,?,?,?,?,?);

insert into ORDER_LINE (LINE_NO,ORDER_ID,PRODUCT_ID,QUANTITY,UNIT_PRICE,ID) values (?,?,?,?,?,?);
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
insert into ORDERS (CUSTOMER_ID,ORDER_DATE,STATUS,TOTAL,VERSION,ID) values (?,?,?,?,?,?);

insert into ORDER_LINE (LINE_NO,ORDER_ID,PRODUCT_ID,QUANTITY,UNIT_PRICE,ID) values (?,?,?,?,?,?);
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
insert into ORDERS (CUSTOMER_ID,ORDER_DATE,STATUS,TOTAL,VERSION,ID) values (?,?,?,?,?,?);

insert into ORDER_LINE (LINE_NO,ORDER_ID,PRODUCT_ID,QUANTITY,UNIT_PRICE,ID) values (?,?,?,?,?,?);
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
insert into ORDERS (CUSTOMER_ID,ORDER_DATE,STATUS,TOTAL,VERSION,ID) values (?,?,?,?,?,?);

insert into ORDER_LINE (LINE_NO,ORDER_ID,PRODUCT_ID,QUANTITY,UNIT_PRICE,ID) values (?,?,?,?,?,?);
SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);

SELECT ID, NAME, PRICE, SKU FROM PRODUCT WHERE (ID = ?);

INSERT INTO ORDERS (ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID) VALUES (?, ?, ?, ?, ?, ?);

INSERT INTO ORDER_LINE (ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID) VALUES (?, ?, ?, ?, ?, ?);
SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);

SELECT ID, NAME, PRICE, SKU FROM PRODUCT WHERE (ID = ?);

INSERT INTO ORDERS (ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID) VALUES (?, ?, ?, ?, ?, ?);

INSERT INTO ORDER_LINE (ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID) VALUES (?, ?, ?, ?, ?, ?);
INSERT INTO ORDERS (ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID) VALUES (?, ?, ?, ?, ?, ?);

INSERT INTO ORDER_LINE (ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID) VALUES (?, ?, ?, ?, ?, ?);
INSERT INTO ORDERS (ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID) VALUES (?, ?, ?, ?, ?, ?);

INSERT INTO ORDER_LINE (ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID) VALUES (?, ?, ?, ?, ?, ?);
removeBatch

Single shot time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?);

SELECT t0.ID, t0.LINE_NO, t0.ORDER_ID, t0.PRODUCT_ID, t0.QUANTITY, t0.UNIT_PRICE FROM ORDER_LINE t0 WHERE t0.ORDER_ID = ?;

SELECT t0.NAME, t0.PRICE, t0.SKU FROM PRODUCT t0 WHERE t0.ID = ?;

SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE t0.ID = ?;

DELETE FROM ORDER_LINE WHERE ID = ?;

DELETE FROM ORDERS WHERE ID = ? AND VERSION = ?;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?);

SELECT t0.ID, t0.LINE_NO, t0.ORDER_ID, t0.PRODUCT_ID, t0.QUANTITY, t0.UNIT_PRICE FROM ORDER_LINE t0 WHERE t0.ORDER_ID = ?;

SELECT t0.NAME, t0.PRICE, t0.SKU FROM PRODUCT t0 WHERE t0.ID = ?;

SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE t0.ID = ?;

DELETE FROM ORDER_LINE WHERE ID = ?;

DELETE FROM ORDERS WHERE ID = ? AND VERSION = ?;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?);

SELECT t0.ID, t0.LINE_NO, t0.ORDER_ID, t0.PRODUCT_ID, t0.QUANTITY, t0.UNIT_PRICE FROM ORDER_LINE t0 WHERE t0.ORDER_ID = ?;

SELECT t0.NAME, t0.PRICE, t0.SKU FROM PRODUCT t0 WHERE t0.ID = ?;

SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE t0.ID = ?;

DELETE FROM ORDER_LINE WHERE ID = ?;

DELETE FROM ORDERS WHERE ID = ? AND VERSION = ?;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?);

SELECT t0.ID, t0.LINE_NO, t0.ORDER_ID, t0.PRODUCT_ID, t0.QUANTITY, t0.UNIT_PRICE FROM ORDER_LINE t0 WHERE t0.ORDER_ID = ?;

SELECT t0.NAME, t0.PRICE, t0.SKU FROM PRODUCT t0 WHERE t0.ID = ?;

SELECT t0.ID, t0.CITY, t0.COUNTRY, t0.STREET, t0.ZIP, t0.CREATED_AT, t0.EMAIL, t0.FIRST_NAME, t0.LAST_NAME FROM CUSTOMER t0 WHERE t0.ID = ?;

DELETE FROM ORDER_LINE WHERE ID = ?;

DELETE FROM ORDERS WHERE ID = ? AND VERSION = ?;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ?;

select l1_0.ORDER_ID,l1_0.ID,l1_0.LINE_NO,l1_0.PRODUCT_ID,l1_0.QUANTITY,l1_0.UNIT_PRICE from ORDER_LINE l1_0 where l1_0.ORDER_ID=?;

delete from ORDER_LINE where ID=?;

delete from ORDERS where ID=? and VERSION=?;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ?;

select l1_0.ORDER_ID,l1_0.ID,l1_0.LINE_NO,l1_0.PRODUCT_ID,l1_0.QUANTITY,l1_0.UNIT_PRICE from ORDER_LINE l1_0 where l1_0.ORDER_ID=?;

delete from ORDER_LINE where ID=?;

delete from ORDERS where ID=? and VERSION=?;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ?;

select l1_0.ORDER_ID,l1_0.ID,l1_0.LINE_NO,l1_0.PRODUCT_ID,l1_0.QUANTITY,l1_0.UNIT_PRICE from ORDER_LINE l1_0 where l1_0.ORDER_ID=?;

delete from ORDER_LINE where ID=?;

delete from ORDERS where ID=? and VERSION=?;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ?;

select l1_0.ORDER_ID,l1_0.ID,l1_0.LINE_NO,l1_0.PRODUCT_ID,l1_0.QUANTITY,l1_0.UNIT_PRICE from ORDER_LINE l1_0 where l1_0.ORDER_ID=?;

delete from ORDER_LINE where ID=?;

delete from ORDERS where ID=? and VERSION=?;
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?);

SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);

SELECT ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID FROM ORDER_LINE WHERE (ORDER_ID = ?);

SELECT ID, NAME, PRICE, SKU FROM PRODUCT WHERE (ID = ?);

DELETE FROM ORDER_LINE WHERE (ID = ?);

DELETE FROM ORDERS WHERE ((ID = ?) AND (VERSION = ?));
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?);

SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);

SELECT ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID FROM ORDER_LINE WHERE (ORDER_ID = ?);

SELECT ID, NAME, PRICE, SKU FROM PRODUCT WHERE (ID = ?);

DELETE FROM ORDER_LINE WHERE (ID = ?);

DELETE FROM ORDERS WHERE ((ID = ?) AND (VERSION = ?));
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?);

SELECT ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID FROM ORDER_LINE WHERE (ORDER_ID = ?);

DELETE FROM ORDER_LINE WHERE (ID = ?);

DELETE FROM ORDERS WHERE ((ID = ?) AND (VERSION = ?));
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?);

SELECT ID, LINE_NO, QUANTITY, UNIT_PRICE, ORDER_ID, PRODUCT_ID FROM ORDER_LINE WHERE (ORDER_ID = ?);

DELETE FROM ORDER_LINE WHERE (ID = ?);

DELETE FROM ORDERS WHERE ((ID = ?) AND (VERSION = ?));
resultStream

Throughput (ops/ms, higher is better)

Average time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ? order by po1_0.ID;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ? order by po1_0.ID;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ? order by po1_0.ID;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ? order by po1_0.ID;
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?) ORDER BY ID;
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?) ORDER BY ID;
updateDirtyChecking

Single shot time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;

UPDATE ORDERS SET STATUS = ?, TOTAL = ?, VERSION = ? WHERE ID = ? AND VERSION = ?;

UPDATE ORDERS SET TOTAL = ?, VERSION = ? WHERE ID = ? AND VERSION = ?;
Apache OpenJPA 4.2.0-SNAPSHOT (enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;

UPDATE ORDERS SET STATUS = ?, TOTAL = ?, VERSION = ? WHERE ID = ? AND VERSION = ?;

UPDATE ORDERS SET TOTAL = ?, VERSION = ? WHERE ID = ? AND VERSION = ?;
Apache OpenJPA 4.1.1 (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;

UPDATE ORDERS SET STATUS = ?, TOTAL = ?, VERSION = ? WHERE ID = ? AND VERSION = ?;

UPDATE ORDERS SET TOTAL = ?, VERSION = ? WHERE ID = ? AND VERSION = ?;
Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced): distinct SQL of the first iteration
SELECT t0.ID, t0.VERSION, t0.CUSTOMER_ID, t0.ORDER_DATE, t0.STATUS, t0.TOTAL FROM ORDERS t0 WHERE (t0.ID >= ? AND t0.ID <= ?) ORDER BY t0.ID ASC;

UPDATE ORDERS SET STATUS = ?, TOTAL = ?, VERSION = ? WHERE ID = ? AND VERSION = ?;

UPDATE ORDERS SET TOTAL = ?, VERSION = ? WHERE ID = ? AND VERSION = ?;
Hibernate ORM 6.6.59.Final (not enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ? order by po1_0.ID;

update ORDERS set CUSTOMER_ID=?,ORDER_DATE=?,STATUS=?,TOTAL=?,VERSION=? where ID=? and VERSION=?;
Hibernate ORM 7.4.15.Final (not enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ? order by po1_0.ID;

update ORDERS set CUSTOMER_ID=?,ORDER_DATE=?,STATUS=?,TOTAL=?,VERSION=? where ID=? and VERSION=?;
Hibernate ORM 6.6.59.Final (enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ? order by po1_0.ID;

update ORDERS set CUSTOMER_ID=?,ORDER_DATE=?,STATUS=?,TOTAL=?,VERSION=? where ID=? and VERSION=?;
Hibernate ORM 7.4.15.Final (enhanced): distinct SQL of the first iteration
select po1_0.ID,po1_0.CUSTOMER_ID,po1_0.ORDER_DATE,po1_0.STATUS,po1_0.TOTAL,po1_0.VERSION from ORDERS po1_0 where po1_0.ID between ? and ? order by po1_0.ID;

update ORDERS set CUSTOMER_ID=?,ORDER_DATE=?,STATUS=?,TOTAL=?,VERSION=? where ID=? and VERSION=?;
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);

UPDATE ORDERS SET STATUS = ?, TOTAL = ?, VERSION = ? WHERE ((ID = ?) AND (VERSION = ?));

UPDATE ORDERS SET TOTAL = ?, VERSION = ? WHERE ((ID = ?) AND (VERSION = ?));
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

SELECT ID, CREATED_AT, EMAIL, FIRST_NAME, LAST_NAME, CITY, COUNTRY, STREET, ZIP FROM CUSTOMER WHERE (ID = ?);

UPDATE ORDERS SET STATUS = ?, TOTAL = ?, VERSION = ? WHERE ((ID = ?) AND (VERSION = ?));

UPDATE ORDERS SET TOTAL = ?, VERSION = ? WHERE ((ID = ?) AND (VERSION = ?));
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

UPDATE ORDERS SET STATUS = ?, TOTAL = ?, VERSION = ? WHERE ((ID = ?) AND (VERSION = ?));

UPDATE ORDERS SET TOTAL = ?, VERSION = ? WHERE ((ID = ?) AND (VERSION = ?));
SELECT ID, ORDER_DATE, STATUS, TOTAL, VERSION, CUSTOMER_ID FROM ORDERS WHERE (ID BETWEEN ? AND ?) ORDER BY ID;

UPDATE ORDERS SET STATUS = ?, TOTAL = ?, VERSION = ? WHERE ((ID = ?) AND (VERSION = ?));

UPDATE ORDERS SET TOTAL = ?, VERSION = ? WHERE ((ID = ?) AND (VERSION = ?));

PostgreSQL, EMF bootstrap (warm)

Single shot time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced) 8.03 ± 1.13≈ 0.82 Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 8.14 ± 0.953≈ 0.81 Apache OpenJPA 4.1.1 (runtime enhanced) 7.58 ± 0.628≈ 0.87 Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 7.93 ± 0.4630.83 Hibernate ORM 6.6.59.Final (not enhanced) 14.72 ± 1.420.45 Hibernate ORM 7.4.15.Final (not enhanced) 19.50 ± 1.920.34 Hibernate ORM 6.6.59.Final (enhanced) 15.03 ± 1.470.44 Hibernate ORM 7.4.15.Final (enhanced) 19.68 ± 1.970.33 EclipseLink 4.0.10 (not woven) 6.58 ± 0.739fastest EclipseLink 5.0.2 (not woven) 6.62 ± 0.753≈ 0.99 EclipseLink 4.0.10 (woven) 7.38 ± 0.881≈ 0.89 EclipseLink 5.0.2 (woven) 7.39 ± 0.912≈ 0.89

Bar: score, line: ± error; number: factor to the fastest, ≈: within error of the fastest.

Scores (Single shot time)

Single shot time (ms/op, lower is better)

Score ± error, factor to the fastest below. Bold frame: fastest; thin frame and ≈: within error of the fastest.

BenchmarkApache OpenJPA 4.1.1 (enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (enhanced)Apache OpenJPA 4.1.1 (runtime enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)Hibernate ORM 6.6.59.Final (not enhanced)Hibernate ORM 7.4.15.Final (not enhanced)Hibernate ORM 6.6.59.Final (enhanced)Hibernate ORM 7.4.15.Final (enhanced)EclipseLink 4.0.10 (not woven)EclipseLink 5.0.2 (not woven)EclipseLink 4.0.10 (woven)EclipseLink 5.0.2 (woven)
emfBootstrap 8.03 ± 1.13
≈ 0.82
8.14 ± 0.953
≈ 0.81
7.58 ± 0.628
≈ 0.87
7.93 ± 0.463
0.83
14.72 ± 1.42
0.45
19.50 ± 1.92
0.34
15.03 ± 1.47
0.44
19.68 ± 1.97
0.33
6.58 ± 0.739
1.00
6.62 ± 0.753
≈ 0.99
7.38 ± 0.881
≈ 0.89
7.39 ± 0.912
≈ 0.89

PostgreSQL, EMF bootstrap (cold start)

Single shot time (ms/op, lower is better)

Apache OpenJPA 4.1.1 (enhanced) 137.8 ± 1.240.91 Apache OpenJPA 4.2.0-SNAPSHOT (enhanced) 142.5 ± 2.320.88 Apache OpenJPA 4.1.1 (runtime enhanced) 131.6 ± 5.16≈ 0.95 Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced) 139.0 ± 5.550.90 Hibernate ORM 6.6.59.Final (not enhanced) 441.7 ± 7.020.28 Hibernate ORM 7.4.15.Final (not enhanced) 522.6 ± 5.990.24 Hibernate ORM 6.6.59.Final (enhanced) 453.1 ± 5.060.28 Hibernate ORM 7.4.15.Final (enhanced) 534.3 ± 5.930.23 EclipseLink 4.0.10 (not woven) 125.1 ± 4.99fastest EclipseLink 5.0.2 (not woven) 140.7 ± 2.310.89 EclipseLink 4.0.10 (woven) 126.7 ± 2.61≈ 0.99 EclipseLink 5.0.2 (woven) 143.5 ± 2.420.87

Bar: score, line: ± error; number: factor to the fastest, ≈: within error of the fastest.

Scores (Single shot time)

Single shot time (ms/op, lower is better)

Score ± error, factor to the fastest below. Bold frame: fastest; thin frame and ≈: within error of the fastest.

BenchmarkApache OpenJPA 4.1.1 (enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (enhanced)Apache OpenJPA 4.1.1 (runtime enhanced)Apache OpenJPA 4.2.0-SNAPSHOT (runtime enhanced)Hibernate ORM 6.6.59.Final (not enhanced)Hibernate ORM 7.4.15.Final (not enhanced)Hibernate ORM 6.6.59.Final (enhanced)Hibernate ORM 7.4.15.Final (enhanced)EclipseLink 4.0.10 (not woven)EclipseLink 5.0.2 (not woven)EclipseLink 4.0.10 (woven)EclipseLink 5.0.2 (woven)
emfBootstrap 137.8 ± 1.24
0.91
142.5 ± 2.32
0.88
131.6 ± 5.16
≈ 0.95
139.0 ± 5.55
0.90
441.7 ± 7.02
0.28
522.6 ± 5.99
0.24
453.1 ± 5.06
0.28
534.3 ± 5.93
0.23
125.1 ± 4.99
1.00
140.7 ± 2.31
0.89
126.7 ± 2.61
≈ 0.99
143.5 ± 2.42
0.87