Comments (2)
$ cat /etc/issue
Debian GNU/Linux stretch/sid
$ psql --version
psql (PostgreSQL) 9.5.1
使用的 jdbc 包版本是 postgresql-9.4.1208.jre7.jar
$ mysql --version
mysql Ver 15.1 Distrib 10.0.23-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
使用的 jdbc 包版本是 mysql-connector-java-5.1.38.jar
$ java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
mariaDB 的结果
MyThread-3000 write end, time=101805 ms
MyThread-1000 write end, time=101949 ms
MyThread-0 write end, time=102006 ms
MyThread-3000 read end, time=191 ms
MyThread-2000 write end, time=102041 ms
MyThread-1000 read end, time=257 ms
MyThread-3000 randow read end, time=234 ms
MyThread-0 read end, time=271 ms
MyThread-2000 read end, time=272 ms
MyThread-1000 randow read end, time=161 ms
MyThread-0 randow read end, time=133 ms
MyThread-2000 randow read end, time=137 ms
threads: 4, loop: 1000, rows: 4000
write_sum=407801, avg=101950 ms
read_sum=991, avg=247 ms
randow_read_sum=665, avg=166 ms
pg 的结果
MyThread-3000 write end, time=27189 ms
MyThread-2000 write end, time=27210 ms
MyThread-0 write end, time=27225 ms
MyThread-1000 write end, time=27236 ms
MyThread-2000 read end, time=349 ms
MyThread-3000 read end, time=390 ms
MyThread-0 read end, time=417 ms
MyThread-1000 read end, time=431 ms
MyThread-2000 randow read end, time=301 ms
MyThread-3000 randow read end, time=309 ms
MyThread-0 randow read end, time=331 ms
MyThread-1000 randow read end, time=311 ms
threads: 4, loop: 1000, rows: 4000
write_sum=108860, avg=27215 ms
read_sum=1587, avg=396 ms
randow_read_sum=1252, avg=313 ms
mariaDB 真心慢!!!
from my-blog.
@liuanxin
我昨天后来测了MariaDB10.1,修改一下data\my.ini,加入innodb_flush_log_at_trx_commit=2重新测就很快了。默认也是像MySQL一样,innodb_flush_log_at_trx_commit的值是1,每次insert一条新记录就会调fsync,所以会很慢。
from my-blog.
Related Issues (20)
- Kotlin 吐槽大会 HOT 10
- 踩过的那些技术坑 HOT 7
- 技术想法分享 HOT 17
- MVCC 的局限性 HOT 5
- 事务隔离级别: REPEATABLE_READ 的瑕疵 HOT 2
- 统一批处理、流计算与 OLTP 数据库 HOT 6
- 云厂商将进一步摧毁开源软件 HOT 1
- 新的微博和知乎账号 HOT 1
- 谈谈阿里巴巴的PolarDB HOT 1
- 可以开始初步像使用MySQL一样使用Lealone了
- 聊聊过去的技术历程 HOT 8
- 再见 2018,你好 2019 HOT 11
- 建议搭个博客
- 1
- # Douyu 那个 Web 框架的代码还有吗 HOT 2
- 再见 2019,你好 2020 HOT 13
- 再见 2020,你好 2021 HOT 10
- 再见 2021,你好 2022 HOT 12
- 您的Douyu 项目呢?
- 还更新吗 2022 2023还想看
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from my-blog.