MySQL测试结果
Pgmysq对比

这个文件中包含了不同基准测试的结果。

测试结果后()中的数字表示精确测试中执行的SQL命令的数目。一个测试可以有很多不同的参数,这里只给出一个大致的样子。请查看源码以获得更多的信息。

注意,使用不同--cmp选项的测试结果不能进行对比。--cmp选项根据测试中全部服务器的最差的限制进行设置。

标记了‘+’的数字是根据上一次的运行结果进行估计得出的,因为查询语句的执行超出了给定的时间限制。这个估计和预想中的真实的结果不会相差很远。

标记了‘?’的数字是一个糟糕的结果。它只能用来说明服务器产生这个糟糕结果所花的时间:)

希望这能使你对每种数据库的运行情况有一些认识....
希望你喜欢它.... Luuk & Monty (1997)

第一列是用秒记数的。其他列都是与第一列相关的。
1.00表示相同。更大的数字表示速度更慢。

这是pgmysql对比的测试结果。测试环境为:

1 mysql-Linux_2.2.10_i686 MySQL 3.23.3 alpha
2 mysql_fast-Linux_2.2.10_i686 MySQL 3.23.3 alpha --fast
3 pg-Linux_2.2.10_i686 PostgreSQL 6.5
4 pg_fast-Linux_2.2.10_i686 PostgreSQL 6.5 --fast
操作 1
mysql
2
mysql_fast
3
pg
4
pg_fast
每项测试的结果(第一列以秒记,后面列是第一列的倍数):
ATIS 65 0.94 2.20 2.25
alter-table 23 1.04 0.17 0.17
big-tables 16 1.00 9.38 9.38
connect 101 0.99 5.05 4.96
create 16 1.00 7.25 6.06
insert 2470 0.74 +35.93 +22.35
select 866 0.95 +4.67 +4.41
wisconsin 23 0.39 6.22 5.17
每项操作的结果:
alter_table_add (293) 21 1.00 0.05 0.05
book-keeping ()       616
connect (10000) 24 1.00 4.00 3.92
connect+select_1_row (10000) 28 1.00 6.75 6.61
connect+select_simpl (10000) 26 1.00 6.19 6.04
count (100) 73 1.00 1.82 1.82
count_on_key (50100) 649 0.94 +2.36 +2.15
create+drop (1000) 3 1.00 13.00 9.33
create_index (7) 1 1.00 0.00 1.00
create_key+drop (1000) 4 1.00 8.25 4.25
create_table (1031) 5 0.80 5.40 5.20
delete_big (13) 22 0.55 166.00 144.14
delete_big_many_keys (2) 50 0.22 0.28 0.14
delete_key (500) 1 1.00 26.00 24.00
drop_index (7) 1 1.00 1.00 0.00
drop_table (1028) 2 1.00 7.50 7.00
insert (350768) 169 0.71 7.08 5.32
insert_duplicates (300000) 17 0.82 6.71 6.53
insert_key (100000) 96 0.84 9.31 8.52
insert_many_fields (2000) 5 0.80 17.40 17.20
min_max (60) 37 1.00 1.65 1.65
min_max_on_key (73000) 265 0.96 +14.65 +14.31
order_by (10) 90 0.96 1.56 1.54
order_by_key (10) 69 1.01 2.04 2.03
select_1_row (10000) 4 0.75 4.00 4.00
select_2_rows (10000) 4 1.25 4.00 4.00
select_big (10080) 83 0.99 1.28 1.25
select_diff_key (500) 304 1.00 0.01 0.00
select_distinct (800) 19 0.95 1.11 1.05
select_group (3611) 77 1.01 ?4.82 ?4.62
select_join (200) 23 1.04 0.78 0.78
select_key (200000) 399 0.66 1.43 1.00
select_key_prefix (200000) 401 0.66 1.42 1.00
select_many_fields (2000) 11 1.09 5.73 5.73
select_range (25420) 44 0.73 +810.50 +451.61
select_range_prefix (25010) 42 0.76 +848.88 +474.43
select_simple (10000) 2 1.00 6.50 6.50
select_simple_join (500) 3 0.67 1.33 1.33
update_big (500) 50 0.66 99.86 83.68
update_of_key (756) 38 0.84 43.61 42.08
update_of_key_big (501) 31 0.94 6.48 6.23
update_with_key (100000) 380 0.39 3.86 2.41
wisc_benchmark (114) 7 1.00 2.71 2.71
总计 3580 0.80 +26.22 +16.77