高分请大家运行一个测试脚本测试下自己的服务器性能,并给出服务器配置或型号.谢谢.

javanow 2006-09-13 11:25:49
请大家运行一下以下脚本,看需要花多少秒,并请说明服务器配置,如做的是什么RAID,多少个硬盘做的RAID,或具体的型号如DELL 6650.

谢谢.
我发现我们的某些服务器,1秒钟只能插入100条,而另外一台价钱差不多的服务器,1秒钟可以插入3000多条.我想瓶颈可能在RAID卡上.

--脚本
create table ts(userid int not null)
go
set nocount on
declare @i int
set @i = 1
while @i < 20000
begin
insert into ts(userid) values(@i)
set @i= @i + 1
end
go
--drop table ts

...全文
252 16 打赏 收藏 转发到动态 举报
写回复
用AI写文章
16 条回复
切换为时间正序
请发表友善的回复…
发表回复
enterala 2006-09-14
  • 打赏
  • 举报
回复
HP 6100 2.8G CPU/2G内存/80G*2硬盘
两块硬盘使用windows2003 enterprise sp1做软RAID1
sql server 2000 sp4 19999行共6秒
abc_sk 2006-09-13
  • 打赏
  • 举报
回复
//
fxf66 2006-09-13
  • 打赏
  • 举报
回复
一共用了8秒
p4 1.7G 512M win2000 sql2005
playwarcraft 2006-09-13
  • 打赏
  • 举报
回复
服務器不知道什麼牌子,放在台北.
只知道是64 bit, 8G內存
遠端連線上服務器.
執行以上代碼:
第一次:8秒
第二次:6秒

ps: 服務器正在跑公司ERP系統中~~~~
gahade 2006-09-13
  • 打赏
  • 举报
回复
服务器HP580,8个硬盘,每秒769条
javanow 2006-09-13
  • 打赏
  • 举报
回复
谢谢各位.请在服务器上实验,最好是做了RAID的.

普通PC的数据不是很重要.
zsforever 2006-09-13
  • 打赏
  • 举报
回复
2500条左右,个人兼容PC
javanow 2006-09-13
  • 打赏
  • 举报
回复
谢谢 libin_ftsafe ,握个手 :)

zsforever 2006-09-13
  • 打赏
  • 举报
回复
一秒10000条,普通个人PC
javanow 2006-09-13
  • 打赏
  • 举报
回复
有IDE硬盘的普通PC上,1秒也可以达3000条.很奇怪.

这方面资料较少,只好请大家一起试验解决了.

多谢.
子陌红尘 2006-09-13
  • 打赏
  • 举报
回复
友情UP
tx1icenhe 2006-09-13
  • 打赏
  • 举报
回复
我没有RAID的服务器,所以就不测试了

xeqtr1982 2006-09-13
  • 打赏
  • 举报
回复
1共花了10秒

ASUS笔记本 P-M 1.7 512DDR
javanow 2006-09-13
  • 打赏
  • 举报
回复
不知哪位高人能分析分析原因?
enterala 2006-09-13
  • 打赏
  • 举报
回复
感觉插入的速度好象也不是一样的,开始比较快后来就慢了。每秒140行左右吧。
IBM 8685-X255-71C WINDOWS 2003 SERVER ENTERPRISE SP1+ SQL SERVER 2000 SP4
数据库安装在本地硬盘、数据在远端磁盘阵列上。
tx1icenhe 2006-09-13
  • 打赏
  • 举报
回复
换个代码测试吧(你才插入了19999行)


--脚本
create table ts(userid int not null)
go
set nocount on

insert ts(userid)
select a+10*b+100*c+1000*d+10000*e+1 from
(
select 0 as a
union all select 1
union all select 2
union all select 3
union all select 4
union all select 5
union all select 6
union all select 7
union all select 8
union all select 9
) as t1,
(
select 0 as b
union all select 1
union all select 2
union all select 3
union all select 4
union all select 5
union all select 6
union all select 7
union all select 8
union all select 9
) as t2,
(
select 0 as c
union all select 1
union all select 2
union all select 3
union all select 4
union all select 5
union all select 6
union all select 7
union all select 8
union all select 9
) as t3,
(
select 0 as d
union all select 1
union all select 2
union all select 3
union all select 4
union all select 5
union all select 6
union all select 7
union all select 8
union all select 9
) as t4,
(
select 0 as e
union all select 1
) as t5


go

drop table ts
go

34,593

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧