Skip to content

Latest commit

 

History

History
138 lines (126 loc) · 4.02 KB

README_CN.md

File metadata and controls

138 lines (126 loc) · 4.02 KB

ORM Compare

ORM-Compare

测试环境: Windows.
数据库: MySQL (Version 5.6.24).
测试点: 批量插入;分页查询;事务(update and select).

批量插入(单位: ms)
  5k 1w 2w 5w 10w
Bee 529.00 458.33 550.00 1315.67 4056.67
MyBatis 1193 713 1292.67 1824.33 Exception

 

分页查询(单位: ms)
  20次 50次 100次 200次 500次
Bee 17.33 58.67 52.33 38.33 57.33
MyBatis 314.33 446.00 1546.00 2294.33 6216.67

 

事务(update and select) (单位: ms)
  20次 50次 100次 200次 500次
Bee 1089.00 70.00 84.00 161.33 31509.33
MyBatis 1144 35 79.67 146.00 32155.33

batch-insert

Bee需要用的文件(3个):

org\teasoft\orm\compare\model\Orders.java
org\teasoft\orm\compare\service\OrdersService.java
org\teasoft\orm\compare\bee\service\BeeOrdersService.java

MyBatis需要用的文件(6个):

org\teasoft\orm\compare\model\Orders.java
org\teasoft\orm\compare\mybatis\dao\OrdersDao.java
org\teasoft\orm\compare\mybatis\dao\OrdersMapper.java
org\teasoft\orm\compare\mybatis\dao\impl\OrdersDaoImpl.java
org\teasoft\orm\compare\service\OrdersService.java
org\teasoft\orm\compare\mybatis\service\MybatisOrdersService.java

Bee is an ORM framework.
Bee is an easy and high efficiency ORM framework. Easy for Stronger.
Coding Complexity is O(1),it means that Bee will do the Dao for you.

Bee see:
https://github.com/automvc/bee