MySQL, PostgreSQL和Derby的性能比较

MySQL

PostgreSQL

Derby

性能比较

最近在网上有这样一种性能对比:

以下是引用的内容:(个人认为,主要是说明这三种数据库更适合在哪方面的应用.在大吞吐量的数据传送Derby是很有优势的.)不过要注意,Derby的默认缓存只有4M,一定要改到200M以上才好用.

Performance Evaluation:
MySQL, PostgreSQL and Derby
Evaluated performance of:
? MySQL/InnoDB (version 5.0.10)
? PostgreSQL (version 8.0.3)
? Derby Embedded (version 10.1.1.0)
? Derby Client-Server

Database Configurations
Configurations:
? “Out-of-box” performance
? No tuning, except:
> size of database buffer
> database and transaction
log on separate disks
? No Benchmark
Load:
> 1-100 concurrent clients
Databases:
1. Main-memory database:
> 10 MB user data
> 64 MB database buffer
2. Disk database:
> 10 GB user data
> 64 MB database buffer

Throughput: TPC-B like load
Main-memory database (10 MB):               Disk-based database (10 GB):

MySQL, PostgreSQL和Derby的性能比较

MySQL, PostgreSQL和Derby的性能比较

MySQL, PostgreSQL和Derby的性能比较MySQL, PostgreSQL和Derby的性能比较MySQL, PostgreSQL和Derby的性能比较MySQL, PostgreSQL和Derby的性能比较

Observations
? Derby outperforms MySQL on disk-based databases
> Derby has 100% higher throughput than MySQL
? MySQL performs better on small main-memory
databases
> Update-intensive load: Derby has 20-50% lower
throughput
> Read-intensive load: Derby has 50% lower throughput
? PostgreSQL performs best on read-only databases, and
has lowest throughput on update-intensive databases
Why?

Conclusions: Resource Usage
? MySQL performs better than Derby when
> The database is small and fits in the database buffer
> Throughput becomes CPU-bound
> Derby uses more CPU and sends more messages over the net
? Derby performs better than MySQL when
> The database is large and does not fit in the database buffer
> Throughput becomes I/O-bound
? PosgreSQL performs best with read-only load
> Update-intensive load results in much disk I/O


转载于:https://my.oschina.net/u/2349331/blog/423747

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值