Oracle, PostgreSQL and Mysql data writing performance comparison

Recently, due to work needs, it is necessary to compare the writing performance of Oracle and Mysql. I used to hear that Mysql's performance is not at the same level as Oracle. . .

Append PostgreSql performance test data

testing scenarios

Local computer (stand-alone), insert 10 million pieces of data into the database table through the program, 21 fields, one of which is of type int, and the other 20 are of type 32-bit string;

computer setup

CPU:i5-4590
内存:8G
系统盘:120G固态硬盘
系统:Window7 64位

The table structure is as follows:


create table demo1(
  demo_id INT NOT NULL PRIMARY KEY ,
  txt1    VARCHAR(32) NOT NULL,
  txt2    VARCHAR(32) NOT NULL,
  txt3    VARCHAR(32) NOT NULL,
  txt4    VARCHAR(32) NOT NULL,
  txt5    VARCHAR(32) NOT NULL,
  txt6    VARCHAR(32) NOT NULL,
  txt7    VARCHAR(32) NOT NULL,
  txt8    VARCHAR(32) NOT NULL,
  txt9    VARCHAR(32) NOT NULL,
  txt10    VARCHAR(32) NOT NULL,
  txt11    VARCHAR(32) NOT NULL,
  txt12    VARCHAR(32) NOT NULL,
  txt13    VARCHAR(32) NOT NULL,
  txt14    VARCHAR(32) NOT NULL,
  txt15    VARCHAR(32) NOT NULL,
  txt16    VARCHAR(32) NOT NULL,
  txt17    VARCHAR(32) NOT NULL,
  txt18    VARCHAR(32) NOT NULL,
  txt19    VARCHAR(32) NOT NULL,
  txt20    VARCHAR(32) NOT NULL
);

in conclusion

Scenes Insertion speed (bar/s) data capacity 10 million total time (minutes)
Oracle+SSD+Not optimized 12000 8.3G 13.9
Oracle + mechanical hard disk + not optimized 10000 8.3G 16.7
Mysql+mechanical hard disk+Commit=0 3900 7.1G 42.7
Mysql+mechanical hard disk+Commit=1 3500 7.1G 47.6
PostgreSQL + mechanical hard disk + not optimized 10300 7.5G 16.3

Replenish

  1. The performance test was performed after the doublewrite of Mysql was closed, and it did not have much impact on the data;

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324970772&siteId=291194637