MySQL测试结果
pgmysql对比

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

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

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

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

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

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

这是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_f
3
pg
4
pg_fast
每项测试的结果(以秒记):
ATIS 65 61 143 146
alter-table 23 24 4 4
big-tables 16 16 150 150
connect 101 100 510 501
create 16 16 116 97
insert 2470 1818 +88759 +55214
select 866 819 +4047 +3817
wisconsin 23 9 143 119
每项操作的结果:
alter_table_add (293) 21 21 1 1
book-keeping ()       616
connect (10000) 24 24 96 94
connect+select_1_row (10000) 28 28 189 185
connect+select_simpl (10000) 26 26 161 157
count (100) 73 73 133 133
count_on_key (50100) 649 613 +1533 +1394
create+drop (1000) 3 3 39 28
create_index (7) 1 1 0 1
create_key+drop (1000) 4 4 33 17
create_table (1031) 5 4 27 26
delete_big (13) 22 12 3652 3171
delete_big_many_keys (2) 50 11 14 7
delete_key (500) 1 1 26 24
drop_index (7) 1 1 1 0
drop_table (1028) 2 2 15 14
insert (350768) 169 120 1197 899
insert_duplicates (300000) 17 14 114 111
insert_key (100000) 96 81 894 818
insert_many_fields (2000) 5 4 87 86
min_max (60) 37 37 61 61
min_max_on_key (73000) 265 254 +3882 +3791
order_by (10) 90 86 140 139
order_by_key (10) 69 70 141 140
select_1_row (10000) 4 3 16 16
select_2_rows (10000) 4 5 16 16
select_big (10080) 83 82 106 104
select_diff_key (500) 304 304 2 1
select_distinct (800) 19 18 21 20
select_group (3611) 77 78 ?371 ?356
select_join (200) 23 24 18 18
select_key (200000) 399 263 569 400
select_key_prefix (200000) 401 265 569 401
select_many_fields (2000) 11 12 63 63
select_range (25420) 44 32 +35662 +19871
select_range_prefix (25010) 42 32 +35653 +19926
select_simple (10000) 2 2 13 13
select_simple_join (500) 3 2 4 4
update_big (500) 50 33 4993 4184
update_of_key (756) 38 32 1657 1599
update_of_key_big (501) 31 29 201 193
update_with_key (100000) 380 149 1466 916
wisc_benchmark (114) 7 7 19 19
总计 3580 2862 +93855 +60033