其他语言

本类阅读TOP10

·基于Solaris 开发环境的整体构思
·使用AutoMake轻松生成Makefile
·BCB数据库图像保存技术
·GNU中的Makefile
·射频芯片nRF401天线设计的分析
·iframe 的自适应高度
·BCB之Socket通信
·软件企业如何实施CMM
·入门系列--OpenGL最简单的入门
·WIN95中日志钩子(JournalRecord Hook)的使用

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
Mysql 在windows 2000和 hp-ux上性能 对比测试

作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站

小型机HP 9000/800
# uname -a
HP-UX uxserver B.11.11 U 9000/800 552756577 unlimited-user license
# ioscan -C disk
H/W Path     Class                   Description
================================================
0/0/1/1.2.0                  disk    FUJITSU MAJ3364MC
0/0/2/0.0.0                  disk    SEAGATE ST318404LC
0/0/2/0.2.0                  disk    FUJITSU MAJ3364MC
mysql-max-4.1.7-hp-hpux11.11-hppa2.0w-64bit.tar.gz
至强服务器
HP  2x Xeon MP CPU 2.00GHz Hard Disk : COMPAQ LOGICAL VOLUME SCSI (203.5GB)
Memory : 2048MB
mysql-4.0.21-win-noinstall.zip
测试了以下的命令
插入
建表
查询
更新
索引
结论很奇怪,似乎hp-ux只在插入胜出,update差很多,而且索引的效果不明显
也许和mysql的版本有关,但我用的都是基本的命令,没有用到4.1版的新功能
型号 服务器 小型机
命令行 时间 时间
create table huge(a varchar(32), b decimal(18,2));    
insert into huge values( 'abcdef1234567890abcdef1234567890','99999999.99');    
insert into huge select * from huge;(18,524288,18) 3.34  
select count(*) from huge; 0 0.02
select sum(b) from huge; 1.63 2.19
create table huge2 select * from huge; 6.97 6.15
update huge2 set b=rand(UNIX_TIMESTAMP() ); 14.48 31.32
select count(*) from huge2 where b<0.5;(索引前) 1.19 2.03
create index huge2_b on huge2(b); 8.95 28.88
select count(*) from huge2 where b<0.5;(索引后) 0.89 2.09
create table opt(id bigint, v decimal(18,2));    
insert into opt (v) select b from huge2; 4.09 4.25
update opt set id=rand(UNIX_TIMESTAMP() )*100000000; 3.69 8.24




相关文章

相关软件