Torle encountered the liberator - the TorPedo OR mapping performance benchmark test of Liberatorjdo

xiaoxiao2021-03-06  64

Torpedo is a referusion of Testbed of Object Relation Objects. It is a Java industry initiated by a well-known Java Question company. Software, also become a data access middleware)

A benchmark package with the degree of performance and optimization. Torpedo contains a specification that implements a reference implementation with Java. The same specification can be implemented with C or C # to test O / R mapping software in the language.

Torpedo's read and write operations in a series of simulated real environments to examine the complexity, flexibility of the middleware, flexible and revelation middleware access database, and measure O / The overall performance and structural design of the MApping middleware.

In recent years, the development of objects has been popular, causing emerging O / R mapping development tools, increasing, including CMP, Java Bean, CMP, JDO, Hibernate, Oralce's Toplink, Coocobase, etc. O / R mapping middleware and standard In-adventures, people are increasingly needed to assess various data access intermediate products, Torpedo is born under this requirement.

Liberator JDO is the first POJO model-based O / R mapping middleware, which is developed by Beijing Red Workers Software Technology Co., Ltd., currently implemented JDO2 (Java Data Object 2) standard for JCP, and will The EJB3 interface is implemented in the first quarter of 2006 and ready to achieve the next generation of industry standard data persistent layer API. Liberator JDO is a solid data access middleware that can be used as a data persistence layer (30% -50%), improve development efficiency, improve the quality and stability of the application.

In order to verify the performance and design of Liberator JDO, we also use Torpedo as the test basis for the Liberator JDO. Through Torpedo's tests, the product performance and quality are guaranteed, and the two products are also compared with foreign products, find weaknesses and go beyond the opponent.

First look at the test results:

Test Results

total

A

B

C

Di

E

Fly

G

Hide

Liberator PE 1.2 Beta

twenty four

2

2

2

2

2

2

5

Seduce

A- Listauction; B-ListauctionTwicewithTransaction; C-ListauctionTwicewithoutTransaction; D-FindAllauctions; E-FindHighBids; F-ListPartiaArt; G-PlaceBID; H-Place2bids

Other foreign similar products include WebLogic, Toplink, Hibernate, KODO, JDogenie, etc. Test results:

Submission

Sum

A

B

C

Di

E

Fly

G

Hide

Hibernate-2

34

3

5

6

2

3

2

5

8

Hibernate-3

twenty two

2

2

2

2

2

2

4

6

JCREDO-1

In one

2

2

2

3

2

2

2

2

KODO-3

twenty two

2

2

2

2

2

2

4

6

KODO-4

twenty one

2

2

2

2

2

2

4

5

KODO-5

16

2

2

2

2

2

2

2

2

OpenAccess-116

2

2

2

2

2

2

2

2

Toplink-1

97

18

18

18

twenty two

3

3

6

9

Toplink-2

30

3

3

3

3

2

2

6

8

Toplink-3

twenty one

2

2

2

2

2

2

4

5

WebLogic-1

113

18

18

36

twenty two

3

3

5

8

WebLogic-2

26

2

2

2

2

3

2

5

8

WebLogic-3

20

2

2

2

2

2

2

3

5

The test results can be seen that the manufacturers are very intended to test the test indicators, optimize their products and TorPedo code to obtain excellent results in the test. The Liberator PE of the Red Industrial Park has achieved good results in the case of not optimizing Torpedo's code, exceeding most of the performance indicators of other unopened similar products, and optimized other foreign manufacturers of products in a quantitude (all Optimized products are tested after this summer). Therefore, Liberator PE is not only in performance and design not inferior to foreign similar products, but also forces the most leading foreign counterparts in the industry.

Now let's see what Torepdo is testing, and how to test the O / R mapping middleware.

Torpedo mainly tests the database access policies below the O / R mapping middleware.

Read Only Objects Many applications are read-only. Smart O-R mapping software should be able to use this behavior to optimize access to which read-only objects. For example, these data is easily caching and can have a relatively long time in the cache.

Caching WITHIN A Transaction O / R mapping middleware should be able to cache an operation within the boundary of a single transaction, and the operation of these objects should not need to operate the database, all of which are inserted into the database should be The thing is only performed.

Cache across transactions (Caching Across Transactions) Although cache data can provide some benefits in the border of transactions, cross-transactions can provide greater benefits. Data will not be reloaded during concurrent transactions. The database will only be accessed by writing. When the data is modified, this is a challenging optimization operation, especially in the cluster environment or by other nonor mapping program access data. .

Partial Load Object Data O-R Mapping is instantiated, sometimes only part of this object is better than loading all the data. Smart O-R mapping software only loads those required object data rather than all, so that it can be saved to the application in memory resources.

Bulk Loads of Multiple Objects (Bulk Loads of Multiple Objects) When the result of the query is the collection of objects, load all result objects through a database operation is better than one one. Further practice is to load only part of this batch object

Lazy Loads of Multiple Objects Sometimes it does not load all query results objects, and more appropriate is to load only the result objects that meet the basic needs.

Bulk Loads Of Related Objects When an object-oriented object is an object-oriented application, it is very valuable to load all the associated objects that can be loaded through a database operation. A further practice is to load only part of the associated object.

Lazy Loads Of Related Objects Sometimes it is better to load all associated objects, and more appropriate is to load only the associated object that meets the basic needs.

Batch Update Operations The O-R Mapping software selects a better way to perform a larger way in which the O-R Mapping software selects a better way to perform a batch execution / insert operation in a database operation. In the reference implementation of Torepdo, the above database access optimization policies in the O / R mapping middleware are verified by average application application of a typical opportunity J2EE architecture. The object model of Torepdo is shown below:

The object model consists of AUCTION, BID, USER, and ITEM. There are four different relationships between these objects. AUCTION and ITEM are a one-on-one relationship, AUCTION and BID are a pair of relationships, and a user and Auction are a pair of sales relationships. A user and BID are a pair of buyers.

The reference test contains 9 test cases, covering all of the above optimization strategies:

Listauction

The Listauction operation reveals how good O-R mapping software finds data through the associated object, especially if the O-R mapping software is capable of batching the associated object (all of this information can be obtained through a separate SQL Join Statement.

ListauctionTWiceWithTransaction

The ListauctionTWiceWithTransaction operation reveals whether the O-R mapping software can cache data in the boundary of the transaction.

ListauctionTWiceWithoutTransaction

The test can be across the transaction cache, and also test whether or mapping software supports the intelligent management of read-only objects. The first time I access Auction, BID, User and Item's information is placed in the cache. The second time will only go to the cache, because These objects are declared as read-only.

ListPartiaArtion

ListPartiaArtion operation test O-R mapping software can load a portion of the object data. ListPartiauction also tested O-R mapping software to load an associated object with a lazy way. The information associated with the User and BID objects is not required.

Findallauctions

The FindalLauctions operation test O-R mapping software enables bulk loading multiple objects and lazy loading. This test O-R mapping software has the ability to bulk results when returning a lot of data.

Findhighbids

Findhlights Operation Test O-R Mapping software performs the ability to load multiple objects in bulk. It also tests the support of the Q-R mapping software to support the total functionality. If support is missing, you must find the highest bid in the application instead of the database.

Placebid

When the test is synchronized to add a bidding information, the PlaceBID operation tests the correctness of various lists and findings. When you perform a PlaceBID operation, all the operations must return the correct response.

Place2bids

Place2bids

Operation test

O-R mapping

Software bulk update

/

Insert the ability of the database,

Place2bids

Run as a separate atomic affairs.

转载请注明原文地址:https://www.9cbs.com/read-85428.html

New Post(0)