| |
测试环境: cpu: duron700 (在测试过程中,某些项目已经造成瓶颈,因此会影响某些测试结果) 内存:pc133 sdram 512mb (jvm参数加上 -xms256m -xmx256m,避免由于内存不足造成测试项目失败) 硬盘: ibm gxp 2代 30gb 7200转 windows2000 professional sp4 简体中文版 数据库: oracle8.1.7 for windowsnt jdbc驱动: 使用官方驱动ojdbc14.jar hibernate关闭数据库连接池:hibernate.connection.pool_size 0 jdbc直接使用drivermanager连接数据库 不使用连接池是为了排除连接池性能差异造成的偏差。 不使用app server,直接写java程序测试,避免app server造成偏差。 测试的持久对象: 代码: package com.fankai; public class cat { private string id; private string name; private char sex; private float weight; public cat() { } public string getid() { return id; } public void setid(string id) { this.id = id; } public string getname() { return name; } public void setname(string name) { this.name = name; } public char getsex() { return sex; } public void setsex(char sex) { this.sex = sex; } public float getweight() { return weight; } public void setweight(float weight) { this.weight = weight; } }
|
|