From 50620eeb65a3e15bceae81bffb42833ff48fe16b Mon Sep 17 00:00:00 2001 From: wenshao Date: Fri, 13 May 2011 01:27:13 +0000 Subject: [PATCH] git-svn-id: http://code.alibabatech.com/svn/druid/trunk@41 b9813039-fb51-4c41-a8b9-e21c2acb5095 --- .../java/com/alibaba/druid/pool/benckmark/Case1.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/java/com/alibaba/druid/pool/benckmark/Case1.java b/src/test/java/com/alibaba/druid/pool/benckmark/Case1.java index c870241e8e..3b696badb3 100644 --- a/src/test/java/com/alibaba/druid/pool/benckmark/Case1.java +++ b/src/test/java/com/alibaba/druid/pool/benckmark/Case1.java @@ -40,8 +40,8 @@ public class Case1 extends TestCase { private int maxPoolSize = 2; private int maxActive = 2; private String validationQuery = "SELECT 1"; - private int threadCount = 2; - private int loopCount = 5; + private int threadCount = 2; + private int loopCount = 5; protected void setUp() throws Exception { jdbcUrl = "jdbc:fake:dragoon_v25masterdb"; @@ -93,14 +93,14 @@ public class Case1 extends TestCase { } System.out.println(); } - + public void test_2() throws Exception { BoneCPDataSource dataSource = new BoneCPDataSource(); // dataSource.(10); // dataSource.setMaxActive(50); dataSource.setMinConnectionsPerPartition(minPoolSize); dataSource.setMaxConnectionsPerPartition(maxPoolSize); - + dataSource.setDriverClass(driverClass); dataSource.setJdbcUrl(jdbcUrl); dataSource.setStatementsCacheSize(100); @@ -112,7 +112,7 @@ public class Case1 extends TestCase { dataSource.setAcquireIncrement(5); dataSource.setIdleConnectionTestPeriod(0L); dataSource.setDisableConnectionTracking(true); - + for (int i = 0; i < loopCount; ++i) { p0(dataSource, "boneCP", threadCount); }