Sqlserver2000壓力測(cè)試
數(shù)據(jù)庫(kù)請(qǐng)自己建,附腳本。不懂的可以發(fā)郵件問(wèn)我:killwolf@163.com
10萬(wàn)
109640ms 插入
23078ms 清空
20萬(wàn)
216281ms
8391馬上
40萬(wàn):
416781
9381
if exists (select * from dbo.sysobjects where id = object_id(N [dbo].[StuInfo] ) and OBJECTPROPERTY(id, N IsUserTable ) = 1)
drop table [dbo].[StuInfo]
GO
CREATE TABLE [dbo].[StuInfo] (
[StuID] [float] NULL
) ON [PRIMARY]
GO
一個(gè)J2EE四層架構(gòu)的實(shí)例,采用jsp+javabean+sessionbean+entitybean做的,與大家共享: 1.開(kāi)發(fā)環(huán)境用的jbuilder7.0+weblogic7.0+oracle9i(sqlserver2000) 2.sql語(yǔ)句如下: create table ejbAccounts (id varchar(15), bal float, type varchar(15)) 3.現(xiàn)在weblogic console下建立好數(shù)據(jù)源名:examples-dataSource-mssqlserverXAPool 4.可以用客戶端測(cè)試和網(wǎng)頁(yè)測(cè)試.
1. 下列說(shuō)法正確的是 ( )
A. Java語(yǔ)言不區(qū)分大小寫(xiě)
B. Java程序以類(lèi)為基本單位
C. JVM為Java虛擬機(jī)JVM的英文縮寫(xiě)
D. 運(yùn)行Java程序需要先安裝JDK
2. 下列說(shuō)法中錯(cuò)誤的是 ( )
A. Java語(yǔ)言是編譯執(zhí)行的
B. Java中使用了多進(jìn)程技術(shù)
C. Java的單行注視以//開(kāi)頭
D. Java語(yǔ)言具有很高的安全性
3. 下面不屬于Java語(yǔ)言特點(diǎn)的一項(xiàng)是( )
A. 安全性
B. 分布式
C. 移植性
D. 編譯執(zhí)行
4. 下列語(yǔ)句中,正確的項(xiàng)是 ( )
A . int $e,a,b=10
B. char c,d=’a’
C. float e=0.0d
D. double c=0.0f
Generate Possion Dis.
step1:Generate a random number between [0,1]
step2:Let u=F(x)=1-[(1/e)x]
step3:Slove x=1/F(u)
step4:Repeat Step1~Step3 by using different u,you can get x1,x2,x3,...,xn
step5:If the first packet was generated at time [0], than the
second packet will be generated at time [0+x1],The third packet will be generated at time [0+x1+x2],
and so on ….
Random-number generation
1.static method random from class Math
-Returns doubles in the range 0.0 <= x < 1.0
2.class Random from package java.util
-Can produce pseudorandom boolean, byte, float, double, int, long and Gaussian values
-Is seeded with the current time of day to generate different sequences of numbers each time the program executes